Base de données. TP5 : LID multi-table, jointures



Similar documents
Contact us : Fatiha ZEMAM Chef d escale. Adress : Phone number : +33 (0) Fax: +33 (0) fret@aigle-azur.

>

Régression logistique : introduction

Enter a world class network WORLD TRADE CENTER LYON WORLD TRADE CENTER LYON WORLD TRADE CENTER LYON

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

Haslingden High School French - Y7 1st MFL Set 4. Block B - HOMEWORK Au collège Year 8 Block A

How To Read An Islamic

Start Here. Installation and Documentation Reference. Sun StorEdgeTM 6120 Array

Calendrier des Formations. France. janvier juin 2016

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

How To Improve Your Design

Liste d'adresses URL

The Need For Speed. leads to PostgreSQL. Dimitri Fontaine 28 Mars 2013

G20 Finance Ministers and Central Bank Governors Meeting February, 2011 Paris - France

System Requirements Orion

Recommended Piscine Lyon Show hotels

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

Travel information. The link to the complete bus map of Nice is

Unrealized Gains in Stocks from the Viewpoint of Investment Risk Management

THE CITY OF TORONTO S JOB DEMANDS ANALYSIS AND JOB MATCH SYSTEM

ENABLING OBJECTIVE AND TEACHING POINTS. DRILL: TIME: One 30 minutes period. 6. METHOD/APPROACH: a. demonstration; and. b. performance.

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

Immobiline DryStrip Reswelling Tray

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

How To Visit Hec Le Ch\U00E2Teau

CSS : petits compléments

Technical Service Bulletin

Sun Management Center Change Manager Release Notes

THE USE OF INERTIA SIMULATION IN BRAKE DYNAMOMETER TESTING UTILISATION DE LA SIMULATION D'INERTIE DANS LES DYNAMOMÈTRES DE FREINS

POB-JAVA Documentation

Managing the Knowledge Exchange between the Partners of the Supply Chain

ITIL & CIM Benefits of a dialog

SunFDDI 6.0 on the Sun Enterprise Server

Strategic Workforce Planning and Competency Management at Schneider Electric

Thursday, February 7, DOM via PHP

Printing in Secret. The Role of the Clandestine Press in the French Resistance Movement of World War II

Short Form Description / Sommaire: Carrying on a prescribed activity without or contrary to a licence

Certificate of Incorporation Certificat de constitution

Economic overview of the French and world markets for Angora rabbit wool

requête SQL:SELECT NomP, matiere FROM `produit` WHERE poids between 3 and 4 Enregistrements: 4

Enterprise Risk Management & Board members. GUBERNA Alumni Event June 19 th 2014 Prepared by Gaëtan LEFEVRE

Detection of water leakage using laser images from 3D laser scanning data

Les fragments. Programmation Mobile Android Master CCI. Une application avec deux fragments. Premier layout : le formulaire

User Manual Culturethèque Thailand

Veritas Storage Foundation 5.0 Software for SPARC

EURO GENERAL PRICE LIST

A web-based multilingual help desk

En 1921, Charles Jourdan crée la marque éponyme. Celle-ci s illustre tout particulièrement par des stilettos haut perchés rivalisant de glamour et de

TP1 : Correction. Rappels : Stream, Thread et Socket TCP

Il est repris ci-dessous sans aucune complétude - quelques éléments de cet article, dont il est fait des citations (texte entre guillemets).

European Validation Association (EVA) Presidente: Kathia MUNSCH Tuesday, 8 th of July 2014, Dear Colleagues,

PRACTICAL INFORMATION

Calcul parallèle avec R

Séries U3-CMOS. Nouvelles. Caméras Numériques USB3. Ultra rapides

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

Solaris 10 Documentation README

STAGE INTERNATIONAL DE KENDO KENDO INTERNATIONAL SEMINAR

Instruction Manual PC55O. With PC5OORK Keypad. 1996, 2002 Digital Security Controls Ltd. Toronto, Canada Printed in Canada R3

Service Level Definitions and Interactions

ACP-EU Cooperation Programme in Science and Technology (S&T II) / Programme de Coopération ACP-UE pour la Science et la Technologie

VISIT SIP Avaya IP Office Server Edition 9.0 Configuration Checklist

