CBSE Class 12 Informatics Practices Question 52 of 79

Database Query using SQL — Question 10

Back to all questions
10
Question

Question 10

Write a command to print the day of the week of your birthday in the year 1999.

Answer
SELECT DAYOFWEEK('1999-07-21');
Output
+-------------------------+
| DAYOFWEEK('1999-07-21') |
+-------------------------+
|                       4 |
+-------------------------+