Skip to main contentSkip to solution

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).

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question