Modeling Data in the Organization

Slides:



Advertisements
Presentasi serupa
INTRO (TO BPOS). What is BPOS? Apakah BPOS itu? •BPOS = (Microsoft) Business Productivity Online Suite (Service) •adalah sebuah layanan online Microsoft,
Advertisements

Pengujian Hipotesis untuk Satu dan Dua Varians Populasi
3. Economic Returns to Land Resources: Theories of Land Rent
Mata Kuliah : ALGORITMA dan STRUKTUR DATA 1.
PEMOGRAMAN BERBASIS JARINGAN
Pengantar Desain Basis Data Part 2
TRIP GENERATION.
Program Keahlian I – SI By Antonius Rachmat C, S.Kom
Materi Analisa Perancangan System.
1 Pertemuan > Desain fisik basis data Matakuliah: >/ > Tahun: > Versi: >
1 Pertemuan 21 Pompa Matakuliah: S0634/Hidrologi dan Sumber Daya Air Tahun: 2006 Versi: >
Tugas-Tugas.
Slide 3-1 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Revised by IB & SAM, Fasilkom UI, 2005 Exercises Apa saja komponen utama.
Prof. Busch - LSU1 Mathematical Preliminaries. Prof. Busch - LSU2 Mathematical Preliminaries Sets Functions Relations Graphs Proof Techniques.
Review IS & Software System Concept Diah Priharsari PTIIK – Universitas Brawijaya Source: 1.Obrien & Marakas, Management Information.
Introduction to The Design & Analysis of Algorithms
IF-ITB/SAS/25Aug2003 IF7074 – Bagian Pertama Page 1 IF 7047 Kewirausahaan Teknologi Informasi Bagian Pertama: 1.1. Entrepreneurship, entrepreneur, dan.
PROSES PADA WINDOWS Pratikum SO. Introduksi Proses 1.Program yang sedang dalam keadaan dieksekusi. 2.Unit kerja terkecil yang secara individu memiliki.
1. Objek dalam kalimat aktif menjadi subjek dalam kalimat pasif
Jeff Howbert Introduction to Machine Learning Winter Classification Nearest Neighbor.
Ekonomi Manajerial dalam Perekonomian Global
1-Sep-14 Analisis dan Perancangan Algoritma Kuliah 3 : Proof by induction E. Haodudin Nurkifli Teknik Informatika Universitas Ahmad Dahlan.
Functions (Fungsi) Segaf, SE.MSc. Definition “suatu hubungan dimana setiap elemen dari wilayah saling berhubungan dengan satu dan hanya satu elemen dari.
Bilqis1 Pertemuan bilqis2 Sequences and Summations Deret (urutan) dan Penjumlahan.
INTEGRITY CONSTRAINTS Database System Concepts, Second Edition, Chapter 5, page 149.
Risk Management.
VALUING COMMON STOCKS Expected return : the percentage yield that an investor forecasts from a specific investment over a set period of time. Sometimes.
2-Metode Penelitian Dalam Psikologi Klinis
Implementing an REA Model in a Relational Database
Pertemuan 3 Menghitung: Nilai rata-rata (mean) Modus Median
MEMORY Bhakti Yudho Suprapto,MT. berfungsi untuk memuat program dan juga sebagai tempat untuk menampung hasil proses bersifat volatile yang berarti bahwa.
Basisdata Pertanian. After completing this lesson, you should be able to do the following Identify the available group functions Describe the use of group.
1 Magister Teknik Perencanaan Universitas Tarumanagara General View On Graduate Program Urban & Real Estate Development (February 2009) Dr.-Ing. Jo Santoso.
Model Relasional Part-1
2nd MEETING Assignment 4A “Exploring Grids” Assignment 4 B “Redesign Grids” Create several alternatives grid sysytem using the provided elements: (min.
LOGO Manajemen Data Berdasarkan Komputer dengan Sistem Database.
TRAVERSING BINARY TREE
LIMIT FUNGSI LIMIT FUNGSI ALJABAR.
PEMROGRAMAN PPBD (UAS) SEBELUM MELANGKAH KE TAHAP SELANJUTNYA BERDOA DULU BIAR LANCAR DAN GA EROR
Linked List dan Double Linked List
Definisi VLAN Pemisahan jaringan secara logis yang dilakukan pada switch Pada tradisional switch, dalam satu switch menunjukkan satu segmentasi LAN.
MODELS OF PR SYIFA SA. Grunig's Four models of Public Relations Model Name Type of Communica tion Model Characteristics Press agentry/ publicity model.
Pemrograman Sistem Basis Data Chapter II Database Sistem (Lanjutan)
THE IMMERSED TUNNELS MAIN BENEFITS AND INNOVATION BY. WAWAN SETIAWAN.
Operator dan Assignment Pertemuan 3 Pemrograman Berbasis Obyek Oleh Tita Karlita.
THE EFFICIENT MARKETS HYPOTHESIS AND CAPITAL ASSET PRICING MODEL
1. 2 Work is defined to be the product of the magnitude of the displacement times the component of the force parallel to the displacement W = F ║ d F.
Lecture 8 Set and Dictionary Sandy Ardianto & Erick Pranata © Sekolah Tinggi Teknik Surabaya 1.
© 2009 Fakultas Teknologi Informasi Universitas Budi Luhur Jl. Ciledug Raya Petukangan Utara Jakarta Selatan Website:
Via Octaria Malau Transfer (Internal Transfers) Transfer (Transfers Internal) Select the account from which funds are to be transferred FROM and then select.
PENJUMLAHAN GAYA TUJUAN PEMBELAJARAN:
Red -BlackTrees Evaliata Br Sembiring.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Pengalamatan Jaringan – IPv4 Dosen Pengampu: Resi Utami Putri, S.Kom.,
TCP, THREE-WAY HANDSHAKE, WINDOW
Mengapa Strategi Gagal Diterapkan?
Web Teknologi I (MKB511C) Minggu 12 Page 1 MINGGU 12 Web Teknologi I (MKB511C) Pokok Bahasan: – Text processing perl-compatible regular expression/PCRE.
Lecture 2 Introduction to C# - Object Oriented Sandy Ardianto & Erick Pranata © Sekolah Tinggi Teknik Surabaya 1.
Slide 1 Chapter 1: Introduction to Systems Analysis and Design Alan Dennis, Barbara Wixom, and David Tegarden John Wiley & Sons, Inc.
Lecture 9 Single Linked List Sandy Ardianto & Erick Pranata © Sekolah Tinggi Teknik Surabaya 1.
Training, Learning, and Development Strategy
1 Minggu 10, Pertemuan 20 Normalization (cont.) Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 9 Relational Database Design by ER- to-Relational Mapping.
Kk ilo Associative entity.
Master data Management
THE INFORMATION ABOUT HEALTH INSURANCE IN AUSTRALIA.
Conditional Move and Arrays
Warm UP Write the definition of a triangle as a conditional.
What is Kerberos? Network Security.
Lecture 8 Normal model.
Content Marketing Template
Transcript presentasi:

Modeling Data in the Organization Enrollment Key: basdat 2011 Kuliah 3 Basis Data Disampaikan oleh: Annisa, M.Kom.

Outline Business Rules and Scope of Business Rules Modeling the Rules of Organization Data Names and Definitions Modeling Entities Conceptual Database Design: ER data model Modeling Attributes Modeling Relationships © Pearson Education Limited 1995, 2005

Business Rules and Scope of Business Rules Important policy statement, but no impact on databases “Friday is business casual dress day” “A student may register for a section of a course only if he or she has successfully completed the prerequisites for that course”

Data Names and Definitions Relate to business, not technical : Customer, not File10, Bit7, X, etc. A course is a module of instruction in a particular subject area Meaningful, Readable : GradePointAverage, not AverageGradeRelativetoCust Unique : HomeAddress VS CampusAddress Composed of Words Taken from an Approved List: CUST for Customer Repeatable: StudentBirthDate, EmployeeBirthDate

Entity-Relationship (ER) Modeling Entity Relationship (ER) Diagram A detailed, logical representation of the entities, associations and data elements for an organization or business Notation uses three main constructs Entities Relationships Attributes

E-R Model Constructs Entities: Entity instance–person, place, object, event, concept (often corresponds to a row in a table) Entity Type–collection of entities (often corresponds to a table) Relationships: Relationship instance–link between entities (corresponds to primary key-foreign key equivalencies in related tables) Relationship type–category of relationship…link between entity types Attribute–property or characteristic of an entity or relationship type (often corresponds to a field in a table) 2

Basic E-R notation Entity symbols Attribute symbols Relationship symbols A special entity that is also a relationship Relationship cardinalities specify how many of each entity type is allowed Relationship degrees specify number of entity types involved 8

Basic E-R notation Examples of entities: Person: EMPLOYEE, STUDENT, PATIENT Place: STORE, WAREHOUSE Object: MACHINE, PRODUCT, CAR Event: SALE,REGISTRATION, RENEWAL Concept: ACCOUNT, COURSE

Strong Entity of Dream Home Dream Home adalah perusahaan yang bergerak di bidang penyewaan rumah. Dream Home memiliki banyak cabang di masing-masing ibukota propinsi, dimana setiap cabang memiliki banyak pegawai. Setiap pegawai memperoleh asuransi kesehatan untuk dirinya dan keluarganya. Property didaftarkan oleh Owner. Setiap owner boleh mendaftarkan lebih dari satu propertinya. Setiap client boleh menyewa lebih dari satu property. Setiap client mendaftarkan preferensi tentang rumah yang dikehendakinya. Client mengetahui property yang disewakan dari iklan yang dipasang oleh perusahaan. Setiap rumah dapat dilihat oleh client. Jika client setuju untuk menyewa rumah tersebut, maka akan dilakukan perjanjian kontrak.

Strong Entity of Dream Home BRANCH EMPLOYEE PROPERTY OWNER CLIENT

Weak Entity of Dream Home Dream Home adalah perusahaan yang bergerak di bidang penyewaan rumah. Dream Home memiliki banyak cabang di masing-masing ibukota propinsi, dimana setiap cabang memiliki banyak pegawai. Setiap pegawai memperoleh asuransi kesehatan untuk dirinya dan keluarganya. Property didaftarkan oleh Owner. Setiap owner boleh mendaftarkan lebih dari satu propertinya. Setiap client boleh menyewa lebih dari satu property. Setiap client mendaftarkan preferensi tentang rumah yang dikehendakinya. Client mengetahui property yang disewakan dari iklan yang dipasang oleh perusahaan. Setiap rumah dapat dilihat oleh client. Jika client setuju untuk menyewa rumah tersebut, maka akan dilakukan perjanjian kontrak.

Weak Entity of Dream Home DEPENDENT BRANCH EMPLOYEE PROPERTY OWNER CLIENT

Associative Entity of Dream Home Dream Home adalah perusahaan yang bergerak di bidang penyewaan rumah. Dream Home memiliki banyak cabang di masing-masing ibukota propinsi, dimana setiap cabang memiliki banyak pegawai. Setiap pegawai memperoleh asuransi kesehatan untuk dirinya dan keluarganya. Property didaftarkan oleh Owner. Setiap owner boleh mendaftarkan lebih dari satu propertinya. Setiap client boleh menyewa lebih dari satu property. Setiap client mendaftarkan preferensi tentang rumah yang dikehendakinya. Client mengetahui property yang disewakan dari iklan yang dipasang oleh perusahaan. Setiap rumah dapat dilihat oleh client. Jika client setuju untuk menyewa rumah tersebut, maka akan dilakukan perjanjian kontrak.

Associative Entity of Dream Home DEPENDENT BRANCH EMPLOYEE LEASE PROPERTY VIEW ADVERTISE OWNER CLIENT

Attributes Attribute–property or characteristic of an entity or relationship type Classifications of attributes: Required versus Optional Attributes Simple versus Composite Attribute Single-Valued versus Multivalued Attribute Stored versus Derived Attributes Identifier Attributes 15 5

Simple and composite identifier attributes The identifier is boldfaced and underlined 16 14

Composite, multivalued and derived attribute Composite: An attribute broken into component parts Entity with multivalued attribute (Skill) and derived attribute (Years_Employed) Multivalued an employee can have more than one skill Derived from date employed and current date 17 12

Identifiers (Keys) Identifier (Key)–An attribute (or combination of attributes) that uniquely identifies individual instances of an entity type Simple versus Composite Identifier Candidate Identifier–an attribute that could be a key…satisfies the requirements for being an identifier Will not change in value Will not be null 18 6

Attributes of Dream Home Entities EMPLOYEE Employee_Id Employee_Address … DEPENDENT Dependent_Name Date_Of_Birth … BRANCH Branch_Id Branch_Address … PROPERTY Property_Id Property_Address Types No_Of_Rooms … CLIENT Client_Id Client_Address Client_Telp Preferred_type … OWNER Owner_Id Owner_Address Owner_Telp …

Relationships Relationship Types vs. Relationship Instances The relationship type is modeled as lines between entity types…the instance is between specific entity instances Relationships can have attributes These describe features pertaining to the association between the entities in the relationship Two entities can have more than one type of relationship between them (multiple relationships) Associative Entity–combination of relationship and entity 20

Relationship types and instances a) Relationship type b) Relationship instances 21 17

