Given the schema of the w3schools.com online sample data, write the SQL to answer the following questions.
https://www.w3schools.com/sql/trysql.asp?filename=trysql_select_all
If the answer to the question is a number, that number is provided in parenthesis after the question.
- What are the names of all the Shippers?
- What is the total Quantity for Orders with OrderID 10309? (75)
;
- How many Suppliers are there? (29)
- How many Suppliers have a mailing address in Germany? (3)
- How many Suppliers are there in each country?
- Show a Distinct list of all EmployeeIDs and ShipperIDs from Orders.
- What is the first and last OrderDate? (1996-07-04 , 1997-02-12)
- What are all the Orders that happened in 1997 and the ShipperID is 1?
- What is the minimum price for each CategoryID?
- What is the minimum price for each CategoryID assuming the SupplierID is less than 10?
Reviews
There are no reviews yet.