SQL Exercise 2:

    Name___________________Student No._______________________

    Go to the following link and type SQL statements to finish the following questions.

    https://www.w3schools.com/SQL/trysql.asp?filename=trysql_op_in

    1) List all product IDs and product names in category 3.

    2) Find the maximum, minimum, and average prices of products in category 2.

    3) Find the number of customers from each country.

    4) Find the number of orders processed by each employee.

    5) Find the employees whose background are related to psychology.

    6) Insert a new row into the table shippers supplying data for all columns.

    7) Give all products a 3% price increase.

    8) Give all products in category 2 a 5% price decrease.

    9) Delete all products from supplier 8.

    10) Find all customers who have not placed any order.

    11) Find the number of product categories offered by each supplier.

    12) For each product category, find the number of suppliers.

    13) List full details of all customers who placed an order in 1997 February.

    14) List all details of shippers that shipped the orders placed by customerID 5.

    15) For each category of products with more than six products, find the number of products.

    16) List names of all products that have been ordered more than 100 units totally.

                                                                                                                                      Order Now