I have two dates say start_date = 2013-04-12
and end_date = 2013-04-30
and my table contains row with start_date = 2013-04-12
and end_date = 2013-04-16
I want to fetch records whose start date is greater 2013-04-12 and end_date is less than 2013-04-30. Which includes above record having 2013-04-16 as end_date
I tried with this query
SELECT * FROM TABLE_NAME WHERE (start_date <='2013-04-12' AND end_date >='2013-04-30')
which dont give any result however if i put end_date 2013-04-15 it works fine