Skip to content
Worked Examples · Example 8.8

Q.The following query displays details of all the employees except those working in department number D01 or D02.

CBSENCERTSubjective· 2mImportance★★★★★
33% · 15/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 NOT in department D01 or D02.

SELECT * FROM EMPLOYEE
WHERE DeptId NOT IN('D01','D02');

Output:

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.