Part A: SQL Queries
Use the ClassicModels database (ClassicModels.sql) from the ITC114 Interact Resources site.
Answer the following queries from that database.
You are required to submit:
1. The appropriate SQL statements for each query, which should be copied from your SQL code in MySQL and pasted into your submission file; and
2. Screenshots of the resultant tables which are to be pasted into your submission file immediately after the SQL code for that query.
Typing or manually drawing the results is NOT acceptable.
Your SQL code should be correct for any data, not just any sample data that you create.
Write SQL SELECT statements to retrieve the following information from the ClassicModels database:
Select the product name, scale, vendor and product code for all models of classic cars built between 1948 and 1966. Display the results in order of manufacture.
Select the product name, scale, vendor and product code for all models of Vintage cars built before 1930 and with a scale smaller than 1:20. Display the results in order of manufacture.
List the South East Asian (excluding Australian and New Zealand) customers of Classic Models. Show their Customer name, city, country, sales Rep name, email address and the sales office that supports them. Order the list by country and city.
Which customers cancelled orders, how many different products were in the order and what was the reason for cancellation?
Which employees work in a European office? List their office, their full name, their job title, the name and job title of the person that they report to.
Which orders over $30,000 in value have been disputed and then later resolved? Who were the customers involved; how many different products were in their order; what was the total value of the disputed order? What was the resolution of the problem?
How many models of the Titanic have been shipped? What was the date of the first shipment and when was the last shipment sent?