CBSE Class 12 Informatics Practices Question 42 of 79

Database Query using SQL — Question 13

Back to all questions
13
Question

Question 13

In SQL, which function is used to extract a date from a date expression?

  1. Now()
  2. Curdate()
  3. Date()
  4. Day()
Answer

Date()

Reason — In SQL, the DATE() function is used to extract the date part of a date or date-time expression.