Question: You are analyzing operations at a car dealership. Your database has 2 tables. The first is weekly _ sales. In the weekly _ sales table,
You are analyzing operations at a car dealership. Your database has tables. The first is "weeklysales". In the weeklysales table, there is a salesperson ID salesperson name, week number and the total amount of sales for that week. The second table is called 'orders'. The orders table contains ordernumber, date DDMMYYYY format customer ID Salesperson ID and vehicle ID Vehicle ID indicates the Vehicle Identification Number VIN of the vehicle that was sold in that order.
Which query below will return the best maximum single weekly sales for each of your salespeople.?
Select SalespersonIDSalespersonName, MaxSales
From weeklysales
Select SalespersonID SalespersonName, MaxSales
From Orders
Group By SalespersonID SalespersonName;
Select SalespersonIDSalespersonName, MaxSales
From weeklysales
Group By SalespersonID SalespersonName;
Select SalespersonIDSalespersonName, Ordernumber, MaxSales
From SalesTable, Orders
Group By WeekNumber;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
