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.
Uttarakhand UbseTextbookSubjective· 2mImportance★★★★★
27% · 26/95 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 →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)
| EmpID | EmpName | DOB | Designation | Salary |
|---|---|---|---|---|
| E001 | Rushil | 1994-07-10 | Salesman | 25550 |
| E002 | Sanjay | 1990-03-12 | Salesman | 33100 |
| E003 | Zohar | 1975-08-30 | Peon | 20000 |
| E004 | Arpit | 1989-06-06 | Salesman | 39100 |
| E006 | Sanjucta | 1985-11-03 | Receptionist | 27350 |
| E007 | Mayank | 1993-04-03 | Salesman | 27352 |
| E010 | Rajkumar | 1987-02-26 | Salesman | 31111 |
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:
| EmpName | Salary > 25000? | DOB | DAY(DOB) |
|---|---|---|---|
| Rushil | Yes (25550) | 1994-07-10 | 10 |
| Sanjay | Yes (33100) | 1990-03-12 | 12 |
| Zohar | No (20000) | — | (excluded) |
| Arpit | Yes (39100) | 1989-06-06 | 6 |
| Sanjucta | Yes (27350) | 1985-11-03 | 3 |
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.