Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

13th Edition Global Edition

1292263350, 978-1292263359

More Books

Students also viewed these Databases questions

Question

What did they do? What did they say?

Answered: 1 week ago