Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

From a database that contains the tables EMPLOYEE(emp_num,name,profession), PRODUCT(prod_id,product_name,details), ASSIGNMENT(emp_num,prod_id,desig_id) and TITLE_DESIGNATION(desig_id,title) provide an SQL query that finds the prod_id of products that do not

From a database that contains the tables EMPLOYEE(emp_num,name,profession), PRODUCT(prod_id,product_name,details), ASSIGNMENT(emp_num,prod_id,desig_id) and TITLE_DESIGNATION(desig_id,title) provide an SQL query that finds the prod_id of products that do not have managers assigned to work on them.

Select one:

a. select prod_id from ASSIGNMENT where prod_id not in

(select a.prod_id

from ASSIGNMENT a, TITLE_DESIGNATION t

where t.title = 'manager' and a.desig.id = t.desig_id);

b. select a.prod_id from ASSIGNMENT a, EMPLOYEE e where e.emp_num = a.emp_num and not (e.profession = 'manager');

c. select p.prod_id from PRODUCT p, ASSIGNMENT a where p.emp_num = a.emp_num

d. select prod_id from PRODUCT where not exists

(select emp_num

from EMPLOYEE

where profession = 'manager');

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

Step: 3

blur-text-image

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

Financial Accounting, Enhanced

Authors: Jerry J. Weygandt, Paul D. Kimmel, Donald E. Kieso

11th Edition

1119594596, 9781119594598

More Books

Students also viewed these Accounting questions

Question

Coping with competitive pressure and sport performance anxiety

Answered: 1 week ago