Skip to main contentSkip to solution

What is the output of the following SQL query?

SELECT MONTH(NOW());

Solution

✅ Correct Option: 1

NOW() returns the current system date and time. MONTH() extracts the month from that value as a number from 1 to 12, so the query returns the current month in numeric form (for example, 3 for March).


Option 2: the month name comes from MONTHNAME(), not MONTH().

Option 3: the day comes from DAY() or DAYOFMONTH().

Option 4: the year comes from YEAR().

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question