1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Writing Functions and Stored Procedures in SQL Server

Connected

अभ्यास

What was yesterday?

Create a function that returns yesterday's date.

निर्देश

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.