Answered step by step
Verified Expert Solution
Question
1 Approved Answer
46.. consider the following Employee table ID Salary DeptName 1 10000 EC 2 40000 EC 3 30000 CS 4 40000 ME 5 50000 ME 6
46.. consider the following Employee table ID Salary DeptName 1 10000 EC 2 40000 EC 3 30000 CS 4 40000 ME 5 50000 ME 6 60000 ME 7 70000 CS What is the output of the following query? SELECT E.ID FROM Employee E WHERE EXISTS (SELECT E2.salary FROM Employee E2 WHERE E2.Deptname='CS' AND E.salary>E2.salary) .a .b ID Salary DeptName ID 40000 2EC DeptName 40000 4ME 50000 5ME 50000 5ME 60000 6ME 60000 6ME 7 70000 CS 7 70000 CS salary .C ID Salary DeptName 40000 2EC 40000 4ME 50000 5ME 7 70000 CS ..d ID Salary DeptName 40000 2EC 40000 4ME 50000 5ME 60000 6ME
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started