What is the output of the following SQL query?
SELECT MONTH(NOW());
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().
Related questions:
2026: 23 May Shift 2
2026: 23 May Shift 2
2025: 20 May Shift 1
2025: 13 May Shift 2