Question: Part 2 In this part, all questions are based on the following tables and their relationships. I give you two SQL files so that you

Part 2
In this part, all questions are based on the following tables and their relationships. I give you two SQL files so that you can copy and paste them in your Microsoft SQL Server.
1. Please use a subquery to find the orders placed by the customers who locate in New York (city not state).
2. Please use a subquery to find the orders placed by the customers who locate in California and id larger than 1400.
3. use the subquery to lists all orders (that order_id is less than 10) with their max discount
4. use the subquery to find the ID and names of all cyclocross bicycles products that the Bike Stores sell.
5. use the subquery to find the customers (customer_id, first_name, last_name) whose ID is less than 10 and bought products in 2017.
6. use the subquery to find the stores (stores_id, stores_name) that bought products after 2017.

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!