SQL practice: Date Functions

Chapter 20 · 9 questions · included in full access

  1. Question 1 · easy

    Show every order's date with just its month number.

    Solve it in your browser
  2. Question 2 · easy

    Count orders per month using DATE_TRUNC.

    Solve it in your browser
  3. Question 3 · medium

    Show each order with how many days elapsed between order_date and the milestone date '2024-06-01' (named days_ago).

    Solve it in your browser
  4. Question 4 · medium

    Count how many employees were hired in each year.

    Solve it in your browser
  5. Question 5 · medium

    Find all orders placed in March 2024.

    Solve it in your browser
  6. Question 6 · medium

    Show each order date formatted as something like Jan 2024.

    Solve it in your browser
  7. Question 7 · medium

    Find customers who signed up before 2019.

    Solve it in your browser
  8. Question 8 · hard

    Show the earliest and latest order dates in the table.

    Solve it in your browser
  9. Question 9 · hard

    Count stock transfers per month.

    Solve it in your browser

These questions are part of full access.

The first chapters of every track are free. Full access is a one-time payment.

See pricing