Which two tasks would require subqueries?

View the Exhibit and examine the structure of the PRODUCTS table.
Which two tasks would require subqueries? (Choose two.)

View the Exhibit and examine the structure of the PRODUCTS table.

Which two tasks would require subqueries? (Choose two.)

A.
Display the minimum list price for each product status.

B.
Display all suppliers whose list price is less than 1000.

C.
Display the number of products whose list price is more than the average list price.

D.
Display the total number of products supplied by supplier 102 and have product status as ‘obsolete’.

E.
Display all products whose minimum list price is more than the average list price of products and have the status ‘orderable’.



Leave a Reply 6

Your email address will not be published. Required fields are marked *


MJ11

MJ11

A.
SELECT prod_status, MIN(prod_list_price)
FROM products
GROUP BY prod_status;

B.
SELECT supplier_id
FROM products
WHERE prod_list_price (SELECT AVG(prod_list_price)
FROM products);

D.
SELECT count(prod_id)
FROM products
WHERE supplier_id = 102
AND prod_status = ‘obsolete’;

E.
SELECT prod_id
FROM products
WHERE prod_status = ‘obsolete’
HAVING MIN(prod_list_price) > (SELECT AVG(prod_list_price)
FROM products)
GROUP by prod_id;

Sayed

Sayed

B.Display all suppliers whose list price is less than 1000.
SELECT supplier_id, prod_list_price
FROM products
WHERE prod_list_price < 1000;

Sayed

Sayed

C. Display the number of products whose list price is more than the average list price.
SELECT count(prod_id)
FROM products
WHERE prod_list_price > (SELECT AVG(prod_list_price)
FROM products);

Google

Google

Just beneath, are many totally not related websites to ours, nevertheless, they may be surely really worth going over.