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;
E) SELECT AVG (BalancE)
FROM CUSTOMER,SALESREP
WHERE CUSTOMER.SalesRepNo = CUSTOMER.SalesRepNo
HAVING SalesRepNo;
Correct Answer:

Verified
Correct Answer:
Verified
Q4: The SQL keyword FROM is used to
Q32: The built-in function SUM can be used
Q42: To obtain all columns,use an asterisk (*)wildcard
Q58: When one SQL query is embedded in
Q67: In an SQL query,which SQL keyword is
Q68: Given a table with the structure: EMPLOYEE
Q72: Two or more tables are joined by
Q74: To exclude one or more values using
Q87: The SQL wildcard character "%" represents a
Q89: An asterisk (*)following the SELECT verb means