CUSTOMER
RENTALS
In the table RENTALS, Rtn provides the rental number (the primary key., Cname refers to the Cname in Customer, Pickup is the city where the car was picked up, and Return is the city where the car was returned.
RENTCOST
In RENTCOST, COST 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) of the table RENTALS (this table exists for the sake of testing SQL. Normally, the data here should be part of table RENTALS.
-Choose the meaning of the query SELECT DISTINCT C1.Cname
FROM CUSTOMER C1,CUSTOMER C2
WHERE C1.BirthPlace = C2.Resid_City:
A) List names of customers whose BirthPlace appears as a Resid_City
B) List names of customers whose Resid_City appears as a BirthPlace
C) List names of customers whose BirthPlace is their Resid_City
D) List names of customers whose Resid_City is their BirthPlace
Correct Answer:
Verified