Figuer:
CUSTOMER In table CUSTOMER, CID is the primary key (Customer ID) .
RENTALS In the table RENTALS, RTN provides the rental number (the primary key) , CID is the customer's unique id, PICKUP is the city where the car was picked up, and Return is the city where the car was returned.
RENTCOST RENTCOST shows the base cost of renting a given MAKE for one day.
CITYADJ If the return city of table RENTALS is the one listed in table CITYADJ, the cost of the rental is multiplied by FACTOR and by DAYS shown in table RENTLENGTH below.
RENTLENGTH RENTLENGTH shows the number of days for the rental number (RTN) shown in table RENTALS. In a database used in reality, this table would be merged with the RENTALS table.
-SELECT DISTINCT CNAME,AGE FROM CUSTOMER WHERE CID NOT IN
(SELECT CID FROM RENTALS)
This query is NOT equivalent (order ignored) to the following query:
A) SELECT DISTINCT CNAME, AGE FROM CUSTOMER, RENTALS WHERE CUSTOMER.CID <> RENTALS.CID
B) SELECT DISTINCT CNAME, AGE FROM CUSTOMER WHERE 0 IN (SELECT COUNT(*) FROM RENTALS
C) SELECT DISTINCT CNAME, AGE FROM CUSTOMER WHERE 0 = (SELECT COUNT(*) FROM RENTALS
WHERE CUSTOMER.CID = RENTALS.CID)
D) SELECT DISTINCT CNAME, AGE FROM CUSTOMER WHERE NOT EXISTS (SELECT CID FROM RENTALS
Correct Answer:
Verified
Q48: Figuer: Q49: The SQL keyword(s)_ in a SELECT query Q50: Figuer: Q51: Figuer: Q52: An operator that generates a result table Q54: Figuer: Q55: The SQL keyword(s)_ in a SELECT query Q56: Figuer: Q57: An operator that generates a result table Q58: Figuer: 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
VOTE
CUSTOMER
CUSTOMER
VOTE
VOTE
VOTE