Presentation is loading. Please wait.

Presentation is loading. Please wait.

Question 1.1 Q1 Q2 Q3 Q4 USA Canada home Computer phone security 1000 2000 82514400.

Similar presentations


Presentation on theme: "Question 1.1 Q1 Q2 Q3 Q4 USA Canada home Computer phone security 1000 2000 82514400."— Presentation transcript:

1 Question 1.1 Q1 Q2 Q3 Q4 USA Canada home Computer phone security

2 Question 1.2 Dice ( (city = Toronto or city = Vancouver) And (Quarter = Q1 or Quarter = Q2) And (item = home entertainement or item = computer) )

3 Question 1.3

4 Question 2.1 OLAP : – Dice (Année = 1984 and Implication = « Bus » and Dommages = Blessé grave. ) SQL SELECT somme(Accident.nb_blesses_graves) FROM MACCIDENT WHERE MACCIDENT_id in (SELECT Maccident_id FROM MImplique, MAccident, MDate WHERE MDate.date_id=MAccident.date_id) AND MImplique.code=MAccident.impliq_id AND (((MDate.mois)=1) AND ((MDate.annee)=1984) AND ((MImplique.libelle)="Bus"))) GROUP BY Accident.nb_blesse_grave PALO Coller une vue / Selection Année – Implication – Mois – Dommages/ Selectionner les dimensions Annee(1984) Mois (Janvier) Implication(Bus)

5 Question 2.2 OLAP – Rollup jours -> année – Rollup Implication -> Véhicule – Dice Année = 1984 and Implication = « Véhicule » and (Dommages = Blessé léger ou Dommages = Blessé grave ) SQL SELECT sum(MAccident.nb_blesses_graves)+ sum(MAccident.nb_blesses_legers) as " Total Blesses" FROM MImplique, MDate, MAccident WHERE (((MDate.date_id)=[MAccident].[date_id]) AND ((MImplique.code)=[MAccident].[impliq_id]) AND ((MImplique.libelle_code_implique)="Véhicule") AND ((MDate.annee)=1995))


Download ppt "Question 1.1 Q1 Q2 Q3 Q4 USA Canada home Computer phone security 1000 2000 82514400."

Similar presentations


Ads by Google