--:--









Quiz for Date Functions

Course: SQL | Subject: SQL | Topic: SQL Functions



Logo

Q1: Which SQL function returns the current date and time?

Logo

Q2: What does the CURDATE() function return?

Logo

Q3: Which function extracts the year from a date?

Logo

Q4: What does the DATEDIFF() function do?

Logo

Q5: Which function adds days to a date?

Logo

Q6: Which function subtracts days from a date?

Logo

Q7: Which function returns the name of the weekday for a date?

Logo

Q8: What is the result of MONTH("2024-07-19")?

Logo

Q9: Which function returns the day of the month from a date?

Logo

Q10: What does the WEEKDAY() function return?

Logo

Q11: What is the return type of NOW()?

Logo

Q12: What does DATE_FORMAT() do?

Logo

Q13: Which function returns the day of the week (1=Sunday)?

Logo

Q14: What does STR_TO_DATE() do?

Logo

Q15: What is the output of YEAR("2023-11-05")?

Logo

Q16: Which function returns the current date without time?

Logo

Q17: Which SQL function can calculate age?

Logo

Q18: Which function extracts only time from datetime?

Logo

Q19: What is the return value of DAYNAME("2024-07-19")?

Logo

Q20: Which function adds interval to date in MySQL?

Are you ready to start test? Set your time limit