CS 3630 Database Design and Implementation

Slides:



Advertisements
Similar presentations
Logical Database Design Reading: C&B, Chap 17. Dept. of Computer Science, University of Aberdeen2 In this lecture you will learn What is logical database.
Advertisements

Database Design: ER Modelling
Data Definition and Integrity Constraints
Database Design: ER Modelling (Continued)
Logical Database Design
CSC271 Database Systems Lecture # 22. Summary: Previous Lecture  Applying Database SDLC on DreamHome  Database planning  System definition  Requirements.
Chapter 6 Methodology Logical Database Design for the Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Pertemuan Entity Relationship Diagram
Lecture Eleven Entity-Relationship Modelling
Methodology Logical Database Design for the Relational Model
Chapter 4 ENTITY-RELATIONSHIP MODELLING.
Chapter 4 Entity-Relationship modeling Transparencies © Pearson Education Limited 1995, 2005.
Relational Database Management System A type of database in which records are stored in relational form is called relational database management system.
Entity-Relationship modeling Transparencies
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
Team Dosen UMN ER Modelling Connolly Book Chapter
Entity-relationship Modeling Transparencies 1. ©Pearson Education 2009 Objectives How to use ER modeling in database design. The basic concepts of an.
Entity-Relationship Model
Chapter 5 Entity–Relationship Modeling
1 Pertemuan > > Matakuliah: >/ > Tahun: > Versi: >
9/10/2012ISC 329 Isabelle Bichindaritz1 Entity Relationship (E-R) Modeling.
© Pearson Education Limited, Chapter 7 Entity-Relationship modeling Transparencies.
Entity-Relationship Modeling Based on Chapter 12.
Chapter 8 Methodology - Conceptual Database Design Chapter 15 in Textbook.
1 Chapter 11 Entity-Relationship Modeling Transparencies Last Updated: 25 April 2011 By M. Arief
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
CS 3630 Database Design and Implementation. 2 DreamHome Branch (branchNo, street, city, state, zipcode, phone1, phone2, phone3) Staff (staffNo, firstName,
CS 3630 Database Design and Implementation. 2 E-R Model (II) Keys To identify records in a table Candidate Key Primary Key Alternate Key Composite Key.
1 E-R Model (II) Keys To identify records in a table Candidate Key Primary Key Alternate Key Composite Key.
CS 3630 Database Design and Implementation. Assignment 1 2 What is 3630?
Jozef Kuper.  Describe a Database  Entities  Atributes  Relationships.
1 Entity-Relationship Model © Pearson Education Limited 1995, 2005.
1 Chapter 17 Methodology - Local Logical Database Design.
Chapter 9 Logical Database Design : Mapping ER Model To Tables.
CSC271 Database Systems Lecture # 8. Summary: Previous Lecture  Relation algebra and operations  Selection (Restriction), projection  Union, set difference,
Database Design – Lecture 4 Conceptual Data Modeling.
Part3 Database Analysis and Design Techniques Chapter 05- Entity-Relationship Modeling Lu Wei College of Software and Microelectronics Northwestern Polytechnical.
Modelling Methodologies Chapter 16, 17, 18. Modeling Methodologies2 Database Design Physical DB design Logical DB design Conceptual DB design Hardware.
1 Database Systems Entity Relationship (E-R) Modeling.
CSC271 Database Systems Lecture # 23. Summary: Previous Lecture  Database design using ER modeling  Concepts of ER model  Entities  Relationships.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
Chapter 11 (2) CIS458 Sungchul Hong. Structural Constraints Main type of constraint on relationships is called multiplicity. Multiplicity - number (or.
DBMS ER model-2 Week 6-7.
CS 3630 Database Design and Implementation. Null Value The value of an attribute could be NULL NOT known at the moment or NOT Applicable Example Cell.
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
Data Modeling and Entity-Relationship Model I
IS 4420 Database Fundamentals Chapter 3: Modeling Data in the Organization Leon Chen.
ENTITY-RELATIONSHIP MODELLING. Objectives: How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated with ER model.
Data Modeling Using the Entity- Relationship (ER) Model
Chapter # 3 Data Modeling Using the Entity-Relationship (ER) Model
Methodology Logical Database Design for the Relational Model
COP Introduction to Database Structures
Conceptual Design & ERD Modelling
TMC2034 Database Concept and Design
CS 3630 Database Design and Implementation
Relational Database Design by ER- and EER-to- Relational Mapping
CS 3630 Database Design and Implementation
CS 3630 Database Design and Implementation
Entity-Relationship Modeling
Chapter 13 Enhanced Entity-Relationship Modeling
Conceptual Database Design
CS 3630 Database Design and Implementation
Entity-Relationship Modeling
Chapter Entity-Relationship Modeling & Enhanced Entity- Relationship Modeling.
Database Systems Instructor Name: Lecture-9.
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 14 Normalization.
Database Management System
Mapping an ERD to a Relational Database
Presentation transcript:

CS 3630 Database Design and Implementation 21 slides MUST go over A2 for Quiz1 next class

Structural Constraints Participation Total (Mandatory) Partial (Optional) Cardinality Max number of occurrences that can be related to one occurrence Staff      Oversees PropertyForRent Business Rules

Structural Constraints: Multiplicity Combination of Participation and Cardinality Multiplicity of Binary Relationship one-to-one one-to-many many-to-many

Multiplicity: one-to-one Staff (1..1) Manages (0..1) Branch Each branch has exactly one manager. Each staff manages zero or one branch. Staff staffNo Manages Branch branchNo 1..1 0..1 For one object on the other side!

Multiplicity: one-to-many Staff (0..1) Oversees (0..*) PropertyForRent Staff staffNo Oversees PropertyForRent propertyNo 0..1 0..* One property is overseen by 0 or 1 staff One staff oversees 0 or more properties For one object on the other side!

Specifying Multiplicity Range Staff (0..1) Oversees (0..30) PropertyForRent Staff staffNo Oversees PropertyForRent propertyNo 0..1 0..30 One property is overseen by 0 or 1 staff One staff oversees At most 30 properties

Multiplicity: many-to-many NewsPaper (0..*) Advertises (1..*) PropertyForRent Advertises NewsPaper newspaperName PropertyForRent propertyNo 0..* 1..* One newspaper has Ads for 1 or more properties One property is advertised on zero or more newspapers For one object on the other side!

Structural Constraints: Multiplicity Multiplicity of Complex Relationship (n-ary) When (n-1) values are fixed for other entities

Multiplicity for Complex Relationship Client (0..*) Registers with Staff (0..1) at Branch (0..1) Registers Branch Staff 0..1 0..1 0..* Client

Multiplicity: Summary Symbols Meaning 0..1 Zero or one 1..1 Exactly one 1 Exactly one 0..* Zero or more 1..* One or More 5..10 Between 5 and 10, inclusive 0, 3, 6-8 Zero, three, six, seven, or eight Total: low limit > 0 Partial: low limit = 0

Sample E-R Model

Open everything, but do it yourself! Quiz1 Wednesday, Feb 14, Lab 206 Using Computers Open everything, but do it yourself! Download Word Document from D2L Type your answers. Upload Completed Document to D2L

Assignment3