Give the output of the query:-
SELECT MONTH("2010-03-05");
Give the output of the query:-
SELECT MONTH("2010-03-05");
Solution
✅ Correct Option: 1
MONTH() returns the month number (1 to 12) of a date. MySQL dates are in the format YYYY-MM-DD, so in "2010-03-05" the year is 2010, the month is 03 and the day is 05. The output is 3.
Option 2: 5 is the day of the month, which DAY() would return.
Options 3 and 4: month names come from MONTHNAME(), which would give March, not MARCH. MONTH() never returns a name.
Related questions:
2025: 16 May Shift 1
2026: 26 May Shift 1
2026: 29 May Shift 1
2025: 3 June Shift 2