Question: For this practice assignment you will need to utilize the Classic Cars information located here - http://richardtwatson.com/dm6e/Reader/ClassicModels.html Write the SQL to answer the following queries.

For this practice assignment you will need to utilize the Classic Cars information located here - http://richardtwatson.com/dm6e/Reader/ClassicModels.html

Write the SQL to answer the following queries.

Single entity

a. Prepare a list of offices sorted by country, state, and city.

b. How many employees are there in the company?

c. What is the total of payments received?

d. List the product lines that contain 'Cars'.

e. Report total payments for October 28, 2004.

One to many relationship

f. Report the account representative for each customer.

g. Report total payments for Atelier graphique.

h. Report the total payments by date

i. Report the products that have not been sold.

j. List the amount paid by each customer.

Many to many relationship

k. List products sold by order date.

l. List all the orders for the 1940 Ford Pickup Truck.

m. List the names of customers and the corresponding order numbers where a particular order from that customer has a value greater than $5,000.

n. List the products that appear on all orders (if there are any).

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!