Question:medium

Give the output of the query:  SELECT MONTH("2010-03-05"); 

Show Hint

Remember: MONTH() returns a numeric value (1–12), while MONTHNAME() returns the name of the month (like MARCH).
Updated On: Feb 16, 2026
  • 3
  • 5
  • MARCH
  • MAY
Show Solution

The Correct Option is A

Solution and Explanation

Step 1: MONTH() Function Explained.
The SQL MONTH() function retrieves the month from a date and outputs it as an integer from 1 to 12.
Step 2: Applying to the Date.
For the date “2010-03-05”: - Year: 2010
- Month: 03
- Day: 05

Step 3: Month Extraction.
Applying MONTH() to "2010-03-05" yields 3.
Step 4: Eliminating Incorrect Options.
- Option 2 (5): Represents the day, not the month.
- Option 3 (MARCH): Is text, whereas MONTH() returns a number.
- Option 4 (MAY): Corresponds to the 5th month, which is incorrect for this date.

Final Answer: \[\boxed{3}\]
Was this answer helpful?
0