Skip to content
Activities · Activity 1.4

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

Telangana TsbieTextbookSubjective· 2mImportance★★★★★
20% · 8/40 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 →

DAY(DOB) extracts the day-of-month from the birth date; WHERE Salary > 25000 filters to the higher earners — on the real EMPLOYEE table.

This is a code/query task on the EMPLOYEE table of CARSHOWROOM:

EmpIDEmpNameDOBDOJDesignationSalary
E001Rushil1994-07-102017-12-12Salesman25550
E002Sanjay1990-03-122016-06-05Salesman33100
E003Zohar1975-08-301999-01-08Peon20000
E004Arpit1989-06-062010-12-02Salesman39100
E006Sanjucta1985-11-032012-07-01Receptionist27350
E007Mayank1993-04-032017-01-01Salesman27352
E010Rajkumar1987-02-262013-10-23Salesman31111
SELECT DAY(DOB) FROM EMPLOYEE WHERE Salary > 25000;

Salary > 25000 is checked first: every employee except Zohar (20000) qualifies — even Rushil at 25550 makes the cut, since 25550 > 25000. DAY(DOB) then pulls the day-of-month from each qualifying employee's birth date:

EmpNameDOBSalaryDAY(DOB)
Rushil1994-07-102555010
Sanjay1990-03-123310012
Arpit1989-06-06391006

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.