My table have structure like this
id | date_birth | date_marriage
1 | 1970-01-24 | 2000-05-14
2 | 1979-05-08 | 2008-08-12
How to get events between two dates for above data in mysql (date comparison is irrespective of year) . For example if start_date is 2014-05-01 and end date is 2014-05-20 then output should be
id | event
1 | married on 2000-05-14
2 | born on 1979-05-08
UPDATE: If both date of marriage and birth date falls in the supplied date range for same person the output should contains two columns for the person
( sorry for my bad english )