Download - Marathon class psbd

Transcript
Page 1: Marathon class psbd

MARATHON CLASSEdi Purnomo PutraLecture Code : D5386

Page 2: Marathon class psbd

Normalisasi• Tujuan Normalisasi• Update anomalisinsert, update, delete• Functional dependency• Full functional dependency

nilainim, KdMtk• Partial dependency

namabarangidbarang

Page 3: Marathon class psbd

Normalisasinormalisasi adalah suatu teknik Formal Dalam Menentukan atribut dan menghasilkan kumpulan relasi yang bertujuan untuk menyediakan kebutuhan data yang diperlukan oleh perusahaan

• A technique for producting a set of relation with desirable properties, given data reqruirements of an enterprise

Page 4: Marathon class psbd

Tujuan Normalisasi1) Menjamin struktur data yang konsisten.2) Kerangkapan data yang minimal.3) Stabilitas struktur data yang maksimal

1)  Meminimalkan Jumlah Kapasitas Penyimpanan Yang Diperlukan Untuk menyimpan data.2) Meminimalkan resiko data yang tidak konsisten dalam suatu basis data.3) Meminimalkan kemungkinan update dan delete anomaly.4) Memaksimalkan stabilitas dari struktur data

Manfaat Normalisasi

Page 5: Marathon class psbd
Page 6: Marathon class psbd
Page 7: Marathon class psbd

Datawarehouse• Karakteristik DWH• ETL(Extract, transform, loading)• Datamart vs DWH

Page 8: Marathon class psbd

Karakteristik • Subject oriented

Customer, product, sales• Integrated

Data konsistenMale, M, Ma Male

• NonvolatileTidak bisa diubah refresh scd(Slow Changing Dimension)

• Time variantMingguna, bulanan, tahunandimensi waktu

Page 9: Marathon class psbd

ETL • Extract

Ekstract data dari ODS /OLTP(OPERASIONAL DATA SOURCE)• Transform

Penyamaan data JL, jalan, JLN JLMelakukan kalkulasi aggregate

• LoadMasukan data ke DWH/Data Mart

Page 10: Marathon class psbd

Datamart VS DWH• Data mart• 1 subject• Bagian dari data warehouse• Relative Sebentar• DWH• Beberapa subject• Implementasi waktu lama

Page 11: Marathon class psbd

ER• Fan trap• Chasm trap• Participant disjoint• Strong entity • Weak entity• Degree relation• Recursive• Single value atribute• Multivalue attribute

Page 12: Marathon class psbd

Prticiapant Disjoint• ParticipantAnd / or• Join disjoin Optional and mandatory

Page 13: Marathon class psbd

Participant Disjoint

Page 14: Marathon class psbd

Participant Disjoint

Page 15: Marathon class psbd

Optional OR

Page 16: Marathon class psbd

Mandatory Or

Page 17: Marathon class psbd

Degree

Degree of a RelationshipNumber of participating entities in relationship.

Relationship of degree :two is binary three is ternaryfour is quaternary.

Page 18: Marathon class psbd

Binary relationship called POwns

Page 19: Marathon class psbd

Ternary relationship called Registers

Page 20: Marathon class psbd

Quaternary relationship called Arranges

Page 21: Marathon class psbd

Recursive relationship called Supervises with role names

Page 22: Marathon class psbd

Attributes

• Attribute– Property of an entity or a relationship type.

• Attribute Domain– Set of allowable values for one or more

attributes.

Page 23: Marathon class psbd

Attributes

• Simple Attribute– Attribute composed of a single component

with an independent existence.

• Composite Attribute– Attribute composed of multiple components,

each with an independent existence.

Page 24: Marathon class psbd

Attributes

• Single-valued Attribute– Attribute that holds a single value for each

occurrence of an entity type.

• Multi-valued Attribute– Attribute that holds multiple values for each

occurrence of an entity type.

Page 25: Marathon class psbd

Attributes

• Derived Attribute– Attribute that represents a value that is

derivable from value of a related attribute, or set of attributes, not necessarily in the same entity type.

Page 26: Marathon class psbd

Entity Type

• Strong Entity Type– Entity type that is not existence-dependent

on some other entity type.

• Weak Entity Type– Entity type that is existence-dependent on

some other entity type.

Page 27: Marathon class psbd

• Fan Trap– Where a model represents a relationship

between entity types, but pathway between certain entity occurrences is ambiguous.

• Chasm Trap– Where a model suggests the existence of a

relationship between entity types, but pathway does not exist between certain entity occurrences.

Trap

Page 28: Marathon class psbd

An Example of a Fan Trap

Page 29: Marathon class psbd

Semantic Net of ER Model with Fan Trap

• At which branch office does staff number SG37 work?

Page 30: Marathon class psbd

Restructuring ER model to remove Fan Trap

Page 31: Marathon class psbd

Semantic Net of Restructured ER Model with Fan Trap Removed

• SG37 works at branch B003.

Page 32: Marathon class psbd

An Example of a Chasm Trap

Page 33: Marathon class psbd

Semantic Net of ER Model with Chasm Trap

• At which branch office is property PA14 available? Mengawasi, mengatur

Page 34: Marathon class psbd

ER Model restructured to remove Chasm Trap

Page 35: Marathon class psbd

Semantic Net of Restructured ER Model with Chasm Trap Removed

Page 36: Marathon class psbd

Key Type• Primary key NIM, KDMataKuliah• Composite key KdMatakuliah+NIM• Foreign key • Candidate key• Alternate key

Page 37: Marathon class psbd

Aggregate• Sum• Avg• Min• Max• Count

Page 38: Marathon class psbd

Intersect, except,union

Page 39: Marathon class psbd
Page 40: Marathon class psbd

Top Related