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

Databases Theory And Applications 27th Australasian Database Conference Adc 20 Sydney Nsw September 28 29 20 Proceedings Lncs 9877

Authors: Muhammad Aamir Cheema ,Wenjie Zhang ,Lijun Chang

1st Edition

3319469215, 978-3319469218

More Books

Students also viewed these Databases questions