try this
select birth_date from your_table
where substr(birth_date, 6,2) in ('01','03','05','07','08','10','12')
and (substr(birth_date, 9,2)='00' or substr(birth_date, 9,2) >; '31');
or substr(birth_date, 6,2) in ('04','06, '09','11')
and (substr(birth_date, 9,2)='00' or substr(birth_date, 9,2) >; '30')
or substr(birth_date, 6,2)='02'
and (substr(birth_date, 9,2)='00' or substr(birth_date, 9,2) >; 2
and substr(birth_date,1,4) in ('1993','1994','1995','1997','1998','1999','2001',2002',2003')
or substr(birth_date, 6,2)='02'
and (substr(birth_date, 9,2)='00' or substr(birth_date, 9,2) >; 29)
and substr(birth_date,1,4) in ('1996','2000','2004'); |