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.
West Bengal WbchseTextbookSubjective· 2mImportance★★★★★
20% · 8/40 Questions
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:
| EmpID | EmpName | DOB | DOJ | Designation | Salary |
|---|---|---|---|---|---|
| E001 | Rushil | 1994-07-10 | 2017-12-12 | Salesman | 25550 |
| E002 | Sanjay | 1990-03-12 | 2016-06-05 | Salesman | 33100 |
| E003 | Zohar | 1975-08-30 | 1999-01-08 | Peon | 20000 |
| E004 | Arpit | 1989-06-06 | 2010-12-02 | Salesman | 39100 |
| E006 | Sanjucta | 1985-11-03 | 2012-07-01 | Receptionist | 27350 |
| E007 | Mayank | 1993-04-03 | 2017-01-01 | Salesman | 27352 |
| E010 | Rajkumar | 1987-02-26 | 2013-10-23 | Salesman | 31111 |
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:
| EmpName | DOB | Salary | DAY(DOB) |
|---|---|---|---|
| Rushil | 1994-07-10 | 25550 | 10 |
| Sanjay | 1990-03-12 | 33100 | 12 |
| Arpit | 1989-06-06 | 39100 | 6 |
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.