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
Q86: Regarding the interchangeability of subqueries and joins,
A)a
Q90: Given a table with the structure: EMPLOYEE
Q90: The following database will be used in
Q92: Based on the tables below,which of the
Q95: In an SQL query,which SQL keyword is
Q95: The following database will be used in
Q96: When one SQL query is embedded in
Q107: What is SQL?
Q108: Given the table CUSTOMER(CustID,Name,PhoneNumber,AccountBalance),write the standard SQL
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