Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For this assignment you must use SI schema. You are to create five queries as follows. Print the total dollar value, the average dollar value
For this assignment you must use SI schema. You are to create five queries as follows.
- Print the total dollar value, the average dollar value of service visits (parts and labour costs) and the number of those visits for Jaguar and Mercedes car makes that were sold between January 2018 and November 2018 inclusive (5 marks).
- SI schema contains customers that have bought one or more vehicles. They must be classified using the following criteria:
- Customers that have bought only one car (Silver level)
- Customers that have bought two cars (Gold level)
- Customers that have bought more than two cars (Platinum level)
- Using SET operations, display a list of customers that both bought a car from SI and serviced that car at SI. (Hint: consider the serial number) (5 marks)
- Using a single SELECT statement, show a list of total money spent on the labour cost of servicing Land Rover cars. Show the subtotals for each model as well as each make (5 marks)
- Write a query using analytic functions that will show the serial number, the model and the sale price of each model of Land Rover as well as the cumulative sale price totals. (5 marks)
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