What output the following SQL query will generate?
SELECT DATE(NOW());
What output the following SQL query will generate?
SELECT DATE(NOW());
Solution
✅ Correct Option: 3
NOW() returns the current system date and time. DATE() extracts only the date part from a date/time expression. So returns just the current date, in the format YYYY-MM-DD.
Option 1: the day part (1 to 31) is returned by DAY() or DAYOFMONTH(), not DATE().
Option 2: the name of the day (such as Monday) is returned by DAYNAME().
Option 4: this is what NOW() alone returns; wrapping it in DATE() drops the time.
Related questions:
2026: 26 May Shift 1
2025: 3 June Shift 2
2025: 16 May Shift 1
2026: 29 May Shift 2
2025: 14 May Shift 1