BUT2/BD/TP4_BD_29.03.2023.txt

37 lines
756 B
Plaintext
Raw Normal View History

2023-10-12 16:39:49 +02:00
CREATE TABLE AEROPORT
(codeAeroport VARCHAR(15) PRIMARY KEY,
nom Varchar(40),
ville Varchar(40),
pays Varchar(40)
);
Create table VOL
(numVol number primary key,
compagnie varchar(40),
periodeVol varchar(30)
);
create table TYPE_AVION
(nomType varchar(40) primary key,
maxSieges number,
nomConstructeur varchar(40)
);
create table AVION
(idAvion number primary key,
totalSieges number,
nomTypeAvion varchar(40) references TYPE_AVION
);
create table PEUT_ATTERRIR
(nomTypeAvion varchar(40) references TYPE_AVION,
codeAeroprot varchar(15) references AEROPORT,
Primary key(nomTypeAvion, codeAeroprot)
);
create table PERSONEL
(idPersonne number primary key,
nom varchar(40),
prenom varchar(40),
fonction varchar(40)
);