Skip to content
Worked Examples · Example 8.4

Q.Display all the employees who are earning more than 5000 and work in department with DeptId D04.

Yanam CbseNCERTSubjective· 2mImportance★★★★★
16% · 7/45 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 →

Employees earning more than 5000 in department D04.

SELECT * FROM EMPLOYEE
WHERE Salary > 5000 AND DeptId = 'D04';

Output:

+-------+----------+--------+-------+--------+
| EmpNo | Ename    | Salary | Bonus | DeptId |
+-------+----------+--------+-------+--------+
|   104 | Gurpreet |  19000 |   565 | D04    | …

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.