--Nom: Laurent Senécal-Léonard 14 143 483



Similar documents
--- Vincent Hamel, hamv

constraint PKnbrVol primary key (No_vol) ); DROP TABLE segmentdevol CASCADE CONSTRAINTS; CREATE TABLE segmentdevol( numeric(9) NOT NULL,

Modifier le texte d'un élément d'un feuillet, en le spécifiant par son numéro d'index:

Liste d'adresses URL

Relevé des frais annuels de l entente de licence destinée à l enseignement primaire et secondaire

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";! SET time_zone = "+00:00";!

REFERRAL FEES. CBA Code (Newfoundland, Northwest Territories, Nunavut, Prince Edward Island)

A basic create statement for a simple student table would look like the following.

Technical Service Bulletin

CSS : petits compléments

Sun Enterprise Optional Power Sequencer Installation Guide

AgroMarketDay. Research Application Summary pp: Abstract

Personnalisez votre intérieur avec les revêtements imprimés ALYOS design

NOTES POUR L ALLOCUTION DE M

The new French regulation on gaming: Anything new in terms of payment?

Wideband Optical Splitters FOS Series

General Certificate of Education Advanced Level Examination June 2012

Product / Produit Description Duration /Days Total / Total

The United Nations Convention against Corruption An Overview

Tanenbaum, Computer Networks (extraits) Adaptation par J.Bétréma. DNS The Domain Name System

Sun Management Center Change Manager Release Notes

TIMISKAMING FIRST NATION

VIREMENTS BANCAIRES INTERNATIONAUX

Sun Integrated Lights Out Manager (ILOM) 3.0 Supplement for the Sun Fire X4150, X4250 and X4450 Servers

Archived Content. Contenu archivé

Archived Content. Contenu archivé

Solaris 10 Documentation README

Sun StorEdge RAID Manager Release Notes

Audit de sécurité avec Backtrack 5

TREATIES AND OTHER INTERNATIONAL ACTS SERIES Agreement Between the UNITED STATES OF AMERICA and CONGO

FACULTY OF MANAGEMENT MBA PROGRAM

OTHER SCIENTIFIC AND TECHNICAL ISSUES THAT MAY BE NECESSARY FOR THE EFFECTIVE IMPLEMENTATION OF THE PROTOCOL

Thursday, February 7, DOM via PHP

N1 Grid Service Provisioning System 5.0 User s Guide for the Linux Plug-In

Sun StorEdge A5000 Installation Guide

Democratic Republic of the Congo Tourist visa Application

MONTÉSINOS 2015 NOTICE OF RACE 1. RULES

Service Level Agreement in the Data Center

Gabon Tourist visa Application for citizens of Canada living in Alberta

TP JSP : déployer chaque TP sous forme d'archive war

SUN SEEBEYOND ebam STUDIO RELEASE NOTES. Release 5.1.2

Tool & Asset Manager 2.0. User's guide 2015

Note concernant votre accord de souscription au service «Trusted Certificate Service» (TCS)

Service Level Definitions and Interactions

Veritas Storage Foundation 5.0 Software for SPARC

State of Maryland Health Insurance Exchange

Language Maintenance and Transmission: The Case of Cajun French

What about me and you? We can also be objects, and here it gets really easy,

VIREMENTS BANCAIRES INTERNATIONAUX

Sun Integrated Lights Out Manager Supplement for the Sun Fire X4450 Server

Solaris 9 9/05 Installation Roadmap

Archived Content. Contenu archivé

MD. ALI KHAN. and THE MINISTER OF CITIZENSHIP AND IMMIGRATION REASONS FOR ORDER AND ORDER

Upgrading the Solaris PC NetLink Software

Sun Cluster 2.2 7/00 Data Services Update: Apache Web Server

CONSTRUCTION TRAVAUX PUBLICS RESSOURCES NATURELLES MEDIA KIT CANADA S EQUIPMENT MAGAZINE. InfraStructures 2015 Media Kit page 1

Oracle 10g PL/SQL Training

Corrigés des exercices SQL pour MySQL

STAGE YOGA & RANDONNEES à MADERE

Memory Eye SSTIC Yoann Guillot. Sogeti / ESEC R&D yoann.guillot(at)sogeti.com

Sun TM SNMP Management Agent Release Notes, Version 1.6

Optimizing Solaris Resources Through Load Balancing

Introduction au BIM. ESEB Seyssinet-Pariset Economie de la construction contact@eseb.fr

Optimizing the Performance of the Oracle BI Applications using Oracle Datawarehousing Features and Oracle DAC

LAN-Free Backups Using the Sun StorEdge Instant Image 3.0 Software

The Top the creating of product then Questions. There such, browsers: using features may directly line and can Access experience, and the while

Oracle Database 10g Express

SCHOLARSHIP ANSTO FRENCH EMBASSY (SAFE) PROGRAM 2016 APPLICATION FORM

Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification

Enterprise Informa/on Modeling: An Integrated Way to Track and Measure Asset Performance

Scrubbing Disks Using the Solaris Operating Environment Format Program

Sun Management Center 3.5 Update 1b Release Notes

CIHR Foundation Webinar November 26, 2013

TP : Système de messagerie - Fichiers properties - PrepareStatement

Archived Content. Contenu archivé

Level 3 French, 2015

AP FRENCH LANGUAGE 2008 SCORING GUIDELINES

Bases de données réparties: TP1

Travaux publics et Services gouvernementaux Canada. Title - Sujet RFSA FOR THE PROVISION OF SOFTWARE. Solicitation No. - N de l'invitation

Sun Management Center 3.6 Version 5 Add-On Software Release Notes

Archived Content. Contenu archivé

TC ID 739. Czech Airlines Training Centre (CATC) Prague, CZ B RN TP9685 Rev 2 JAR FSTD 1A, Amd 2

Archived Content. Contenu archivé

Certificate of Incorporation Certificat de constitution

PostGIS Integration Tips

HEALTH CARE DIRECTIVES ACT

Linux A multi-purpose executive support for civil avionics applications?

How To Become A Foreign Language Teacher

Survey on Conference Services provided by the United Nations Office at Geneva

Archived Content. Contenu archivé

Transcription:

--Nom: Laurent Senécal-Léonard 14 143 483 --Création de la table aéroport et de ses attributs drop table Aeroport cascade constraints; create table Aeroport ( codeaeroport varchar2(6) not null, ville varchar2(20) not null, etat varchar2(20) not null, nom varchar2(20) not null, constraint PKcodeAeroport primary key (codeaeroport) ); -- Constrainte d intégrité de type clé primaire pour le code de l aéroport, --car chaque aéroport possède un code unique à lui. En d autres mots son code ne --peut pas être le même dans un autre aéroport --Création de la table Vol et ses attributs drop table Vol cascade constraints; create table Vol ( novol varchar2(10) not null, typedevol varchar2(10) not null, constraint PKnoVol primary key (novol) ); --Constrainte d intégrité de type clé primaire pour le numéro de vol, -- car chaque vols partant d un aéroport à un numero propre à lui --Création de la table SegmentDeVol et ses attributs drop table SegmentDeVol cascade constraints; create table SegmentDeVol ( novol varchar2(10) not null, numsegment varchar2(10) not null, codeaeroportdepart varchar2(6) not null, codeaeroportarrivee varchar2(6) not null, dateheureprevuedepart timestamp, dateheureprevuearrivee timestamp, constraint FKSegmentDeVolNoVol foreign key (novol) references Vol, --Foreign key --qui permet de référer le numero de vol de la table SegmentDeVol à la l attribut novol de la table Vol constraint FKcodeAeroportDepart foreign key(codeaeroportdepart) references Aeroport, constraint FKcodeAeroportArrivee foreign key(codeaeroportarrivee) references Aeroport ); --Foreign key qui permet de référer le code de l aéroport de la table SegmentDeVol à la l attribut --codeaeroport de la table Aeroport --Création de la table Classe et ses attributs drop table Classe cascade constraints; create table Classe (

noclasse varchar2(14) not null, description varchar2(14) not null, constraint PKnoClasse primary key (noclasse) ); --Clé primaire pour le numero de clase --Création de la table ClasseVol et ses attributs drop table ClasseVol cascade constraints; create table ClasseVol ( noclasse varchar2(14) not null, novol varchar2(10) not null, prix number(10,2), constraint UclasseVol unique (noclasse, novol), --Clé unique pour le numéro de classe et le numéro de vol constraint FKClasseVolnoClasse foreign key (noclasse) references Classe, -- Foreign key de l attribut noclasse de la table ClasseVol vers l attribut noclasse de la table Classe constraint FKClasseVolNoVol foreign key (novol) references Vol --Foreign key de l attribut novol de la table ClasseVol vers l attribut novol de la table Vol ); --Création de la table Avion et ses attributs drop table Avion cascade constraints; create table Avion ( noavion number(5) not null, nomodele varchar2(15) not null, dateachat date not null, constraint PKnoAvion primary key (noavion) -- Clé primaire du numéro avion ); --Création de la table AvionVol et ses attributs drop table AvionVol cascade constraints; create table AvionVol ( novol varchar2(10) not null, noavion number(5) not null, constraint UavionVol unique (novol, noavion), --Clé unique de novol et noavion constraint FKAvionVolnoVol foreign key (novol) references vol, --Foreign key de novol vers sa table de référence(vo l) constraint FKAvionVolnoAvion foreign key (noavion) references Avion --Foreign key de noavion vers sa table de réfé rence(avion) );

insert into aeroport(codeaeroport, Ville, Etat, nom) values ( YUL, Montréal, QC, Trudeau ); insert into aeroport(codeaeroport, Ville, Etat, nom) values ( YYZ, Toronto, ON, Pearson ); insert into aeroport(codeaeroport, Ville, Etat, nom) values ( CDG, Paris, FR, Charles-de-Gaulle ); insert into AVION(noAvion, nomodele, dateachat) values (1, Boeing 747, date 2010-09-08 ); insert into AVION(noAvion, nomodele, dateachat) values (2, Airbus A380, date 2011-09-01 ); insert into AVION(noAvion, nomodele, dateachat) values (3, Airbus A340, date 2012-08-01 ); insert into Vol(noVol,typeDeVol) values ( AC2001, Régulier ); insert into Vol(noVol,typeDeVol) values ( AC2002, Nolisé ); ureprevuearrivee) values ( AC2001,1, YUL, YYZ, timestamp 2014-01-02 13:00:00, timestamp 2014-01-02 14:00:00 ); ureprevuearrivee) values ( AC2001,2, YYZ, CDG, timestamp 2014-01-02 14:00:00, timestamp 2014-01-03 07:00:00 ); insert into classe (noclasse, Description) values (1, Affaires ); insert into classe (noclasse, Description) values (2, Économique ); insert into classevol (noclasse, novol, prix) values (1, AC2001, 1010,02 ); insert into classevol (noclasse, novol, prix) values (2, AC2001, 300,02 ); insert into avionvol (novol, noavion) values ( AC2001, 1 ); insert into avionvol (novol, noavion) values ( AC2002, 2 ); update Aeroport set etat = QUEBEC where etat= QC ; update classevol set prix=prix2 where noclasse=1; Delete from Avion where nomodele like %A340% ; SQLPlus: Release 11.2.0.2.0 Production on Mon Sep 29 11:20:36 2014 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options début de test-tp1.sql PL/SQL procedure successfully completed.

