Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

Which of the following best represents the accounting equation

Answered: 1 week ago

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago