Nom: Prénom: #Examen
Nom: Prénom: #Examen
Nom: Prénom: #Examen
5. Quelles sont les définitions appropriées (A G) pour ces 4 différentes notions ? (seul réponse
par notion)
1.ROLL-Up : 2.Split: 3.Drill-in : 4.Dice :
SELECT DEPTNO, JOB, SUM(SALARY) FROM EMPLOYEES GROUP BY (DEPTNO, JOB) ORDER BY
DEPTNO;
Page 1 sur 4
NOM : Prénom : N° Examen :
…………………………….…………………………….…………………………….…………………………….…………………………….………
…………………….…………………………….…………………………….…………………………….…………………………….………………
…………….…………………………….…………………………….…………………………….…………………………….………………………
…….…………………………….…………………………….…………………………….…………………………….…………………………….
…………………………….…………………………….…………………………….…………………………….…………………………….………
…………………….…………………………….…………………………….…………………………….…………………………….………………
…………….…………………………….…………………………….…………………………….…………………………….………………………
…….…………………………….…………………………….…………………………….…………………………….…………………………….
…………………………….…………………………….…………………………….…………………………….…………………………….………
…………………….…………………………….…………………………….…………………………….…………………………….………………
…………….…………………………….…………………………….…………………………….…………………………….………………………
…….…………………………….…………………………….…………………………….…………………………….…………………………….
…………………………….…………………………….…………………………….…………………………….…………………………….………
…………………….…………………………….…………………………….…………………………….…………………………….………………
…………….…………………………….…………………………….…………………………….…………………………….………………………
…….…………………………….…………………………….…………………………….…………………………….…………………………….
…………………………….………………………….………………………….………………………….………………………….…………………
……….………………………….………………………….………………………….………………………….……………….…………………
b) SELECT DEPTNO, JOB, SUM (SALARY) FROM EMPLOYEES GROUP BY ROLLUP (DEPTNO, JOB)
ORDER BY DEPTNO DESC; (1,5 pts)
…………………………….…………………………….…………………………….…………………………….…………………………….………
…………………….…………………………….…………………………….…………………………….…………………………….………………
…………….…………………………….…………………………….…………………………….…………………………….………………………
…….…………………………….…………………………….…………………………….…………………………….…………………………….
…………………………….…………………………….…………………………….…………………………….…………………………….………
…………………….…………………………….…………………………….…………………………….…………………………….………………
…………….…………………………….…………………………….…………………………….…………………………….………………………
…….…………………………….…………………………….…………………………….…………………………….…………………………….
…………………………….…………………………….…………………………….…………………………….…………………………….………
…………………….…………………………….…………………………….…………………………….…………………………….………………
…………….…………………………….…………………………….…………………………….…………………………….………………………
…….…………………………….…………………………….…………………………….…………………………….…………………………….
…………………………….…………………………….…………………………….…………………………….…………………………….………
…………………….…………………………….…………………………….…………………….…………………………….………
Pour chaque examen passé, on connaît l’âge et le sexe de l’étudiant, le nom du module, la date de
l’examen, la note obtenue et si l’examen est réussi ou non. Un module est domicilié dans un et un
Page 2 sur 4
NOM : Prénom : N° Examen :
seul département. Une filière est organisée sous forme de 6 semestres, 1 semestre regroupe 4
modules.
1. Proposez un modèle en étoile pour ce DW. (Recherchez tout d’abord les différentes
dimensions et proposez une hiérarchie pour ces dimensions). (4 pts)
2. En déduire le schéma en flocon (2 pts)
3. Donnez le type de chaque mesure (additive, semi ou non additive) (2 pts)
4. Donnez les requêtes SQL (LDD) pour la création du schéma relationnel de la question Q1
sous oracle 10g (4 pts)
…………………………….…………………………….…………………………….…………………………….…………………………….……
……………………….…………………………….…………………………….…………………………….…………………………….…………
………………….…………………………….…………………………….…………………………….…………………………….………………
…………….…………………………….…………………………….…………………………….…………………………….……………………
……….…………………………….…………………………….…………………………….…………………………….…………………………
….…………………………….…………………………….…………………………….…………………………….…………………………….…
………………………….…………………………….…………………………….…………………………….…………………………….………
…………………….…………………………….…………………………….…………………………….…………………………….……………
……………….…………………………….…………………………….…………………………….…………………………….…………………
………….…………………………….…………………………….…………………………….…………………………….………………………
…….…………………………….…………………………….…………………………….…………………………….…………………………….
…………………………….…………………………….…………………………….…………………………….…………………………….……
……………………….…………………………….…………………………….…………………………….…………………………….…………
………………….…………………………….…………………………….…………………………….…………………………….………………
…………….…………………………….…………………………….…………………………….…………………………….……………………
……….…………………………….…………………………….…………………………….…………………………….…………………………
….…………………………….…………………………….………………………….………………………….………………………….…………
……………….………………………….………………………….………………………….………………………….………………………….…
……………………….………………………….………………………….…………………………………………………….………………………
…….…………………………….…………………………….…………………………….…………………………….…………………………….
…………………………….…………………………….…………………………….…………………………….…………………………….……
……………………….…………………………….…………………………….…………………………….…………………………….…………
………………….…………………………….…………………………….…………………………….…………………………….………………
…………….…………………………….…………………………….…………………………….…………………………….……………………
……….…………………………….…………………………….…………………………….…………………………….…………………………
….…………………………….…………………………….…………………………….…………………………….…………………………….…
………………………….…………………………….…………………………….…………………………….…………………………….………
…………………….…………………………….…………………………….…………………………….…………………………….……………
……………….…………………………….…………………………….…………………………….…………………………….…………………
………….…………………………….…………………………….…………………………….…………………………….………………………
…….…………………………….…………………………….…………………………….…………………………….…………………………….
…………………………….…………………………….…………………………….…………………………….…………………………….……
……………………….…………………………….…………………………….…………………………….…………………………….…………
………………….…………………………….…………………………….…………………………….…………………………….………………
…………….…………………………….…………………………….…………………………….…………………………….……………………
……….………………………….………………………….………………………….………………………….………………………….…………
……………….………………………….………………………….……………………………….…………………………….……………………
……….…………………………….…………………………….…………………………….…………………………….…………………………
….…………………………….…………………………….…………………………….…………………………….…………………………….…
Page 3 sur 4
NOM : Prénom : N° Examen :
………………………….…………………………….…………………………….…………………………….…………………………….………
…………………….…………………………….…………………………….…………………………….…………………………….……………
……………….…………………………….…………………………….…………………………….…………………………….…………………
………….…………………………….…………………………….…………………………….…………………………….………………………
…….…………………………….…………………………….…………………………….…………………………….…………………………….
…………………………….…………………………….…………………………….…………………………….…………………………….……
……………………….…………………………….…………………………….…………………………….…………………………….…………
………………….…………………………….…………………………….…………………………….…………………………….………………
…………….…………………………….…………………………….…………………………….…………………………….……………………
……….…………………………….…………………………….…………………………….…………………………….…………………………
….…………………………….…………………………….…………………………….…………………………….…………………………….…
………………………….…………………………….…………………………….…………………………….…………………………….………
…………………….…………………………….…………………………….…………………………….…………………………….……………
……………….…………………………….…………………………….…………………………….…………………………….…………………
……….………………………….………………………….………………………….………………………….………………………….…………
……………….………………………….………………………….………………………….………………………….………………………….…
………………………………………………….…………………………….…………………………….…………………………….………………
…………….…………………………….…………………………….…………………………….…………………………….……………………
……….…………………………….…………………………….…………………………….…………………………….…………………………
….…………………………….…………………………….…………………………….…………………………….…………………………….…
………………………….…………………………….…………………………….…………………………….…………………………….………
…………………….…………………………….…………………………….…………………………….…………………………….……………
……………….…………………………….…………………………….…………………………….…………………………….…………………
………….…………………………….…………………………….…………………………….…………………………….………………………
…….…………………………….…………………………….…………………………….…………………………….…………………………….
…………………………….…………………………….…………………………….…………………………….…………………………….……
……………………….…………………………….…………………………….…………………………….…………………………….…………
………………….…………………………….…………………………….…………………………….…………………………….………………
…………….…………………………….…………………………….…………………………….…………………………….……………………
……….…………………………….…………………………….…………………………….…………………………….…………………………
….…………………………….…………………………….…………………………….…………………………….…………………………….…
………………………….…………………………….…………………………….…………………………….…………………………….………
…………………….…………………………….…………………………….………………………….………………………….…………………
……….………………………….………………………….………………………….………………………….………………………….…………
…………………….…………………………….…………………………….…………………………….…………………………….……………
……………….…………………………….…………………………….…………………………….…………………………….…………………
………….…………………………….…………………………….…………………………….…………………………….………………………
…….…………………………….…………………………….…………………………….…………………………….…………………………….
…………………………….…………………………….…………………………….…………………………….……………………………………
.…………………………….…………………….…………………………….…………………….…………………………….…………………….
…………………………….…………………….…………………………….…………………….…………………………….…………………….
…………………………….…………………….…………………………….…………………….…………………………….…………………….
…………………………….…………………….…………………………….…………………….…………………………….…………………….
…………………………….…………………….…………………………….…………………….…………………………….…………………….
…………………………….…………………….…………………………….…………………….…………………………….…………………….
…………………………….…………………….…………………………….…………………….…………………………….……………………
………………………….…………………….…………………………….…………………….…………………………….……………………
Page 4 sur 4