Based on the tables below,which of the following SQL commands would create an SQL view named CustomerSalesRep that could be used to display CustNo,CustName,RepName? GENERAL SALES DATABASE:
SALESREP
CUSTOMER
A) SELECT CustNo,CustName,RepName FROM SALESREP,CUSTOMER;
B) SELECT CustNo,CustName,RepName FROM SALESREP,CUSTOMER
WHERE CustNo=*;
C) SELECT CustNo,CustName,RepName FROM SALESREP,CUSTOMER
WHERE SALEREP,SalesRepNo = CUSTOMER,SalesRepNo;
D) CREATE VIEW CustomerSalesRep AS SELECT CustNo,CustName,RepName
FROM SALESREP,CUSTOMER
WHERE CustNo=*;
E) CREATE VIEW CustomerSalesRep AS SELECT CustNo,CustName,RepName
FROM SALESREP,CUSTOMER
WHERE SALEREP,SalesRepNo = CUSTOMER,SalesRepNo;
Correct Answer:
Verified
Q14: SQL triggers can be used when the
Q31: SQL triggers are used for providing default
Q46: Since an SQL view is essentially a
Q51: Unlike application code,stored procedures are never distributed
Q52: SQL views can be used to display
Q53: Stored procedures have the advantage of greater
Q57: Because SQL stored procedures allow and encourage
Q64: When an SQL SELECT statement is used
Q67: Although it cannot be used in creating
Q73: The SQL statement used to delete a
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