Uploaded by Rajat Nambiar

Assignment-2 (DWDM)

advertisement
Date
Fege
Data anchouSinq
Dta Muninq
AssiqmmeMt -2
D t i a t e btuten Star Schena f SnonflakeSchema
with excwnples
A@
Sta Schena
Hieanchics
e
Snowtlake Schema
he dimbnsions Hianchiena1e _disided ilo
staned in he direnSionl S«panale Tablea
talele
alunslad tabe dwnonded Oas al Rde Anonded bdiese
b
dincmsion tablea
Sion Table uhich aae in han
wnomded hu dimension faole
Le
ADta_Recdunclaat
is
4
hgh.
I
yen
Kequihes Disk Spate Meihe
han
Dala Redundamyis
Salake Schtw
a Ataz Shema an
sbingle dcin ccales
he
Xoal
Less d srnal anount disk
Spale is olupied..
ReapihoA May
he data.
Jaias ta Ftth
hdlianship blu thela
table and am
olienesnsion
toble
DeaDatabas
is dicqple. Dasan hust is Cmplex er Dtbak
Data
Paga.
-
Single
Data
DirnenSion tble Carlains
pracxbing
Exanple
is
diknent
into
Dinensian
Table.
a3egaled Data
Culoc
plt
Cwbe procsing Migt be Alow
asle.
betanbe
Cmplex
Join.
St Schem
DirnenSion Tble
DiomeanSion Table
Fact Table
Dealer
Deale idl
Resenue.
Lacliani
Dealer id
Coundny-id.
Date id
Dle
Dte-id
Month
Madlid
Boranch-id
Paacdu-id
Dinension Tble
Dinension lable
Produt-id
Braonthid
Produt-Nawne
Naumc
tlodel. LD
Addbess
Stax
Schema
Date
PEpe
Exnmple
Snvuwflke Schema
Dimasion lable
Dimeaion ble
Date-id
Dealer-id
Sear
Localionid
FatTalele
Manth
(Revenue
Quator
Daln-id
rledelid
DienSianTHI
Dte-id
Paoduc-IDd
Loulayid
Dineasion
Table
DimenSlon
Table
Cy-id
Counly-Name
Localion.id
Region
Bsanch-id
Modeid
Lt Sold
Vaniamt- id
Dimevsion Tble
Dimeasiaa
Banchid_
Snoflake Schena
able
Nani.asid
Falpe
A-)
Eplain Aageaele Tblea
(Aagegale tbl ane pdafabase tablea thalt Gtain Aagiegted
Naluca Baital
Asaegale Tables ane `umm
Lam be deisecd yPnaina SQL GuLts Conside uwe haue
is DetePaacduc
Table on nel pag-
a
4 Casarae
Table h
ho t
tabe i n uhichhe khaaulant
Data
Pag
Ttom No
Cuslomc-ID
143
150
2
Ito
2
Unit Sale
1
52
3
3.9
too [ 2012
2.48
1o D6 2012
137
to lo. 2012
-:33
01 04 l2ol2
2-24
0n lo4|2012
2.84
2.2
Os los 2o12
2
60
2
26
Now, as
et
CuslvaId
1.91
oG
lo5l2012
22losL29l2
Aggegale Tale
L69
above oneUNe gel
Itmn No OndorDate
Uait Sla
150
am 2ol2
50
Feb 2012
3
3.4
150
Ma 2012
2
2-48
50
Apn 2012
1-31
50
Ma 20122
Junc 2012
-33
150
Hene
Ordo Dale
olosl2012
o4losl2o12
AlL he neats
:52
2
2-81
Customex-1d = 1 4 Ttmo 5 0
Dsdo Hstoa inEvey Month is shown.
92
Fat mslellalion Suhema
Discuas
in
Oll
wilh
h
an
exanple.
as2
. t t l t a n Schema is a
Mult:dimen6ion al
a
rodeltablea.I Cam
lutple Ata
ghup
Achema 4hat epxesenls
Bchemna.
nepresevded
be
Also Calded
as
a
Gralaxy
Schenaa
Hexe
2
Iis a
tloe Fal tables
ane ahaning ene
Mee. dimenSicns.
leble Athema hat makes.
implemel
s baoical
aNonmalizeo ohm n ulake 4 Star Bbena..
enstel stlune
Dmension
Fat Condlelkkin Schee
DinacnSion
Tble
Donansian
Tble
Table
Dimension
Txble
Dimension
Table
Dimension
Tble
Sthema
Fat CanteUAon Amhitectune
Dimemsion (-ble
f t Tble
Dimansion
LLle
plaiantru
toll-Mumbot
Nane
Crnpony-aukag
Table
ainin Cl
iallnumlat
owne
toll-number
hauning-nane
tpdid
ony-nane
lanpen4_nae
Fact
Studemt
ttrd-id
Dion2ansian Table
TPP
tpdid
tpd-ramte
depodmant
DinanSion Table
Werkshop
aininq-nownt
ukjet
wwkshop-Fe
C
Data.
Pago-
StudeakisadimnSiun Table
whne Ptoll-mumkbe , nowme , Manks
I P D s a limenSion Table whue tp-id , tp-naun, one attnibuta.
dapaaunenM ane tibutes
Placenerl is a fad tble. whne holl-nambe, Compomy-name
tp-id
ae
Nume
ts
athbtes with i t e s mostucdwls atanuded
studets sedeted.
Thn Cuning
Cnsis a. e t takle whexe oll-nausoer, truining-nane
tpd-idone its ailoutes and he un.bex qstadent t d e
aac peleled ae itk laids
iaskshop is
tee
ne
a cdimassion Tableohone franing
its
name, sbuject werkshop-
atihdea
elimonsion table whene Comp ornynawe
ane its anibte
Compe
Q2
As
is a
Eplado Keys in e
Data Wanchouse dcheaana
Fac Tkle
me Dmension
Tme Key
Jeat
Guale
Monh
Dimension oble
Tene ket
Custome Key-
Nane
StereKey
nome
Age
Ondexdollas
week
Onder qualit
StneTable
Dmersion
StneKe
Pxtecd Dmonsion
Table
AMea-
Ci
Pcchc KeyBnd
Customet
CulomeN KeY-
Tasle
Pradut aene
(mpany-patkate-
OAbave dnaan isastal Acheannahene in Middle we hove Fadt
Table vhile
swvionding
it ane Dimension Tasle
S o hre in St
Cancept
skema" toJeintadabe wih Dimension Table
rimany KeH)and reign KeyCares into aclion.
Date
Pege
FadFad Table Consils
all he Bimany keuys dthe
he Dimension Tabde
as atehejgn Key . Such a coya kink is Caueaedbtxen he
o
O
tableb.
IhoneoeA
Kys in Fa
tble ie. Product Keqlime Ke
Cuslome KraStoxt Ky one basitaly Foneiqn Ky
utt
b
ae
tinany Keg in thein Respedive Dinension Table
Some ethel Keys thal one in Use Cne
unnogae K
Keshith ae genetaled by byslem and
8nstal
geehal
dotant_haueony bult in meaming
IH is Uni9me becanAe
its Conseculivey nealed
henevel
tcod
i s snbeded tn Tade
Alteanate k
Uaime valuea Tble knon
AelondUN
t h e Able
Cmpos.te k)Kwhih nsists
Comdidale Ke
A boge
kye
0.
ide
Tio
Mhe attblea
op oKes taal unique
me_own in_a able
Download