Question: Create SQL commands for each of the following question. Use the database (https://www.w3schools.com/sql/trysql.asp?filename=trysql_descLinks to an external site.) Q1. List the product name and price of
Create SQL commands for each of the following question. Use the database (https://www.w3schools.com/sql/trysql.asp?filename=trysql_descLinks to an external site.)
Q1. List the product name and price of every product that belongs to CategoryID 2 and that has a price higher than 30.
Q2. List the CustomerID, contact name, address, and city of every customer whose country is "France". Order the result in ascending order of contact name.
Q3. Generate the same list as Q2. Sort the output in descending order by city first. When outputs have the same city, order them by ascending order of CustomerID.
Q4. Find all products that have prices lower than 5. List the product name, unit, price, and category name for such products.
Q5. Find all the suppliers for products that belong to Seafood category. List the product name, supplier name, supplier city, and supplier country.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
