Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have the following table with sample data: TABLE: employee _ t Employee _ ID EmployeeFirstName EmployeeLastName Department _ ID Manager _ ID Salary Phone

You have the following table with sample data:
TABLE: employee_t
Employee_ID EmployeeFirstName EmployeeLastName Department_ID Manager_ID Salary Phone
1 Mary Jacobs 1630000285-8879
2 Kenji Numoto 2635000287-0098
3 Heather Jones 3630000287-9981
4 Rosalie Jackson 1120000285-1273
6 Steven King 5660000123-1212
7 James Nestor 4630000333-4455
8 Richard Wu 4725000333-2233
9 Kim Sung 2225000111-1111
10 John Smith 3330000122-2211
Which query will show all employees who are managers? Select all that apply.
Question 21 options:
SELECT *
FROM employee_t
WHERE employee_id =(SELECT manager_id FROM employee_t);
SELECT *
FROM employee_t
WHERE employee_id = manager_id ;
SELECT *
FROM employee_t
WHERE employee_id IN (SELECT DISTINCT manager_id FROM employee_t);
SELECT DISTINCT e.*
FROM employee_t e JOIN employee_t m
on e.employee_id = m.manager_id ;

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

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

2. List the advantages of listening well

Answered: 1 week ago