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
Q13: SQL,although very popular,has never become a national
Q20: In an SQL query,which SQL keyword is
Q39: SQL stands for Standard Query Language.
Q49: Given a table with the structure: EMPLOYEE
Q71: SQL commands can be embedded in application
Q82: The clause SELECT COUNT (*)results in a
Q89: An asterisk (*)following the SELECT verb means
Q91: In an SQL query,which of the following
Q94: To have SQL automatically eliminate duplicate rows
Q111: The Microsoft Access wildcard character "*" (asterisk)indicates