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
Q87: When one SQL query is embedded in
Q88: In an SQL query,which SQL keyword is
Q89: In an SQL query,which built-in function is
Q90: Given a table with the structure: EMPLOYEE
Q93: In an SQL query,which SQL keyword is
Q94: In an SQL query of two tables,which
Q95: In an SQL query,which SQL keyword is
Q96: When one SQL query is embedded in
Q97: In an SQL query,the built-in function COUNT
Q111: Briefly describe subqueries and joins.Explain when each
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