Lesson 2. Une Promenade... (Disc 1, Track 3)

Product / Produit Description Duration /Days Total / Total

Paris 10, 11 and 12 September 2008

Bicultural child in the Dordogne English classroom to be French or not to be? NORAH LEROY ESPE D AQUITAINE - UNIVERSITÉ DE BORDEAUX

Sun StorEdge A5000 Installation Guide

Interfaces de programmation pour les composants de la solution LiveCycle ES (juillet 2008)

Rapid Recovery Techniques: Auditing Custom Software Configuration

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

First-half 2012 Results. August 29 th, Jean-Paul AGON. Chairman and CEO

Introduction to data processing

Risk Management Tools For Port Security, Critical Infrastructure, and Sustainability. NATO Advanced Research Workshop

Cyber security strategies, services and CyberSOC organizations. How can you deal with cyber-attacks?

Portable Document Scanner User s Guide for Model PS803 v Revised 09/2015 For the most up-to-date version of this User s Guide, go to

Future Entreprise. Jean-Dominique Meunier NEM Executive Director Nov. 23, 2009 FIA Stockholm

Contact us : Bernard GADEA Responsable d agence

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

AIRBUS VHT Framework - Mascot-NuM presentation - Emmanuelle Garcia

:: WIRELESS MOBILE MOUSE

Sun Enterprise Optional Power Sequencer Installation Guide

Sun Grid Engine Release Notes

niveau : 1 ere année spécialité : mécatronique & froid et climatisation AU : Programmation C Travaux pratiques

The French Approach to Rapid Transit Mode Selection and Project Planning Thierry Gouin / Certu

Solaris 9 9/05 Installation Roadmap

Sun StorEdge Availability Suite Software Point-in-Time Copy Software Maximizing Backup Performance

Reducing the Backup Window With Sun StorEdge Instant Image Software

IDCAB SERVICE GENERAL TERMS AND CONDITIONS OF SALE

openoffice impress 3 guide

Le(s) auteur(s) par la presente cede(nt) a. I'IFIP en toute exclusivite et dans tous les pays tous les droits relatifs a. l'oeuvre

Transcription:

ZAWISLAK Léo WARHURST Matthew Base de données La base METEO TP5 : LID multi-table, jointures MIAGE L3 25/11/2014

Question 1 select location, souname from Station, Source ; Toutes les combinaisons de sources et stations sont affichés. C est un produit cartésien. select location, souname from Station, Source where Station.stid = Source.stid; C est une jointure par stid entre les stations et sources. Question 2 SELECT DISTINCT souname FROM Source so, Station st AND location = '' BORDEAUX MERIGNAC MERIGNAC AEROPORT DE BORDEAUX Question 3 SELECT DISTINCT souname FROM Source so, Observation o, ObservationInReport oir, Report r WHERE so.souid = o.souid AND o.obid = oir.obid AND oir.reid = r.reid AND redate = '27-08-2013' BORDEAUX MERIGNAC LYON-BRON TOULOUSE BLAGNAC PARIS-MONTSOURIS Question 4 SELECT DISTINCT souname, eledesc FROM Source so, Station st, Element e AND so.eleid = e.eleid AND location = '' BORDEAUX MERIGNAC MERIGNAC AEROPORT DE BORDEAUX MERIGNAC AEROPORT DE ELEDESC Precipitation amount unknown interval Daily sunshine 18-18 UT Precipitation amount morning today 06,07,08 until morning next day Maximum temperature morning today 06,07,08 until

BORDEAUX MERIGNAC AEROPORT DE BORDEAUX morning next day Minimum temperature 18-18 UT Maximum temperature unknown interval Minimum temperature unknown interval Daily sunshine 8 ligne(s) sélectionnée(s). Question 5 SELECT DISTINCT redate FROM Source so, Station st, Observation o, ObservationInReport oir, Report r AND so.souid = o.souid AND o.obid = oir.obid AND oir.reid = r.reid AND location = 'LYON-BRON' Question 6 SELECT DISTINCT so.souname FROM Source so, Source so2 WHERE so.stid = so2.stid AND so2.souid = 104917 BLAGNAC AEROP. TOULOUSE-BLAGNAC TOULOUSE FRANCAZAL TOULOUSE-BLAGNAC TOULOUSE BLAGNAC Question 7 SELECT DISTINCT location FROM Source so, Station st, Source so2 AND so2.stid = st.stid AND so.eleid = 'TX6' AND so2.eleid = 'RR3' BLAGNAC AEROP. TOULOUSE-BLAGNAC PARIS-14E PARC MONTSOURIS LOCATION Question 8 SELECT so.souid, so.souname FROM Source so, Observation o WHERE so.souid = o.souid (+) AND o.obid IS NULL

