Something like this will do what you needSELECT (dtDateEnd - DateSerial(Year(dtDateStart),1,0)) AS dtAgeDays FROM tDays;This gives the age between start of year and end date.
Here, the start of year is determined by the DateSerial function, using the year part of the start date, month 1 and...