0% found this document useful (0 votes)
36 views4 pages

1' Ere Feuille D'exercices: Travaux Dirig Es "Entrep Ots de Don Ees Et OLAP " Hiver 2012/13

f

Uploaded by

benben08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views4 pages

1' Ere Feuille D'exercices: Travaux Dirig Es "Entrep Ots de Don Ees Et OLAP " Hiver 2012/13

f

Uploaded by

benben08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Travaux dirigés

“Entrepôts de donées et OLAP ”


Hiver 2012/13
Melanie Herschel ([email protected])

1ère feuille d’exercices

Exercice 1: Systèmes BD opérationnels vs. entrepôts de données


Durant le cours, nous avons analisé les différences entre les BDs opérationnelles et les entrepôts de données (DW).
Ce premier exercice vise à approfondir ces notions.

1. Identifiez pour chacune des requêtes suivantes s’il s’agit d’une requête posée à une BD opérationnelle
ou un DW. Justifiez votre réponse.

(a) Requête au système A: Pour la salle 2 ont justement été achetés deux billets pour la séance de
20 heures du film Les Infidèles.
(b) Requête au système B: Reste-t-il des billets pour la séance de 20 heures du film Les Infidèles?
(c) Requête au système C: Aurais-je éventuellement besoin d’une plus grande salle et de plus de
séances pour le film Les Infidèles?
(d) Requête SQL au système D:
SELECT Film.titre, Salle.nom, Seance.debut, Place.type, COUNT(Place.placeID)
FROM Film, Seance, Salle, Place
WHERE Film.filmID = Seance.filmID AND Seance.salleID = salle.salleID
AND Place.salleID = salle.salleID AND Seance.date = TODAY() AND Place.type = ‘loge’
AND place.estLibre = ‘oui’
GROUP BY Film.titre, Salle.nom, Seance.debut, Place.type
UNION
SELECT Film.titre, Salle.nom, Seance.debut, Place.type, COUNT(Place.placeID)
FROM Film, Seance, Salle, Place
WHERE Film.filmID = Seance.filmID AND Seance.salleID = salle.salleID
AND Place.salleID = salle.salleID AND Seance.date = TODAY() AND Place.type = ‘parquet’
AND place.estLibre = ‘oui’
GROUP BY Film.titre, Salle.nom, Seance.debut, Place.type

(e) Requête SQL au système E:


SELECT Film.titre, Cinema.nom, Tempst.mois, COUNT(Place.placeID)
FROM Film, Ventes, Cinema, Place, Temps
WHERE Ventes.filmID = Film.filmID AND Ventes.cinemaID = Cinema.cinemaID
AND Ventes.tempsID = Temps.tempsID AND Place.cinemaID = Cinema.cinemaID
GROUP BY Film.titre, Cinema.nom, Temps.mois
2. Complétez / modifiez le schéma relationnel ci-dessous de façon à

(a) obtenir clairement un schéma d’un système opérationnel. Justifiez votre réponse.
(b) obtenir clairement un schéma de la BD distpositive d’un DW. Justifiez votre réponse.

Film(titre, date-parution, metteur-en-scene, genre)


Cinema(nom, rue, numero, ville, code-postal, nombre-de-places)

Exercice 2: Intégration de schémas


Considérez les deux schémas ci-dessous. Ceux-ci doivent être intégrés afin d’obtenir le schéma de la base
de données consolidée d’un DW. Développez un schéma intégré possible. Décrivez les problèmes à résoudre,
comment vous les avez résolu et quelles hypothèses vous avez faites.

schéma 1 schéma 2

Figure 3: Screenshots from the visual interface: (A) s


integrated hierarchy; (C) an integrated schema.

corresponding attributes shown in Figure 3A.


