Add basic table definitions (part a)
parent
24eb6800a2
commit
db78ea2943
39
Cruise.sql
39
Cruise.sql
|
@ -0,0 +1,39 @@
|
|||
CREATE TABLE Reservation(
|
||||
reservationID NUMBER,
|
||||
customerID NUMBER,
|
||||
cruiseID NUMBER,
|
||||
travelAgentID NUMBER,
|
||||
travelDate DATE
|
||||
);
|
||||
|
||||
CREATE TABLE Customer(
|
||||
customerID NUMBER,
|
||||
firstName VARCHAR2(15),
|
||||
lastName VARCHAR2(15),
|
||||
address VARCHAR2(30),
|
||||
phone NUMBER(10)
|
||||
);
|
||||
|
||||
CREATE TABLE Cruise(
|
||||
cruiseID NUMBER,
|
||||
cruiseName VARCHAR2(25),
|
||||
departurePort VARCHAR2(20),
|
||||
days NUMBER(2),
|
||||
companyName VARCHAR2(15),
|
||||
shipName VARCHAR2(30),
|
||||
price NUMBER(7, 2)
|
||||
);
|
||||
|
||||
CREATE TABLE TravelAgent(
|
||||
travelAgentID NUMBER,
|
||||
firstName VARCHAR2(15),
|
||||
lastName VARCHAR2(20),
|
||||
title VARCHAR2(15),
|
||||
salary NUMBER(7, 2)
|
||||
);
|
||||
|
||||
CREATE TABLE Company(
|
||||
companyName VARCHAR2(15),
|
||||
stockSymbol CHAR(4),
|
||||
website VARCHAR2(40)
|
||||
);
|
Loading…
Reference in New Issue