Dear Partners in coding,
I want to appreciate all your support and tips you have been giving me so far.
I have this challenge i want to get all the age of my patients under 12 months, i tried using Datediff(mm,DOB,Getdate()) this did not give me the age when i compare with the documented hard copy.
please i will appreciate any fast solution to this issue.
thank you

Esakki MuthuPosted Oct 24, 2016, 6:55 AM
Abraham OlatubosunPosted Oct 24, 2016, 7:14 AM
Abraham OlatubosunPosted Oct 24, 2016, 5:49 AM
Esakki MuthuPosted Oct 24, 2016, 5:18 AM
Manas MohapatraPosted Oct 24, 2016, 3:31 AM
Try like this:
SELECT * FROM tblTemp
WHERE DATEDIFF(month, DOB, GETDATE()) <= 12;
Note: tblTemp is the table name.