Refer the below schema and create the SCHEDULE. Column Datatype Size Constraint Constraint name Reference table Name Column name Schedule_id Travel_date Primary key PK SCHEDULE Varchar2 3 Date Source...


SQL


Refer the below schema and create the SCHEDULE.<br>Column<br>Datatype Size<br>Constraint<br>Constraint name<br>Reference table<br>Name<br>Column name<br>Schedule_id<br>Travel_date<br>Primary key<br>PK SCHEDULE<br>Varchar2<br>3<br>Date<br>Source<br>Varchar2<br>20<br>Destination<br>Bus_no<br>Duration<br>Varchar2<br>Number<br>Number<br>20<br>11<br>Foreign key<br>FK SCHEDULE_BUSES<br>Buses - bus_no<br>11<br>(Hint: Assume that the parent table 'BUSES' has been already created)<br>BUSES<br>number(11)<br>BUS_NAME varchar2(20)<br>varchar2(20)t<br>TOTAL_SEATS number(11)<br>AVAIL SEATS number(11)<br>BUS NO<br>SCHEDULE<br>varchar2(3)<br>SCHEDULE ID<br>TRAVEL DATE<br>TYPE<br>date d<br>varchar2(20)t<br>SOURCE<br>DESTINATION varchar2(20)<br>BUS NO<br>O BUS_NO<br>number(11)<br>DURATION<br>number(11)<br>PAYMENTS<br>DISCOUNTS<br>varchar2(3)<br>PAYMENT ID Vvarchar2(3)<br>TICKET ID<br>O BD_ID<br>O DISCOUNT_ID varchar2(3)<br>DISCOUNT_ID<br>DISCOUNT_AMOUINT number(11) #<br>TICKET ID<br>varchar2(3)<br>number(11)<br>TICKETS<br>DISCOUNT ID<br>varchar2(3)<br>SCHEDULE_ID varchar2(3)<br>number(11) a<br>number(11)<br>number(11) a<br>TICKET ID<br>CHEDULE ID<br>FARE<br>USER ID<br>pUSER_ID<br>USERS<br>NO SEATS<br>USER_ID number(11)<br>primary key - not null<br>NAME<br>varchar2(20)t<br>e foreign key<br># data type - number<br>ADDRESS varchar2(100) t<br>PHNO<br>number(11)a<br>EMAILID varchar2(30) t<br>d data type - date<br>CANCELLATION<br>It| data type - varchar2<br>CANCELLATION_ID varchar2(3) t<br>P TICKET ID<br>O BD ID<br>TICKET ID<br>BOOKINGDETAILS<br>varchar2(3)<br>number(11)<br>BD ID<br>BD_ID number(11)<br>ACC_NO number(11) *<br>NAME varchar2(10) t<br>PUSER ID number(11)<br>USER_ID<br>

Extracted text: Refer the below schema and create the SCHEDULE. Column Datatype Size Constraint Constraint name Reference table Name Column name Schedule_id Travel_date Primary key PK SCHEDULE Varchar2 3 Date Source Varchar2 20 Destination Bus_no Duration Varchar2 Number Number 20 11 Foreign key FK SCHEDULE_BUSES Buses - bus_no 11 (Hint: Assume that the parent table 'BUSES' has been already created) BUSES number(11) BUS_NAME varchar2(20) varchar2(20)t TOTAL_SEATS number(11) AVAIL SEATS number(11) BUS NO SCHEDULE varchar2(3) SCHEDULE ID TRAVEL DATE TYPE date d varchar2(20)t SOURCE DESTINATION varchar2(20) BUS NO O BUS_NO number(11) DURATION number(11) PAYMENTS DISCOUNTS varchar2(3) PAYMENT ID Vvarchar2(3) TICKET ID O BD_ID O DISCOUNT_ID varchar2(3) DISCOUNT_ID DISCOUNT_AMOUINT number(11) # TICKET ID varchar2(3) number(11) TICKETS DISCOUNT ID varchar2(3) SCHEDULE_ID varchar2(3) number(11) a number(11) number(11) a TICKET ID CHEDULE ID FARE USER ID pUSER_ID USERS NO SEATS USER_ID number(11) primary key - not null NAME varchar2(20)t e foreign key # data type - number ADDRESS varchar2(100) t PHNO number(11)a EMAILID varchar2(30) t d data type - date CANCELLATION It| data type - varchar2 CANCELLATION_ID varchar2(3) t P TICKET ID O BD ID TICKET ID BOOKINGDETAILS varchar2(3) number(11) BD ID BD_ID number(11) ACC_NO number(11) * NAME varchar2(10) t PUSER ID number(11) USER_ID

Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here