Multiple Choice
Based on the tables below,which of the following ANSI SQL commands would return the average customer balance grouped by SalesRepNo? GENERAL SALES DATABASE:
SALESREP CUSTOMER
A) SELECT AVG (Balance)
FROM CUSTOMER
WHERE SalesRepNo;
B) SELECT AVG (Balance)
FROM CUSTOMER
GROUP BY SalesRepNo;
C) SELECT AVG (Balance)
FROM CUSTOMER,SALESREP
WHERE SALESREP.SalesRepNo = CUSTOMER.SalesRepNo;
D) SELECT AVG (Balance)
FROM CUSTOMER
ORDER BY SalesRepNo;
Correct Answer:

Verified
Correct Answer:
Verified
Q51: In an SQL query,a join operation is
Q52: Every subquery can be alternatively expressed by
Q53: In an SQL query,which SQL keyword is
Q54: In an SQL query,which of the
Q55: Outer joins can be either up joins
Q57: The SQL keyword SELECT is used to
Q58: Columns can be sorted in descending sequence
Q59: When two conditions must both be true
Q60: In an SQL query,the built-in functions SUM
Q61: SQL is only a data manipulation language