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