SOUID 100126 PARIS-14E PARC MONTSOURIS 100106 BLAGNAC AEROP. TOULOUSE-BLAGNAC 118013 100123 PARIS-14E PARC MONTSOURIS 100108 MERIGNAC AEROPORT DE BORDEAUX 100105 BLAGNAC AEROP. TOULOUSE-BLAGNAC 104964 LYON-BRON 100845 PARIS-14E PARC MONTSOURIS 907631 TOULOUSE FRANCAZAL 118014 104969 PARIS-14E PARC MONTSOURIS 100844 BRON LYON AEROPORT 100107 MERIGNAC AEROPORT DE BORDEAUX 104916 TOULOUSE-BLAGNAC 100121 BRON LYON AEROPORT 118035 BRON LYON AEROPORT 104970 PARIS-14E PARC MONTSOURIS 118034 BRON LYON AEROPORT 100103 BLAGNAC AEROP. TOULOUSE-BLAGNAC 104965 LYON-BRON 100119 BRON LYON AEROPORT 100109 MERIGNAC AEROPORT DE BORDEAUX 104920 118015 100124 PARIS-14E PARC MONTSOURIS 104968 PARIS-14E PARC MONTSOURIS 100122 BRON LYON AEROPORT 100840 BLAGNAC AEROP. TOULOUSE-BLAGNAC 100104 BLAGNAC AEROP. TOULOUSE-BLAGNAC 106771 TOULOUSE-BLAGNAC 100120 BRON LYON AEROPORT 31 ligne(s) sélectionnée(s). Question 9 SELECT DISTINCT st.location FROM Station st, Station st2 WHERE st2.stid = 800 AND st.height > st2.height LYON-BRON BRON LYON AEROPORT LOCATION

Question 10 SELECT DISTINCT eledesc FROM Element e, Source so WHERE so.eleid = e.eleid GROUP BY eledesc HAVING COUNT(souid) = 1 Daily sunshine 18-18 UT ELEDESC Question 11 SELECT DISTINCT oir2.reid FROM ObservationInReport oir, ObservationInReport oir2, Observation o, Observation o2, Source so, Source so2 WHERE oir.obid = o.obid AND o.souid = so.souid AND oir2.obid = o2.obid AND o2.souid = so2.souid AND so.eleid <> so2.eleid REID 1 Question 12 SELECT souname, COUNT(obid) FROM Source s, Observation o WHERE s.souid = o.souid GROUP BY s.souid, souname COUNT(OBID) BORDEAUX MERIGNAC 1096 PARIS-MONTSOURIS 3309 TOULOUSE-BLAGNAC 387 TOULOUSE-BLAGNAC 1 BRON LYON AEROPORT 387 PARIS-14E PARC MONTSOURIS 311 PARIS-14E PARC MONTSOURIS 365 TOULOUSE-BLAGNAC 329 LYON-BRON 1805 TOULOUSE BLAGNAC 4521 TOULOUSE-BLAGNAC 1 PARIS-ORLY 17 PARIS-14E PARC MONTSOURIS 382 TOULOUSE-BLAGNAC 241 14 ligne(s) sélectionnée(s).

Question 13 SELECT r.reid, redate, COUNT(o.obid) FROM Report r, ObservationInReport oir, Observation o WHERE r.reid = oir.reid AND oir.obid = o.obid GROUP BY r.reid, redate REID REDATE COUNT(O.OBID) 1 27-08-2013 4392 Question 14 SELECT DISTINCT souname, height FROM Source so, Observation o WHERE so.souid = o.souid GROUP BY souname, height, so.souid HAVING COUNT(obid) > 1000 HEIGHT TOULOUSE BLAGNAC 158 PARIS-MONTSOURIS 77 BORDEAUX MERIGNAC 54 LYON-BRON 201