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
Q13: SQL,although very popular,has never become a national
Q20: SQL is a _.<br>A)data sublanguage<br>B)product of IBM
Q57: The SQL keyword SELECT is used to
Q77: A nested SELECT statement (one that appears
Q82: The clause SELECT COUNT (*)results in a
Q91: In an SQL query,which of the following
Q94: To have SQL automatically eliminate duplicate rows
Q97: The rows of the result table can
Q101: When one SQL query is embedded in
Q111: The Microsoft Access wildcard character "*" (asterisk)indicates