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.
-(ACCESS) SELECT CNAME,DATE_OUT,RTN FROM CUSTOMER INNER JOIN RENTALS
ON CUSTOMER.CID = RENTALS.CID
WHERE AGE < 40 AND EXISTS
(SELECT * FROM RENTLENGTH
WHERE RENTALS.RTN = RENTLENGTH.RTN
AND DAYS > 1)
The CNAMEs shown by the execution of this query are:
A) JONES, MARTIN
B) GREEN, JONES, MARTIN
C) BLACK, JONES, MARTIN
D) BLACK, GREEN, JONES, MARTIN
Correct Answer:
Verified
Q30: Figuer: Q31: When performing a grouping operation,the SQL standard Q32: Null values affect: Q33: Nested queries can be used like a Q34: Select the statement that is correct about Q36: When using the SUM function with two Q37: The following two functions will always produce 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
CUSTOMER
A) simple conditions involving comparison