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');

Answer: C. FridayThe 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…

  1. A.

    27

  2. B.

    February

  3. C.

    Friday

  4. D.

    02

Attempted by 812 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'.

Explore the full course: Rssb Basic Computer Instructor

Loading lesson…