Multiple Choice
Based on the code shown, which query lists the number and name of all customers that are either represented by sales rep 30 or that currently have orders on file, or both???Customer ( CustomerNum, CustomerName, Street, City, State, PostalCode, Balance, CreditLimit, RepNum )
A) SELECT CustomerNum, CustomerName, FROM Customer WHERE RepNum='30' UNION SELECT Customer.CustomerNum, CustomerName, FROM Customer ;
B) SELECT CustomerNum, CustomerName, FROM Customer WHERE RepNum='30' UNION SELECT Customer.CustomerNum, CustomerName, FROM Customer, Orders WHERE Customer.CustomerNum=Orders.CustomerNum ;
C) SELECT CustomerNum, CustomerName, FROM Customer WHERE RepNum='30' WHERE Customer.CustomerNum=Orders.CustomerNum ;
D) SELECT CustomerNum, CustomerName, FROM Customer WHERE RepNum='30' UNION SELECT Customer.CustomerNum, CustomerName, FROM Customer, Orders ;
Correct Answer:

Verified
Correct Answer:
Verified
Q18: Based on the code shown, which query
Q19: One common restriction placed on table and
Q20: There is no difference between the COUNT
Q21: You can use the SQL CREATE TABLE
Q22: Based on the code shown, for each
Q24: SQL is the standard language for relational
Q25: Based on the code shown, which query
Q26: The BETWEEN operator is exclusive; it includes
Q27: Based on the code shown, which query
Q28: Words that are part of the SQL