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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started