← Database Management System 🟡 Medium 📋 Sanfoundry

Suppose we wish to find the ID’s of the employees that are managed by people who are managed by the …

Question #1257 of 749+ in Database Management System

📝 Question #1257

Suppose we wish to find the ID’s of the employees that are managed by people who are managed by the employee with ID 123. Here are two possible queries: I.SELECT ee.empID FROM Emps ee, Emps ff WHERE ee.mgrID = ff.empID AND ff.mgrID = 123; II.SELECT empID FROM Emps WHERE mgrID IN (SELECT empID FROM Emps WHERE mgrID = 123);

⌨️ Press A B C D to select

All Options & Correct Answer

A Both I and II Correct
B I only
C II only
D Neither I nor I

📋 Question Details

🎯
Difficulty
Medium
📅
Year
📋
Source
Sanfoundry

📤 Share This MCQ

📚 Want More?

Practice Database Management System MCQs

749+ questions with detailed answers