Based on the code above,for each sales rep,list the rep number,the number of customers assigned to the rep,and the average balance of the rep's customers.Group the records by rep number and order the records by rep number.
A) SELECT RepNum, AVG(Balance) FROM Customer GROUP BY RepNum ORDER BY RepNum ;
B) SELECT RepNum, COUNT(*) , AVG(Balance) FROM Part GROUP BY RepNum ORDER BY RepNum ;
C) SELECT RepNum, COUNT(*) , AVG(Balance) FROM Customer GROUP BY RepNum ORDER BY RepNum ;
D) SELECT RepNum, COUNT(*) FROM Customer GROUP BY RepNum ORDER BY RepNum ;
Correct Answer:
Verified
Q5: When rows are grouped, one line of
Q19: A simple condition includes the field name,a
Q21: When a subquery is used,_ is(are)evaluated first.
A)
Q22: You can save the results of a
Q23: When you use a name containing a
Q25: To make changes to existing data in
Q26: Many versions of SQL require you to
Q27: To add new data to a table,use
Q28: To use a wildcard,include the _ operator
Q29: The _ function calculates the number of
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents