What is the best way to calculate age based on an event? I'm trying to look for individuals based on their age when an event took place? I'm relative new to SQL and the dates functions, I can't wrap my head around.
Example:
ID Name Age DOB AdmitDate
1234 John Smith 61 1960-07-15 2019-10-22
How can I can calculate whose age was 59 at the time of admit date?