Quantcast
Channel: MySQL Forums - Connector/Python
Viewing all articles
Browse latest Browse all 384

Python login (no replies)

$
0
0
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)
);

Viewing all articles
Browse latest Browse all 384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>