Data Modeling AND ER MODELS.

Slides:



Advertisements
Similar presentations
ER Modeling Case Studies
Advertisements

BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 5-1 Accounting Information Systems 9 th Edition Marshall.
Databases Revision.
Concepts of Database Management Sixth Edition
1 6 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology.
Entity-Relationship Model and Diagrams (continued)
Slides adapted from A. Silberschatz et al. Database System Concepts, 5th Ed. Entity-Relationship Model Database Management Systems I Alex Coman, Winter.
CIT 381 ER Basics - relationship types - foreign keys - ER Studio.
July 14, 2015ICS 424: recap1 Relational Database Design: Recap of ICS 324.
APPENDIX C DESIGNING DATABASES
WJEC Applied ICT Databases – Attributes & Entities Entities A database contains one or more related tables. Each table holds all of the information.
 An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database.  An Entity Relationship.
Entity Relationship Modeling
ระบบฐานข้อมูลขั้นสูง (Advanced Database Systems) Lecturer AJ. Suwan Janin Phone:
ICOM 5016 – Introduction to Database Systems Lecture 4 Dr. Manuel Rodriguez Department of Electrical and Computer Engineering University of Puerto Rico,
Database Design Concepts
CSE 441: Systems Analysis & Design
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Relational DB Components
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
The REA Model. The REA model provides structure for developing an accounting database It helps to identify It helps to The REA Model.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
PLUG IT IN 3 Fundamentals of Relational Database Operations.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
Chapter 3: Relational Model  Structure of Relational Databases  Normal forms (chap. 7)  Reduction of an E-R Schema to Relational (Sect. 2.9)  Relational.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T5: Designing Database Applications Business Driven Technology.
Databases. Not All Tables Are Created Equal Spreadsheets use tables to store data and formulas associated with that data The “meaning” of data is implicit.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Relational Database. Database Management System (DBMS)
Chapter 9: Logical Database Design and the Relational Model (ERD Mapping)
Introduction to Database using Microsoft Access 2013 Part 7 November 19, 2014.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
Database revision.
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
Description and exemplification of entity-relationship modelling.
 An entity-relationship diagram (ERD) is a specialized graphic that illustrates the interrelationships between entities in a database.
Jozef Kuper.  Describe a Database  Entities  Atributes  Relationships.
In this session, you will learn to: Map an ER diagram to a table Objectives.
ENTITY RELATIONSHIP DIAGRAM ENTITY RELATIONSHIP DIAGRAM IS A SPECIALIZED GRAPHIC THAT ILLUSTRATES THE INTERRELATIONSHIPS BETWEEN ENTITIES IN A DATABASE.
Relational Theory and Design
Lesson 2: Designing a Database and Creating Tables.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
INTRODUCTION TO DATA MODELING CS 260 Database Systems.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
Entity-Relationship Diagram Presentation Gianna-lee Williams 6AQ Ms. Anderson.
Entity relationship diagram Name: Quian Crosby Form:6AQ Subject: Information Technology Teacher: Ms. D. Anderson.
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
IST 220 – Intro to DB Lecture 4 Database Design thru ER Modeling.
1 Information System Analysis Topic-3. 2 Entity Relationship Diagram \ Definition An entity-relationship (ER) diagram is a specialized graphic that illustrates.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Mapping Constraints Keys.
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
MBI 630: Week 9 Conceptual Data Modeling and Designing Database 6/10/2016.
Lecture 5 Data Model Design Jeffery S. Horsburgh Hydroinformatics Fall 2012 This work was funded by National Science Foundation Grant EPS
DATA SCIENCE MIS0855 | Spring 2016 Designing Data
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
Chapter Two Database Design (ER Model) Objectives: ER model Type of relationships Role in a relation Concept of Weak entities.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
Week 02 - Introduction to Data Modelling
Chapter 12 Information Systems.
Presentation transcript:

Data Modeling AND ER MODELS

Data Modeling The analysis of data objects and their relationships to other data objects. Data modeling is often the first step in creating a database The designers first create a conceptual model of how data items relate to each other. Data modeling involves a progression from conceptual model to logical model to physical model.

Levels of data modeling: There three level of data modeling, conceptual data model, logical data model, and physical data model,

Conceptual Data Model A conceptual data model identifies the highest-level relationships between the different entities. No attribute is specified. No primary key is specified.

Logical Data Model A logical data model describes the data in as much detail as possible, without regard to how they will be physical implemented in the database. Identify entity and relationships. All attributes of each entity. Identify primary and foreign key.

Physical Data Model Physical data model represents how the model will be built in the database.

Comparison: Feature Conceptual Logical Physical Entity Names ✓   Entity Relationships Attributes Primary Keys Foreign Keys Table Names Column Names Column Data Types

Entity-Relationship Model In software engineering, an entity-relationship model (ER Model) is an conceptual representation of data. Entity-relationship modeling is a database modeling method, used to produce a type of conceptual schema of a system, often a relational database. Diagrams created by this process are called entity-relationship diagrams, ER diagrams, or ERDs.

ER-Model Entity Attributes Relationships Three major elements in ER-Model Entity Attributes Relationships

Entity: A person, place or thing about which the data is collected. For example: entity of “student”

Attributes Type of information that is captured related to the entity. For the student entity, some related attributes include the Student ID Student Name Which year of study Which department the student studies in? 5. College information

Relationship A relationship is an association or bond that exists between one or more entities. For example : Belongs to, own, works for, saves in, purchases and so on

Relationship There are three types of relationships between tables. The type of relationship that is created depends on how the related columns are defined. One-to-Many Relationship Many-to-Many Relationships One-to-One Relationships Many-to-One Realtionships

One-to-Many Relationships A one-to-many relationship is the most common type of relationship. In this type of relationship, a row in table A can have many matching rows in table B, but a row in table B can have only one matching row in table A. For example, the PUBLISHERS and BOOKS tables have a one-to-many relationship: each publisher produces many titles, but each title comes from only one publisher.

One-to-Many Relationships PUBLISHER BOOKS

Many-to-Many Relationships In a many-to-many relationship, a row in table A can have many matching rows in table B, and vice versa. For example, the AUTHORS table and the BOOKS table have a many-to-many relationship that is defined by a one-to-many relationship from each of these tables.

Many-to-Many Relationships BOOKS BOOKS_AUTHORS AUTHORS

One-to-One Relationships In a one-to-one relationship, a row in table A can have no more than one matching row in table B, and vice versa. A one-to-one relationship is created if both of the related columns are primary keys or have unique constraints. This type of relationship is not common because most information related in this way would be all in one table.

One-to-One Relationships PERSON LOCATION

Many-to-One Relationships In a many-to-one relationship, one or more row in table A can have no more than one matching row in table B. For example, many vehicle are manufactured by one manufacturer.

Many-to-One Relationships VEHICLE MANUFACTURER

ER-Model Relationship: Exactly one relationship (1)

ER-Model Zero or 1 relationship (0/1)

ER-Model One or more relationship ( >= 1)

ER-Model Zero or more relationship ( >= 0)

ER-Model More than one (>1)

Steps to create ER model: Gather Data. Identify entities Identify the attributes. Identify relations. Draw diagram using symbols.

ERD Example: city ZIP street Customer_address Account_owner Account_number customer_contact balance Customer_name Saves in Account Customer