Some concepts, such as dept and project, are top-level c
and correspond to the top-level sets of a schema. These a
dalone concepts; for example, a department and, respectively
tuple may exist in an instance of DeptDB independently of a
elements. In contrast, emp is a sub-concept of dept, since
ployee element can only exist in the context of a departm
cording to the nesting structure of DeptDB. Consequently,
concept includes all attributes of an employee element toget
the attributes in department. Similarly, grant is a sub-co
both dept and project, due to the referential constraints in D
and inherits all attributes of these concepts.
In our visual interface, the sub-concept relationship is sh
directed edges from a concept to its immediate super-conce
avoid clutter, we do not show transitive edges in the hier
Figure 3: Screenshots from the visual interface: (A) source concepts hierarchies; (B) gra
Also, we prefix all inherited attributes with the name of th
integrated hierarchy; (C) an integrated schema.concept that they are inherited from, to distinguish them
tributes specific to that concept (i.e., that do not appear in a
super-concepts). For example, the attributes inherited from
corresponding attributes shown in Figure 3A. ment are prefixed with dept: inand the respectively,
employee concept.org m
Categories: All Select that lets you copy
concerts
Blues Classical Country Data musicfor
Play toconcerts,
a Mac a
HOME ABOUT FAQ APPLICATIONS DOWNLOAD STATISTICS CONTACT IMPRINT iTunes.
iPad, Monster Bea
Folk Jazz Misc New Age www.macroplant.com/
... with 8.6 by
Full text search Disc-ID search Reggae Rock Soundtrack
Bavaria!
www.86rockyou.com
Grouping: By category One list PHP code
generator
Catalog Your
Create better PHP
Collection
code Now with
Exercice 3: Hétérogénéité Powerful
WYSIWYGsoftware
suppor
This is a full text search interface to the freedb database: collectors. Downlo
www.XLineSoft.com/ph
Sur le1073
site web http://www.freedb.org, en cherchant Britney Spears, nous trouvons entre autres les your free trial tod
result(s) found displayed on 108 page(s). www.fnprg.com
Words:
résultats britney spears
suivants représentant tous le même CD. Quelles typesOKd’hétérogénéité identifiez-vous? Pour chaque Defrag Mac Ha
Britney
Search:Spears / Karaoke
All 12 Top Hits Britney Spears
Select montrées. Details Drive
type, donnez un exemple tiré des données iPod to Mac
Defragment Mac
Artist Title Track Rest
Britney Spears / Britney Details Volumes
iPod & Files
transfer softF
Categories: All Select Trial lets
that Version,
you copy
Tracks: 12 Download
music to a Now
Mac an
Blues Classical Country Data
Total time: 41:16 www.stellardefragdrive
iTunes.
Folk Jazz Misc New Age www.macroplant.com/P
Disc-ID: misc / 9109b10c
Reggae Rock Soundtrack

Grouping: By category One list PHP code


1. I'm A Slave 4 U 3:36 generator
2. Overprotected 3:19 Create better PHP
3. Lonely 3:31 code Now with
freedb.org
4. I'm > NotFreeDB
A Girl,Database
Not Yet ASearch
Woman 3:51 WYSIWYG 16/01/12
suppor
5. Boys 3:34 www.XLineSoft.com/ph
6. Anticipating
1073 result(s) found displayed on 108 page(s). 3:54
8.
7. Cinderella 3:41
I Love Rock 'n' Roll 3:06 Defrag Mac Ha
9. Let Me Be 2:53
8. Cinderella
Britney Spears / Karaoke 12 Top Hits Britney Spears 3:39
Details Drive
10.
9. Bombastic
Let Me Be Love 3:07
2:51 Defragment Mac
11. That's Where You Take Me
10. Bombastic 3:34 Volumes & Files F
Britney SpearsLove/ Britney 3:32
Details
12.
11. What
That'sIt's Like You
Where To Be
Take Me 2:52
3:32 Trial Version,
13.
12. Bonus Track
What It's Like To Be Me 3:51
2:51 Download Now
Britney Spears / Britney Details www.stellardefragdrive

Britney
résultat 1
Britney Spears
Spears // Britney
Britney Details
Details
Britney Spears / Britney Details
Tracks: 12
Tracks:
Total
Britney 12 39:42
time:
Spears / Britney Details
Total 2001
Year: time: 40:11
Tracks: 12
Year: 2003
Disc-ID: misc / 8809530c
Total time: 40:11
Disc-ID: misc / 9209710c
Year: 2003
1. I'm A Slave
Disc-ID: misc /49209710c
U 3:23
2.1. Overprotected
Britney Spears / I'm a Slave 4 U 3:36
3:19
3.2. Lonely
Britney Spears / Overprotected 3:35
3:20
1. Britney Spears // I'm a Slave 4 U 3:36
4.3. I'm
Britney
Not ASpears
Girl, NotLonely
Yet a Woman 3:20
3:51
2.
4. Britney
Britney Spears
Spears // Overprotected
I'm not a Girl, not yet a Woman 3:35
3:51
5. Boys 3:28
3. Britney
Britney Spears
Spears // Lonely 3:20
6.5. Anticipating Boys 3:28
3:16
4. Britney Spears // I'm not a Girl, not yet a Woman 3:51
7.6. I Britney
Love RockSpears Anticipating
'n' Roll 3:16
3:06
5. Britney
Britney Spears
Spears // Boys 3:28
8.7. Cinderella I love Rock & Roll 3:04
3:39
6. Britney Spears
Spears // Anticipating 3:16
9.8. Let
Britney
Me Be Cinderella 3:39
2:51
7. Britney
Britney Spears
9. Bombastic Spears / I love Rock & Roll 3:04
10. Love / Let me Be 2:49
3:05
8. Britney
10.That's
Britney Spears
Spears / Cinderella
/ Bombastic 3:39
11. Where You Take Me Love 3:18
3:32
9. Britney
11.What
Britney Spears // Let me Be 2:49
12. It'sSpears
Like To That's
Be Me where you take me 3:26
2:52
12. Britney Spears / What it's like to be me 2:49

