1 / 6

Passageiro

Escalado. ISA. ISA. hab. pilota. cic. N. End. N. End. cic. Sal. Tel. DN. Empregado. Passageiro. Res. Preço. Classe. Es. Piloto. Técnico. Id. DVoo. B. HV. conduz. Data. NL. M. Fb. C. Cd. utiliza. É-Um. Avião. Aeronave. É-Um. Ns. Hv. DF. usa. Nv. Voo. Qt.

slone
Télécharger la présentation

Passageiro

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Escalado ISA ISA hab pilota cic N End N End cic Sal Tel DN Empregado Passageiro Res Preço Classe Es Piloto Técnico Id DVoo B HV conduz Data NL M Fb C Cd utiliza É-Um Avião Aeronave É-Um Ns Hv DF usa Nv Voo Qt hp hc orig Des Peça Pr Np

  2. Tabelas referentes às entidades CREATE TABLE PASSAGEIRO (CIC Integer, N: char(30), End: char(30), Tel:Integer, Primary Key (CIC)) CREATE TABLE PEÇA (Np Integer, Pr :Integer, Primary Key (Np)) CREATE TABLE VOO (Nv Integer, hp: Time, hc: Time, orig: char(20), Des: char(20), Primary Key (Nv)) CREATE TABLE AVIÃO (Cd Integer, M: char(30), NL: Integer, C: Integer, Fb: Char(30), Primary Key (Cd)) CREATE TABLE EMPREGADO (CIC Integer, N: char(30), DN: Date, End: char(30), Sal:Integer, Primary Key (CIC))

  3. Tabelas referentes às entidades que são chaves de relacionamentos CREATE TABLE DVOO (Id: Integer, Data: Date, Nv: Integer, Ns: Integer, B: Integer, PRIMARY KEY (Id), FOREIGN KEY (Nv) REFERENCES VOO, FOREIGN KEY (B) REFERENCES PILOTO, FOREIGN KEY (Ns) REFERENCES AERONAVE) CREATE TABLE AERONAVE (Ns: Integer, Hv: Integer, DF: Date, Cd: Integer, PRIMARY KEY (Ns), FOREIGN KEY (Cd) REFERENCES AVIÃO)

  4. Tabelas referentes às entidades especializadas que fazem parte de relacionamento ISA CREATE TABLE PILOTO (CIC: Integer, B :Integer, HV: Integer, PRIMARY KEY (CIC), UNIQUE (B), FOREIGN KEY (CIC) REFERENCES EMPREGADO) CREATE TABLE TECNICO (CIC: Integer, Es: char(20), PRIMARY KEY (CIC), FOREIGN KEY (CIC) REFERENCES EMPREGADO)

  5. Tabelas referentes aos relacionamentosn para n CREATE TABLE Res (CIC: Integer, Id :Integer, Classe: char(10), Preço: Integer, PRIMARY KEY (CIC,Id), FOREIGN KEY (CIC) REFERENCES Passageiro, FOREIGN KEY (Id) REFERENCES DVOO) CREATE TABLE Escalado (CIC: Integer, Id :Integer, Classe: char(10), Preço: Integer, PRIMARY KEY (CIC,Id), FOREIGN KEY (CIC) REFERENCES Passageiro, FOREIGN KEY (Id) REFERENCES DVOO)

  6. Tabelas referentes aos relacionamentosn para n CREATE TABLE USA (Np:Integer, Cd:Integer, Qt: Integer, PRIMARY KEY (Np,Cd), FOREIGN KEY (Np) REFERENCES PEÇA, FOREIGN KEY (Cd) REFERENCES AVIAO) CREATE TABLE PILOTA (CIC:Integer, Cd:Integer, PRIMARY KEY (CIC,Cd), FOREIGN KEY (CIC) REFERENCES PILOTO, FOREIGN KEY (Cd) REFERENCES AVIAO) CREATE TABLE HAB (CIC:Integer, Cd:Integer, PRIMARY KEY (CIC,Cd), FOREIGN KEY (CIC) REFERENCES TECNICO, FOREIGN KEY (Cd) REFERENCES AVIAO)

More Related