Multiple Choice
Based on the tables below,which of the following commands in ANSI SQL would return only the name of the sales representative and the name of the customer for each customer that has a balance greater than 400? GENERAL SALES DATABASE:
SALESREP
CUSTOMER
A) SELECT *
FROM SALESREP,CUSTOMER
WHERE Balance > 400;
B) SELECT DISTINCT RepName,CustName
FROM SALESREP,CUSTOMER
WHERE Balance > 400;
C) SELECT *
FROM SALESREP,CUSTOMER
WHERE SALESREP.SalesRepNo = CUSTOMER.SalesRepNo
AND Balance > 400;
D) SELECT RepName,CustName
FROM SALESREP,CUSTOMER
WHERE SALESREP.SalesRepNo = CUSTOMER.SalesRepNo
AND Balance > 400;
E) SELECT RepName,CustName
FROM SALESREP,CUSTOMER
WHERE Balance > 400
GROUP BY SalesRepNo;
Correct Answer:

Verified
Correct Answer:
Verified
Q11: In an SQL query,which SQL keyword is
Q17: The SQL keyword LIKE is used in
Q19: In an SQL query,which SQL keyword is
Q27: Distinguish between the HAVING clause and the
Q35: To remove duplicate rows from the result
Q39: SQL stands for Standard Query Language.
Q65: The American National Standards Institute (ANSI)maintains the
Q73: The SQL keyword WHERE is used to
Q107: In addition to being a data sublanguage,SQL
Q110: Sorting is specified by the use of