Question: Please submit your answer either in SQL code: The following questions are based on the sample database provided on W3schools.com (30 points in total, 3points/each

Please submit your answer either in SQL code:

The following questions are based on the sample database provided on W3schools.com (30 points in total, 3points/each except Q.9).

1. Find out the total number of orders (NumberOfOrders) made by each customer (customerID, customerName, city, country), including those who did not make any order, and sort the result by customerID.

2. Find out the total number of orders (NumberOfOrders) made by each customer (customerID, customerName, city, country), not including those who did not make any order, and sort the result by customerID.

3. Find out the total number of orders (NumberOfOrders) made by each customer (customerID, customerName, city, country) who are not from USA and made no less than 3 orders, and sort the result first by country and second by NumberOforders in descending order.

4. Find out the total number of orders (NumOrdersShipped) shipped out by each shipper (shipperID, name, phone), and sort the result by NumOrdersShipped in descending order.

5. Find out suppliers (SupplierID, name, city, country, and phone) who are from either Germany or USA, and supplying no less than 3 products. Order the result by country.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!