MySQL Forums
Forum List  »  Connector/Python

Python login
Posted by: Naveen M
Date: May 13, 2016 05:22PM

need website code which lets a user enter a desired rental period, then displays a list of all cars available during
this period.


CREATE TABLE cars(
plate varchar(10) NOT NULL,
description varchar(50),
daily_rate int,
CONSTRAINT pk_cars PRIMARY KEY (plate)
);
CREATE TABLE car_rentals(
plate varchar(10) NOT NULL,
start_date date NOT NULL,
end_date date NOT NULL,
license_nr varchar(10) NOT NULL,
CONSTRAINT fk_car_rentals_cars FOREIGN KEY (plate) REFERENCES cars (plate)
);

Options: ReplyQuote


Subject
Written By
Posted
Python login
May 13, 2016 05:22PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.