Britney Spears / Britney Details


http://www.freedb.org/freedb_search.php?words=britney+spears&field…ields[]=title&allfields=NO&allcats=YES&grouping=none&page=3#fdbsr Page 1
Britney Spears / Britney
résultat 2 Details
Tracks: 13
Tracks:
Total 13 44:27
time:
Total 2001
Year: time: 44:53
Disc-ID:misc
Disc-ID: misc//940a700d
9c0a8a0d

1. I'm A Slave 4 U 3:38


2.1. Overprotected
I'm A Slave For You 3:38
3:21
2. Overprotected
3. Lonely 3:21
3:33
4.3. I'm
Lonely
Not A Girl, Not Yet A Woman 3:33
3:53
5.4. Boys
I'm Not A Girl, Not Yet A Woman 3:48
3:08
6.5. Anticipating
Boys 3:30
2:53
7.6. I Anticipating
Love Rock 'n' Roll 3:57
3:07
7. I Love Rock'N'Roll 3:08
8. Cinderella 2:52
9. Let Me Be 3:39
10. Bombastic Love 3:38
http://www.freedb.org/freedb_search.php?words=britney+spears&field…ields[]=title&allfields=NO&allcats=YES&grouping=none&page=3#fdbsr Page 1
11. That's Where You Take Me 3:29
12. What It's Like To Be Me 3:34
13. What It's Like To Be Me 3:42
résultat 3
Britney Spears / Britney Details

Tracks: 12
Total time: 40:07
Disc-ID: misc / 8b096c0c

1. I'm A Slave 4 U 3:19


2. Overprotected 3:34
3. Lonely 3:06
4. I'm Not A Girl, Not Yet A Woman 3:58
5. Boys 3:32
6. Anticipating 3:36
7. I Love Rock 'n' Roll 3:20
8. Cinderella 3:16
9. Let Me Be 3:39
10. Bombastic Love 2:51
11. That's Where You Take Me 3:05
12. What It's Like To Be Me 2:51

Britney Spears / Britney Details

