Examlex
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.
-The execution of SELECT CUSTOMER.Cname,RENTALS.Date_Out
FROM CUSTOMER,RENTALS
WHERE RENTALS.Cname = CUSTOMER.Cname
AND RENTALS.Make = 'FORD'
Produces the following number of rows:
Q3: What should you do if you experience
Q14: SQL can be used to define tables
Q15: When using the SUM function with two
Q20: Speaking with the purpose of sharing knowledge
Q53: A(n)_ accepts data from its environment,processes data,and
Q61: In instances when you want to sort
Q65: In a hierarchical form,the fixed part is
Q68: The process of associating a query with
Q68: To be union compatible,each table must have
Q72: SQL consists of statements for database definition,database