Session Ready
Exercise

What was yesterday?

Create a function that returns yesterday's date.

Instructions
100 XP
  • Create a function named GetYesterday() with no input parameters that RETURNS a date data type.
  • Use GETDATE() and DATEADD() to calculate yesterday's date value.