Assignment 4 - SQL 2-canvas
Assignment 4 - SQL 2-canvas
1. List the names the number of products, and the average product price of each product line
whose average price is greater than $200.
Tables Needed: Productline_T; Product_T
2. List each item ordered for order number 1, its standard price, and the total price for each item
ordered.
Tables Needed: Product_T; OrderLine_T
3. Display the names of the states in which customers reside but for which there is no
salesperson residing in the state. Use the set command UNION, INTERSET, or MINUS in your
query.
Tables Needed: Customer_T; Salesperson_T
4. Display the customer ID, name, and order ID for all customer orders. For those customers
who do not have any orders, include them in the display once.
Tables Needed: Customer_T; Order_T
5. List the names and number of employees supervised (label this value as HeadCount) for
each supervisor who supervises more than two employees.
Table Needed: Employee_T