Tracks: 12
MS SQL Server 2005 Tools MS SQL Server Database Admin Tools Download Now! Windows, Linux, OSX www.aquafold.com
generator
Create better PHP
code Now with
WYSIWYG support
www.XLineSoft.com/ph
Search the freedb database advanced
1073 result(s) found displayed on 108 page(s).
OK Defrag Mac Har
Britney Spears
freedb.org / Karaoke
> FreeDB Database12 Top Hits Britney Spears
Search Details Drive
Norton™ AntiV
16/01/12
Defragment Mac
Plus puissant, rap
Britney Spears Volumes & Files
et efficace. Site F
HOME ABOUT/ Britney
FAQ APPLICATIONS DOWNLOAD STATISTICS CONTACT IMPRINT Details
Britney Spears / Britney Details Trial Version,
officiel FR.
Full text search Disc-ID search Download
Téléchargez Now
Tracks:
Britney 15
Spears / Britney Details www.stellardefragdrive.
www.Norton.com
Total time: 53:05
Year: 2001
Britney Spears / Britney Details Virtual Onscree
Disc-ID: misc / b70c770f
Keyboard
Britney Spears / Britney Details Automatic layout
1. isI'm
This A Slave
a full 4U
text search interface to the freedb database: 3:25 any language. Fu
Tracks: 13
2. Overprotected 3:21 customizable. Onl
Total time: 44:53
3. Lonely 3:22 USD19.95.
Words: misc / 9c0a8a0d
Disc-ID: britney spears OK www.chessware.ch
4. I'm Not A Girl, Not Yet A Woman 3:53
5. Boys
Search: All Select 3:30
Spare parts for
6. Anticipating 3:18
Artist Title Track Rest mac2000
1.
7. I'm A Slave
I Love Rock For You
'N' Roll 3:38
3:08
Categories:
1200W e-ballast,
2.
8. Overprotected
Cinderella All Select 3:21
3:41 reflector, lens bel
3.
9. Lonely
Let Me Be Blues Classical Country Data 3:33
2:53 smps, motor, fan
4.
10. I'm Not A Girl,
Bombastic LoveNot Yet A Woman Folk Jazz Misc New Age 3:48
3:07 ignitor
5.
11. Boys
That's Where You Take Me 3:30
3:34 www.m2kpart.com
Reggae Rock Soundtrack
6.
12. Anticipating
When I Found Love 3:57
3:38
Grouping:
7.
13. IBefore By category
Love Rock'N'Roll
The Goodbye One list 3:08
3:52 Rencontre
8.
14. Cinderella
What It's Like To Be Me 3:41
5:24 musulmane
9.
15. Let
What MeIt's
Be Like To Be Me (2nd Occurence) 2:53
2:59 Le bonheur pour l
10. Bombastic Love 3:07 vie 100 % gratuit
11. That's
Britney Where/You
Spears Take Me
Britney 3:34
Details inscrivez-vous ici
12. What It's Like To Be 2:52 www.inchallah.com/Mu
Tracks:
1073
13. Bonus 13Track
result(s) found displayed on 108 page(s). 3:51
Total time: 43:59 Win a life of
Year: 2001
Britney Spears // Britney
Britney résultat 4 Details concerts
Britney Spears Details
Disc-ID: misc / 960a540d Play for concerts,
Tracks: 12
iPad, Monster Bea
Total time:
Britney Spears40:03
/ Britney Details
1. I'm A Slave 4 U 3:25 ... with 8.6 by
Year: 2001
2. Overprotected 3:21 Bavaria!
Disc-ID:
Britney misc / 8c09680c
Spears / Britney Details www.86rockyou.com
3. Lonely 3:22
4. I'm Not
Tracks: 12 A Girl, Not Yet A Woman 3:53
1. I`M A Slave 4 U 3:25
5. Boys
Total time: 40:07 3:30
2. Overprotected 3:21
6. Anticipating
Disc-ID: misc / 8b096c0c 3:18
3. Lonely 3:23
7. I Love Rock 'n' Roll 3:08
4. I`m Not A Girl, Not Yet 3:53
8. Cinderella 3:41
5. Boys 3:30
9. Let Me Be 2:53
6. Anticipating 3:18
10. Bombastic Love 3:07
http://www.freedb.org/freedb_search.php?words=britney+spears&field…ields[]=title&allfields=NO&allcats=YES&grouping=none&page=3#fdbsr
7. I Love Rock `n` Roll 3:08 Page 1
11. That's Where You Take Me 3:34
8. Cinderella 3:41
12. What It's Like To Be Me 2:52
9. Let Me Be 2:53
13. Intimidated 3:55
10. Bombastic Love 3:07
11. That`s Where You Take Me 3:34
BRITNEY SPEARS / BRITNEY Details
12. What It`s Like To Be Me 2:50

Britney Spears / Britney résultat 5 Details


Britney Spears / Britney Details
Tracks: 12
Total time:
Britney 41:29
Spears / Britney Details
Disc-ID: newage / 9a09bf0c

Britney Spears / Britney Details

1. I´m a Slave 4 u 3:38


BRITNEY SPEARS / BRITNEY Details
2. Overprotected 3:21
3. Lonely 3:22
Britney
4. I´m Spears / Britney
not a Girl, not yet a Woman Details
3:51
5. Boys 3:36
Britney Spears / Britney
6. Anticipating Details
3:18
7. I love Rock `n`Roll 3:08
8. Cinderella
Britney Spears / Britney 3:41
Details
9. Let me be 2:53
10. Bombastic Love 3:34
Britney Spears / Britney Details
11. That´s where you take me 3:34
12. What ´s like to be me 3:33
Britney Spears / Britney Details

Britney Spears / Britney


résultat 6 Details
Browse results: 1 2 3 [4] 5 6 7 8 9 10 11 ... 108

Britney Spears / Britney Details

Britney Spears / Britney Details

Britney Spears / Britney Details

Browse results: 1 2 3 [4] 5 6 7 8 9 10 11 ... 108

http://www.freedb.org/freedb_search.php?words=britney+spears&field…ields[]=title&allfields=NO&allcats=YES&grouping=none&page=4#fdb

http://www.freedb.org/freedb_search.php?words=britney+spears&field…ields[]=title&allfields=NO&allcats=YES&grouping=none&page=4#fdbsr Page

You might also like