Aan de slagGa gratis aan de slag

Get the know the system date and time functions

The purpose of this exercise is for you to work with the system date and time functions and see how you can use them in SQL Server. Whether you just want to discover what day it is or you are performing complex time analysis, these functions will prove to be very helpful in many situations.

In this exercise, you will familiarize yourself with the most commonly used system date and time functions. These are:

Higher Precision

  • SYSDATETIME()
  • SYSUTCDATETIME()
  • SYSDATETIMEOFFSET()

Lower Precision

  • GETDATE()
  • GETUTCDATE()
  • CURRENT_TIMESTAMP

Deze oefening maakt deel uit van de cursus

Functions for Manipulating Data in SQL Server

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

SELECT 
	___ AS CurrentDate;
Code bewerken en uitvoeren