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.
-SELECT DISTINCT CID,CNAME FROM CUSTOMER
WHERE CID IN
(SELECT CID FROM RENTALS WHERE MAKE IN ('FORD','TOYOTA') )
The CNAMEs shown by the execution of this query are:
Q8: A common refinement of a data model
Q10: The following is a weak entity:<br>A) Book<br>B)
Q15: The persons playing the most important role
Q15: If a form contains only a primary
Q21: The common SQL*Plus command used to display
Q22: Which of the following columns or combination
Q49: In the fifth step of form analysis,the
Q51: The number of columns in the view
Q62: Because of its advantages over MOLAP and
Q73: Although more difficult to read,the primary advantage