Which date function should you use?
Suppose you want to calculate the number of years between two different dates, DateOne and DateTwo. Which SQL statement would you use to perform that calculation?
This exercise is part of the course
Intermediate SQL Server
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise