English

Using the table EMPLOYEE of CARSHOWROOM database, list the day of birth for all employees whose salary is more than 25000.

Advertisements
Advertisements

Question

Using the table EMPLOYEE of CARSHOWROOM database, list the day of birth for all employees whose salary is more than 25000.

Code Writing
Advertisements

Solution

SELECT EmpName, DAYNAME(DOB) AS Day_of_Birth
FROM EMPLOYEE
WHERE Salary > 25000;

Explanation:

  • DAYNAME(DOB) returns the name of the day (e.g., Monday, Tuesday) from the employee's date of birth.
  • WHERE Salary > 25000 filters employees whose salary is greater than 25000.
shaalaa.com
  Is there an error in this question or solution?
Chapter 1: Querying and SQL Functions - Intext Questions [Page 11]

APPEARS IN

NCERT Informatics Practices [English] Class 12
Chapter 1 Querying and SQL Functions
Intext Questions | Q 4. | Page 11
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×