Académique Documents
Professionnel Documents
Culture Documents
Stars and Dimensions 1
Stars and Dimensions 1
" #
!
$ %" %
" # $
" # % % &' ( $
" # % % $
&
% %
' " % ./ 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
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
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
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
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 23 3 12 120 84
Shop
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
(
" 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
yearno = yearno
quarter = quarter brandname = brandname
cat_code = cat_code
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 ! # " % $
"