Consider the date '2026-02-27'. What will be the output of the following…
2026
Consider the date '2026-02-27'. What will be the output of the following query?
SELECT DAYNAME('2026-02-27');
- A.
27
- B.
February
- C.
Friday
- D.
02
Attempted by 425 students.
Show answer & explanation
Correct answer: C
The SQL function DAYNAME() returns the name of the weekday for a given date. To find the output, calculate the day of the week for February 27, 2026. Since January 1, 2026 is a Thursday, February 27 falls on a Friday. Thus, the query returns 'Friday'.