Question: PRINT 'CIS2275, Lab Week 6, Question 6 [3pts possible]: The Examples database will be used for this problem Calculate the percent of total sales of
PRINT 'CIS2275, Lab Week 6, Question 6 [3pts possible]: The Examples database will be used for this problem Calculate the percent of total sales of each sales reps in 2016. The calculation will show the percentage of each reps total sales compared to the overall total sales for all years.For example, if the overall sales for all years was 10,000 and rep''s total sales for 2016 was 1000, the percentage would be 10% Insert dollar sign and apply rounding. Use Subquery and JOIN. There will be 4 valid records Rep ID Reps last name Reps total Sales Reps percentage ---------------------------------------------------------------------------------------------- 1 Thomas $499,168.73 5.60% 2 Martinez $887,695.75 9.97% 4 Winters $72,443.37 0.81% 5 Kramer $45,182.44 0.50%
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
