Skip to content
Activities · Activity 9.13

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

CBSENCERTSubjective· 2mImportance★★★★★
27% · 26/95 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

This uses the real EMPLOYEE table of the CARSHOWROOM database (Table 9.12), whose DOB and Salary columns were given earlier in this same chapter — we extract the day component with DAY() and filter with a WHERE clause on Salary.

The real EMPLOYEE table (Table 9.12)

EmpIDEmpNameDOBDesignationSalary
E001Rushil1994-07-10Salesman25550
E002Sanjay1990-03-12Salesman33100
E003Zohar1975-08-30Peon20000
E004Arpit1989-06-06Salesman39100
E006Sanjucta1985-11-03Receptionist27350
E007Mayank1993-04-03Salesman27352
E010Rajkumar1987-02-26Salesman31111
SELECT DAY(DOB) AS DayOfBirth
FROM EMPLOYEE
WHERE Salary > 25000;

Which rows qualify

Every employee except Zohar (Salary 20000, not > 25000) has a salary above 25000 — including Rushil, whose 25550 clears the bar:

EmpNameSalary > 25000?DOBDAY(DOB)
RushilYes (25550)1994-07-1010
SanjayYes (33100)1990-03-1212
ZoharNo (20000)—(excluded)
ArpitYes (39100)1989-06-066
SanjuctaYes (27350)1985-11-033

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.