willfindaway
MIS
I have a sql database that is capturing DOB in this format: mm/dd/yyyy eg. 01/01/1980. my goal is to use a sql statement to display individuals who are >=60.
My statement is as follows:
Select *
from members
where cast ( 'TODAY' as DATE) - cast ( m.dob as DATE) /365.25 >=60,1,0
Thanks again for your help.
My statement is as follows:
Select *
from members
where cast ( 'TODAY' as DATE) - cast ( m.dob as DATE) /365.25 >=60,1,0
Thanks again for your help.