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
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
Q98: In an SQL query,which SQL keyword is
Q101: Given the table CUSTOMER(CustID,Name,PhoneNumber,AccountBalance),write the standard SQL
Q103: The following database will be used in
Q106: Explain why it is important to learn
Q112: What are SQL Built-in Functions?
Q113: Distinguish between the HAVING clause and the
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