Jeff Moden (9/25/2012)
Michael Valentine Jones (9/25/2012)
You can use the function on the link below to find the age:Age Function F_AGE_IN_YEARS
Any chance of making it NOT a scalar function?
I originally wrote this for SQL 2000, so be my guest. 🙂 The code could be greatly simplified too, probably enough to convert it to inline code.
I posted it mainly to give them an example of some code that I know I tested fairly completely.