Vous êtes sur la page 1sur 7

!

" #
!

$ %" %
" # $
" # % % &' ( $
" # % % $

&
% %

' " % ./ 0 ./ 0
&*+, &-. /+,0
.) ,
! " ' ( *)10
-.) *), -* ./ 0
)2
& % " %&' ( ,3 %3 ./0+ . / ./ 0+ . /
') &' ( 0 0
0 / (
' ( 4" 3 ( 6 6
* + , % ." " % 6
- " " %% " % '
% #
&./ 0$ 1 )" %" ( -"
#
(./ 0$ %# ./ 0$ ,3 %" & " 5 " 5
2 " %&' ( 3/ &./ 0
4 (./ 0 - " 2 (
3 ' -7
) % # )
% " % %#
') 5
'( $

1
Product dimension
%
productcode
% description
% # % $ % % % brand
#% $ "% % % group
Selling facts cat_code
#% $ Time dimension
category
date
# % color
date productcode
packing
weekday shopname
week quantity
Product
month turnover
quarter costs Shop dimension
year
weekend name
Day Selling
holiday city
province
Shop layout

2 Product

%
% % % %
productcode description brand group cat_ category color packing
0 5 % code
L034C4066_001 Peanut butter Calve Bread-spread F Food broun jar
0
L0044B8377_000 Olives AH Specialities F Food green jar
0 T034C7893 Tooth-paste Zendium Toilet-articles BC Body-care n/a tube
0 % S056Y2545_04 Cleaner AH Cleaning HK House-keeping n/a bottle
L034C4387_003 Cocos-bread TeHa Bread-spread F Food yellow box

"
/" + %

2
Date productcode shopname quantity turnover costs
Shop Time S 31-12-1997 L034C4066_001 Super 102 408 306

name city province layout


e 31-12-1997
31-12-1997
L0044B8377_000
L0044B8377_000
Canalstreet
Super
44
64
308
448
308
216

Cornerstore Arnhem Gelderland standard


l 31-12-1997
31-12-1997
T034C7893
T034C7893
Canalstreet
Super
48
188
288
1128
216
846

Canalstreet Zwolle Overijssel standard


l 31-12-1997 S056Y2545_04 Canalstreet 18 144 108
31-12-1997 L034C4387_003 Canalstreet 60 180 144
Super Arnhem Gelderland large i 31-12-1997 L034C4387_003 Super 130 390 312

n
01-01-1998 L034C4066_001 Super 8 32 24
01-01-1998 L034C4387_003 Super 23 69 55,20

g 02-01-1998
02-01-1998
L034C4066_001
L034C4066_001
Cornerstore
Super
7
21
28
84
21
63
datum weekday week month quarter year weekend holiday 02-01-1998 L0044B8377_000 Super 2 20 14

31-12-1997 Wednesday 1 12 4 1997 No No 02-01-1998 T034C7893 Cornerstore 12 72 54


02-01-1998 T034C7893 Canalstreet 24 144 108
01-01-1998 Thursday 1 1 1 1998 No Yes
02-01-1998 T034C7893 Super 94 564 423
02-01-1998 Friday 1 1 1 1998 No No 02-01-1998 S056Y2545_04 Cornerstore 11 88 66
02-01-1998 S056Y2545_04 Canalstreet 7 56 42
03-01-1998 Saturday 1 1 1 1998 Yes No
02-01-1998 L034C4387_003 Cornerstore 28 84 67,20
02-01-1998 L034C4387_003 Canalstreet 30 90 72
02-01-1998 L034C4387_003 Super 65 195 156
03-01-1998 L034C4066_001 Cornerstore 26 104 78
03-01-1998 L034C4066_001 Canalstreet 43 172 129

Product dimension Shop Time


product_key
shop- name city province layout
product_code key
description
1 Cornerstore Arnhem Gelderland standard
brand
2 Canalstreet Zwolle Overijssel standard
Selling facts group
time dimension cat_code 3 Super Arnhem Gelderland large
time_key category
time_key
product_key color
date
shop_key packing
weekday
quantity
week time- date weekday week month quarter year weekend holiday
turnover key
month shop dimension
costs
quarter 34 31-12-1997 Wednesday 1 12 4 1997 No No

year shop_key 35 01-01-1998 Thursday 1 1 1 1998 No Yes


weekend name
36 02-01-1998 Friday 1 1 1 1998 No No
holiday city
province 37 03-01-1998 Saturday 1 1 1 1998 Yes No
layout

3
Product S time-key product-key shop-key quantity turnover costs

e 34

34
22

23
3

2
102

44
408

308
306

308

l
product productcode description brand group cat_ category color packing 34 23 3 64 448 216
-key code 34 24 2 48 288 216

l
22 L034C4066_001 Peanut butter Calve Bread-spread LM Food broun jar 34 24 3 188 1128 846

34 25 3 18 144 108
23 L0044B8377_000 Olives AH Specialities LM Food green jar

i
34 26 2 60 180 144
24 T034C7893 Tooth-paste Zendium Toilet articles LM Body-care n/a tube 34 26 3 130 390 312

25 S056Y2545_04 Cleaner AH Cleaning HA House-keeping n/a bottle 35 22 3 8 32 24

26 L034C4387_003 Cocos-bread TeHa Bread-spread LM Food yellow box n 35

36
26

22
3

1
23

7
69

28
55,20

21

g 36

36
22

23
3

3
21

2
84

20
63

14

36 24 1 12 72 54
product productcode price costs
36 24 2 24 144 108
-key
36 24 3 94 564 423
22 L034C4066_001 4,00 3,00
36 25 1 11 88 66
23 L0044B8377_000 10,00 7,00 36 25 2 7 56 42

24 T034C7893 6,00 4,50 36 26 1 28 84 67,20

36 26 2 30 90 72
25 S056Y2545_04 8,00 6,00
36 26 3 65 195 156
26 L034C4387_003 8,00 2,40 37 22 1 26 104 78

37 22 2 43 172 129

37 22 3 110 444 330


37 23 1 1 10 7

37 23 3 12 120 84

Shop

1 6 % ! %% 1 Selling fact: product 22, on


day 3, in shop 3, quantity 102
" ! 7
1 shop:
On date 34 in shop 3 a quantity of 102 of product 22 was
3 = Super
sold, resulting in a turnover of euro 408,00 at the costs of
euro 306,00.

1 product:
Time (days)
0 ! 7 22 = Peanut butter
On Wednesday 31-12-1997 in the store Super in Arnhem a
quantity of 102 jars of Peanut butter was sold, resulting in a 1 day:
turnover of euro 408,00 at the costs of euro 306,00. Product 34 = 31-12-97

4
(

Product 3/6 % " 8


% % % 998
!
%
%
% # 1 $ %
Shop % %6
% % :;;<
% % %
Time (days)
:;;;1:;;= % 2 >

" Year

, Brand

)% ? Product Quarter
)% ? Shop
)% Time Product
Group Category
Month Product

&
"% ? Customer Day Selling
"% ? Promotion

Shop City
Week

Year
Province

5
! 3 9+ "

3 # # " " % !%
% " "% % % " % @
% 7
# % $

) 4"
% ! ./ 0 )% % % % % %
+ " % ?
)% % % 5 %
& % # % $
?
3 % % "

