Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

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

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students explore these related Databases questions