Degree of Relationships Degree of a relationship is the number of entity types that participate in it Unary Relationship Binary Relationship Ternary Relationship 22 16

Cardinality of Relationships One-to-One Each entity in the relationship will have exactly one related entity One-to-Many An entity on one side of the relationship can have many related entities, but an entity on the other side will have a maximum of one related entity Many-to-Many Entities on both sides of the relationship can have many related entities on the other side 23

Degree of relationships One entity related to another of the same entity type Entities of two different types related to each other Entities of three different types related to each other 24 8

Examples of relationships of different degrees a) Unary relationships 25 22

Examples of relationships of different degrees (cont.) b) Binary relationships 26 22

Examples of relationships of different degrees (cont.) c) Ternary relationship Note: a relationship can have attributes of its own 27 22

Cardinality Constraints Cardinality Constraints - the number of instances of one entity that can or must be associated with each instance of another entity Minimum Cardinality If zero, then optional If one or more, then mandatory Maximum Cardinality The maximum number 28 29

Examples of cardinality constraints a) Mandatory cardinalities A patient history is recorded for one and only one patient A patient must have recorded at least one history, and can have many 29 1

Examples of cardinality constraints (cont.) b) One optional, one mandatory An employee can be assigned to any number of projects, or may not be assigned to any at all A project must be assigned to at least one employee, and may be assigned to many 30 1

Examples of cardinality constraints (cont.) c) Optional cardinalities A person is married to at most one other person, or may not be married at all 31 1

Examples of multiple relationships a) Employees and departments Entities can be related to one another in more than one way 32 40

Examples of multiple relationships (cont.) b) Professors and courses (fixed lower limit constraint) Here, min cardinality constraint is 2 33 40

Multivalued attributes can be represented as relationships simple composite 34

TUGAS Kerjakan perkelompok didiskusikan hari Rabu depan