drop table Aeroport cascade constraints ); -- Constrainte d intégrité de type clé primaire pour le code de l aéroport, ERROR at line 7: ); --Constrainte d intégrité de type clé primaire pour le numéro de vol, ERROR at line 5: constraint FKcodeAeroportArrivee foreign key(codeaeroportarrivee) references Aeroport ERROR at line 12: ); --Clé primaire pour le numero de clase ERROR at line 6: constraint FKClasseVolnoClasse foreign key (noclasse) references Classe, ERROR at line 6: drop table Avion cascade constraints Table created.

drop table AvionVol cascade constraints constraint FKAvionVolnoVol foreign key (novol) references vol, --Foreign key de novol vers sa table de référence(vo l) ERROR at line 5: insert into aeroport(codeaeroport, Ville, Etat, nom) values ( YUL, Montréal, QC, Trudeau ) insert into aeroport(codeaeroport, Ville, Etat, nom) values ( YYZ, Toronto, ON, Pearson ) insert into aeroport(codeaeroport, Ville, Etat, nom) values ( CDG, Paris, FR, Charles-de-Gaulle ) 1 row created. 1 row created. 1 row created. insert into Vol(noVol,typeDeVol) values ( AC2001, Régulier )

insert into Vol(noVol,typeDeVol) values ( AC2002, Nolisé ) ureprevuearrivee) values ( AC2001,1, YUL, YYZ, timestamp 2014-01-02 13:00:00, timestamp 2014-01-02 14:00:00 ) ureprevuearrivee) values ( AC2001,2, YYZ, CDG, timestamp 2014-01-02 14:00:00, timestamp 2014-01-03 07:00:00 ) insert into classe (noclasse, Description) values (1, Affaires ) insert into classe (noclasse, Description) values (2, Économique ) insert into classevol (noclasse, novol, prix) values (1, AC2001, 1010,02 ) insert into classevol (noclasse, novol, prix) values (2, AC2001, 300,02 )

insert into avionvol (novol, noavion) values ( AC2001, 1 ) insert into avionvol (novol, noavion) values ( AC2002, 2 ) update Aeroport set etat = QUEBEC where etat= QC update classevol set prix=prix2 where noclasse=1 1 row deleted. Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options