select * from
(select * from table where m between month and month1)
where not((m=month and d<date) or (m=month1 and d>date1))
(select * from table where m between month and month1)
where not((m=month and d<date) or (m=month1 and d>date1))
(select * from table where m between month and month1)
where not((m=month and d<date) or (m=month1 and d>date1))
(select * from table where m between month and month1)
where not((m=month and d<date) or (m=month1 and d>date1))