Question: SQL data base And this table requested RENT_CAR Office Schema . (price / day) no_days Rent 1 piste no custid cars Customer rent date Plate_no

 SQL data base And this table requested RENT_CAR Office Schema .

(price / day) no_days Rent 1 piste no custid cars Customer rent

date Plate_no color model no_days price/day 1 Cust_id cust_name nationality Age VIP

year_man Create table Cars (plate_no number(5) primary key, Color varchar2(10) not null,

Model varchar(12) not null, Year_manf number(4) not null ) (la) Plate_no color

SQL data base And this table requested

RENT_CAR Office Schema . (price / day) no_days Rent 1 piste no custid cars Customer rent date Plate_no color model no_days price/day 1 Cust_id cust_name nationality Age VIP year_man Create table Cars (plate_no number(5) primary key, Color varchar2(10) not null, Model varchar(12) not null, Year_manf number(4) not null ) (la) Plate_no color Model 345 red Ford 22345 black BMW year_manf 2019 2020 Create table Customer (cust_id number(4) Primary key, Cust_name varchar2 (20) not null, Nationality varchar2(15) not null, Age number(2) check (age> 18), VIP varchar2(3) check( vip in ('yes','no')) Note: '' , '' Customer IP yes no Cust_id cust_name nationality 123 AL JORDANIAN Age VIP 35 yes 133 Ahmad Jordanian 42 no 220 SCOTT AMERICAN 52 no Create table Rent ( Plate_no number (5) references cars (palet_no), Cust_id number(4) references customer(cust_id), Rent_date date not null, No_days number(2) check (no_days>0), Price/day number(3) not null check(price>5) Constraint rent_pk primary key (plate_no,cust_id)) Rent custid plate na 345 123 rent_date no_days price/day 11/15/2020 25 9/22/2020 5 30 22345 220 List rent_date, plate_no, color, model, Price/day and no day for all rented cars. 2 A BI 0 III HII % List rent details (all columns) during the last month sorted according to no_days (use sysdate) 2 A BI O E E Show car model and lowest price/day for rented cars for each model. 2 A o 8

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!