Figuer: CUSTOMER In Table CUSTOMER, CID Is the Primary Key (Customer ID)
Question 54
Question 54
Multiple Choice
Figuer: CUSTOMER CID 102030405060 CNAME BLACK GREEN JONES MARTIN SIMON VERNON AGE 402530352260 RESID_CITY ERIE CARY HEMET HEMET ERIE CARY BIRTHPLACE TAMPA ERIE TAMPA TAMPA ERIE CARY In table CUSTOMER, CID is the primary key (Customer ID) . RENTALS CID 101010203030405070 MAKE FORD GM FORD NISSAN FORD GM FORD GM TOYOTA DATE_OUT 10−0ct−199401−Nov−199501−Jan−199507−Ju1−199401−Jul−199501−Aug−199501−Aug−199401−Sep−199502−Sep−1995 PICKUP CARY TAMPA ERIE TAMPA CARY ERIE CARY ERIE RENO RETURN CARY CARY ERIE TAMPA ERIE ERIE ERIE CARY RENO RTN 123456789 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 MAKE FORD GM NISSAN TOYOTA VOLVO COST 3040302050 RENTCOST shows the base cost of renting a given MAKE for one day. CITYADJ CITY CARY ERIE RENO TAMPA FACTOR 11.10.90.8 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 RTN 12345678 DAYS 13224231 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 CID,CNAME FROM CUSTOMER HERE EXISTS (SELECT CID FROM RENTALS WHERE CUSTOMER.CID = RENTALS.CID AND PICKUP = 'CARY') The execution of this query lists the following CNAMEs:
A) BLACK, GREEN, JONES, MARTIN, SIMON B) BLACK, JONES, MARTIN C) BLACK, GREEN, JONES, MARTIN, SIMON, VERNON D) BLACK
Correct Answer:
Verified
Unlock this answer now Get Access to more Verified Answers free of charge