Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Xxviii Special Issue On Database And Expert Systems Applications Lncs 9940

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Qimin Chen

1st Edition

3662534541, 978-3662534540

More Books

Students also viewed these Databases questions