Which of the following are valid Date Functions in SQL ?
(A) DATE( )
(B) DAY( )
(C) DAYYEAR( )
(D) DAYNAME( )
Which of the following are valid Date Functions in SQL ?
(A) DATE( )
(B) DAY( )
(C) DAYYEAR( )
(D) DAYNAME( )
Solution
✅ Correct Option: 2
DATE() extracts the date part of a date or datetime expression. DAY() returns the day of the month (1 to 31). DAYNAME() returns the name of the weekday, such as Monday. All three are valid SQL (MySQL) date functions, so (A), (B) and (D) are correct.
Options 1, 3 and 4: they include (C). DAYYEAR() does not exist; the real function is DAYOFYEAR(), which returns the day number within the year (1 to 366).
Related questions:
2026: 31 May Shift 1
2026: 31 May Shift 1
2026: 23 May Shift 2
2026: 23 May Shift 1