Question:

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: Sep 18, 2025
  • 3
  • 5
  • MARCH
  • MAY
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Step 1: Understanding MONTH() function.
The SQL MONTH() function extracts the month part from a date value and returns it as a numeric integer (1–12).
Step 2: Apply to given date.
The date given is “2010-03-05”. Here: - Year = 2010
- Month = 03
- Day = 05

Step 3: Extracting month.
MONTH("2010-03-05") = 3.
Step 4: Eliminate wrong options.
- Option 2: 5 is the day, not the month.
- Option 3: MARCH is textual format, but MONTH() gives numeric.
- Option 4: MAY corresponds to 5th month, not correct here.

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

Questions Asked in CUET exam

View More Questions