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;
Correct Answer:

Verified
Correct Answer:
Verified
Q71: SQL commands can be embedded in application
Q72: Two or more tables are joined by
Q73: The SQL keyword WHERE is used to
Q74: To exclude one or more values using
Q75: Briefly describe subqueries and joins.Explain when each
Q77: A nested SELECT statement (one that appears
Q78: The columns to be obtained by an
Q79: In an SQL query of two tables,which
Q80: A database extracted from the operational database
Q81: SQL is a _.<br>A)data sublanguage<br>B)data manipulation language<br>C)data