Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL data base this table please fast Create table Cars (plate_no number(5) primary key, Color varchar2(10) not null, Model varchar2(12) not null, Year_manf number(4) not

image text in transcribed

image text in transcribed

SQL data base

image text in transcribed

this table please fast

Create table Cars (plate_no number(5) primary key, Color varchar2(10) not null, Model varchar2(12) not null, Year_manf number(4) not null ) ( ) Plate nc 3 3 223- 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) checkvip in(yes', 'no?)) Note: '' '' Customer VIP Cust_id cust_name nationality Age 123 ALI JORDANIAN 35 yes VIP yes "no 133 Ahmad Jordanian 42 no 220 SCOTT AMERICAN 52 no Show car model and lowest price/day for rented cars for each model , A Y g3 g E 111 ca u 1 of 2 RENT_CAR Office Schema . (price / day) no_days . Rent 1 plate no cars custid Platen colo model year and rent date no_days priceday Customer 1 Custid cust_name nationality Age VIP Create table Cars (plate_rto number(5) primary key, Color varchar(10) not null Model varchar2(12) not null, Year_manf number(4) not null ) Plate no color Model 345 red Ford 22345 black BMW year_mant 2019 2020 Create table Customer (cust_id number(4) Primary key. Cust_name varchar2 (20) Pot null. Nationality varchar2(15) not null, Age number(2) check (age>18), VIP varchar2(3) checke vip in ("yes", no)) Note: : "'' Customer Cust_id cust_name nationality Age VIP 123 ALI JORDANIAN 35 yes 133 Ahmad Jordanian 220 SCOTT AMERICAN 52 no VIP yes no 42 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 plate no cust_id rent_date no_days price/day 345 123 11/15/2020 25 4 22345 220 9/22/2020 5 30

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

Step: 3

blur-text-image

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

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions