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’.
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;
B.Display all suppliers whose list price is less than 1000.
SELECT supplier_id, prod_list_price
FROM products
WHERE prod_list_price < 1000;
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);
para su blog , Gracias
http://www.opinionesdating.com/meetic-opiniones/
Just beneath, are many totally not related websites to ours, nevertheless, they may be surely really worth going over.
Basic Programs For Antivirus Coupon Studied 2025
http://www.djYwpd054L.com/djYwpd054L