" #$
' " %
Year : 1
yearno = yearno
yearno

Quarter Brand Category


yearno brandname cat_code
quarter categoryname

yearno = yearno
quarter = quarter brandname = brandname
cat_code = cat_code

Month product_key = product_key Product


monthno product_key Group
yearno brandname groupname
quarter groupname groupname = groupname cat_code
productcode
description
color
monthno = monthno
packing

Day
Selling
time_key
shop_key Shop
monthno
product_key shop_key = shop_key shop_key cityname = cityname
weekno
time_key cityname
datum time_key = time_key
quantity shopname
weekday
turnover layout City
weekend
Year : 2 holiday costs cityname
yearno provincename
weekno = weekno
provincename = provincename
Physical Data Model
Week Project : Stars and Dimensions
weekno Model : Selling snowflake Province
yearno = yearno yearn
Author : Guido Bakema Version 1 22-01-04 provincename

6
' (7
%
% " % 6 % )" %
% % 7 6 % + A7A<= , 9;;;
% % D;;;;
%
( % + =;;;

*5 ,BFact table 7 +
' + A; 1B A; 9;99
9;;;7D;;;;7=;;;, :8
:; 1B :;
=% 1B = 5 " #
- + 9=; 1B9=; :;
,B ' , 9=;4#
A;7:;7=$, 9=;4A;;;, =C ,B( 7 fact table+
9;997:;
:8 ,D

'

3 # , ##
" % Product D;;;; ,B D;8
;;;
=C =; 9;
,B =;;
,B 9;99, 9;9;
% =C 7:8
,B 9;E
D;;;;7=;;, :8 , :;(
,B % =C 7D , :;;
,B" % % 5"% ?
+ " " #

Customer # $ ,B 5 8
% 5
,B % " % " 5"% ?
,B % ,B ! # " % $
"

Vous aimerez peut-être aussi