Examlex
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.
-DELETE FROM CUSTOMER WHERE CID IN
(SELECT CID FROM RENTALS WHERE RETURN IN
(SELECT BIRTHPLACE FROM CUSTOMER) )
The number of rows deleted from CUSTOMER by the execution of this query is:
Q7: Julia has a shared lock on the
Q14: Which of the following statements is not
Q14: To ensure that a database contains valid
Q18: Julia has an exclusive lock on the
Q27: To catch a specific error in a
Q27: A good database design ensures that users
Q35: A Database Programming Language is a procedural
Q40: When the recovery manager performs a(n)_ operation
Q59: Two triggers with the same timing,granularity,and applicable
Q69: View integration can be more complex with