Session Ready
Exercise

Presenting parts of a date

DATENAME() and DATEPART() are two similar functions. The difference between them is that while the former understandably shows some date parts, as strings of characters, the latter returns only integer values.

In this exercise, you will use both of these functions to select the month and weekday of the first_vote_date in different forms.

Instructions
100 XP
  • Extract the month number of the first vote.
  • Extract the month name of the first vote.
  • Extract the weekday number of the first vote.
  • Extract the weekday name of the first vote.