Multiple Choice
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
Correct Answer:
Verified
Q10: To qualify a field name,precede the name
Q12: To make changes to existing data in
Q17: The HAVING clause is to groups what
Q18: CHAR data types are numbers without a
Q19: One common restriction placed on table and
Q19: Based on the code above,list the number,name,and
Q20: For each pair of tables to be
Q32: A valid name for a table might
Q58: Discuss the restriction about the structure of
Q68: How are compound conditions formed?