Question : How to calculate this age criteria?

Hi,
  It probably is easy, but i can't seem to figure out how..

  I need to get all kids who turned 15 between october 1st 2010 and september 30th 2011..
  Can someone please help?

I have their IDs and date of births..(ID,DOB_DT)

Answer : How to calculate this age criteria?


I think the following will work for you...

HTH,
DaveSlash
1:
2:
3:
where  birthdate is not null                    
  and  year(date('2010-09-30') - birthdate) = 14
  and  year(date('2011-09-30') - birthdate) = 15
Random Solutions  
 
programming4us programming4us