ERwin.

Slides:



Advertisements
Similar presentations
the Entity-Relationship (ER) Model
Advertisements

Review Indra Budi Fakultas Ilmu Komputer UI 2 Database Introduction Database vs File Processing Main purpose of database Database Actors.
--The Entity Relationship Model(3)--1 Outline  ER model  Overview  Entity types Attributes, keys  Relationship types  Weak entity types  Uses Crows.
IT420: Database Management and Organization
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 COS 346 Day 6.
ISMT221 Information Systems Analysis and Design Entity-Relationship Diagram Lab 4 Tony Tam.
System Analysis - Data Modeling
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke Database Processing Tenth Edition Chapter 5 Data.
Chapter Five Data Modeling with the Entity-Relationship Model.
Entity Relationship Diagrams
Fundamentals, Design, and Implementation, 9/e COS 346 Day 2.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
Using ERWin to model your data Supplied by Computer Associates as part of AllFusion.
Murali Mani The Entity- Relationship Model. Murali Mani Database Design Stages Application Requirements Conceptual Design Logical Design Physical Design.
Modeling & Designing the Database
Using ER/Studio.
ER Diagram Notation. E-R Diagram: Chen Model Entity – represented by a rectangle with its name in capital letters. Relationships – represented by an active.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
3.1 CSIS 3310 Chapter 3 The Entity-Relationship Model Conceptual Data Modeling.
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
1. 2 Data Modeling 3 Process of creating a logical representation of the structure of the database The most important task in database development E-R.
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 2/1 Copyright © 2004 Please……. No Food Or Drink in the class.
SQL Structured Query Language Programming Course.
DESIGN AND IMPLEMENTATION DATA MODELING TOOLS Indah Puspa Sari ( ) Advisor : Adi Wibowo, M.T. Andreas Handojo, M.MT.
Entity Relationship Diagram. Introduction Definition: Entity-relationship diagram is a data-modeling technique that visualises entities, the attributes.
© D. Wong Ch. 2 Entity-Relationship Data Model (continue)  Data models  Entity-Relationship diagrams  Design Principles  Modeling of constraints.
In this session, you will learn to: Map an ER diagram to a table Objectives.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Lecture 03 Entity-Relationship Diagram. Chapter Outline.
IT 5433 LM2 ER & EER Model. Learning Objectives: Explain importance of data modeling Define and use the entity-relationship model Define E/R terms Describe.
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
Data Modeling Using the Entity- Relationship (ER) Model
COP Introduction to Database Structures
DataBase Logic in Business Applications
INTRODUCTION TO DATABASES (MICROSOFT ACCESS)
Logical Database Design and the Rational Model
Business System Development
Chapter 5 Database Design
Relational Database Design by ER- and EER-to- Relational Mapping
Business System Development
Requirements Become the E-R Data Model
DoD EA Dip Cse - Data Modelling in SA
Week 02 - Introduction to Data Modelling
Database Design – Lecture 4
Quiz Questions Q.1 An entity set that does not have sufficient attributes to form a primary key is a (A) strong entity set. (B) weak entity set. (C) simple.
Entity-Relationship Modelling
IDEF1X Standard IDEF1X (Integrated Definition 1, Extended) was announced as a national standard in 1993 It defines entities, relationships, and attributes.
بسم الله الرحمن الرحيم.
Conceptual data modeling
Translation of ER-diagram into Relational Schema
Databases and Information Management
COS 346 Day 8.
CS 174: Server-Side Web Programming February 12 Class Meeting
Order Database – ER Diagram
Entity-Relationship Modeling "Extended"
Entity-Relationship Modelling
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Databases and Information Management
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 3: Modeling Data in the Organization
Relational Database Design by ER- and EERR-to-Relational Mapping
Database Processing: David M. Kroenke’s Chapter Five:
DBMS ER-Relational Mapping
CS4433 Database Systems E-R Model.
Relational Database Design by ER- and EER-to-Relational Mapping
Databases and Information Management
Entity Relationship (ER) Modeling
Entity-Relationship Modeling "Extended"
Entity-Relationship Modeling "Extended"
Presentation transcript:

ERwin

Main Screen

Create a New Model Create a new logical/physical model 2. Click “Logical/Physical” 1. Click “Create model” (or File -> New) 3. Configure the “Target Database” (In CS360, we’re using Oracle 11g)

Differences between Notations Image from http://en.wikipedia.org/wiki/Entity-relationship_model President Company max=1 min=0 min=1 Person Location max1 <Crow’s Foot>

Notations Two notations available Information Engineering (IE) Integration DEFinition (IDEF) Use IE Notation IE notation To use IE Notation (in menu bar) Model → Model Properties Logical Physical IDEF1X notation Logical Physical

Information Engineering Notation

Entity Sets Entity set name Entity set Keys Attributes Left click  attribute properties Entity set name Keys Attributes An independent entity set Entity set For relationships and weak entity sets A dependent entity set (Stars-in)

Entity Sets (Cont’d) Non-Identifying vs. Identifying Relationship Non-Identifying relationship Independent Entity Sets Dependent Entity Sets

O: zero, |: one, crow’s foot: many Relationships O: zero, |: one, crow’s foot: many relationships Example Movies Owns Studios Identifying relationship Many-to-many relationship Non-identifying relationship

Configure cardinality Relationships Relationship properties Null allowed [c.f.) if not allowed ] Configure cardinality Three cardinality options zero, one or more (above example) One or more Zero or one

Relationships (Cont’d) Convert many-to-many relationships to connecting entity sets 1. Click many-to-many relationship 2. Click “many-to-many transform” 3. Transformed relationship 4. (optional) change entity name

Subclasses 1. Click “sub-category” icon (isa relationship) 2. Click the superclass (optional) 4. Click is-a relationship (after clicking “sub-category” icon) (optional) 5. Click the subclass 3. Click the subclass

Subclasses choose the strategy for converting “isa-relationship” Three options (see lecture note) 1. Supertype-Subtype Identity (E/R view) 2. Supertype-Subtype Rolldown (Similar to Object-oriented approach, but not equal) 3. Supertype-Subtype Rollup (Using NULL values to combine relations) 1. Click “isa” symbol! 2. Select transformation policy

DB Schema Construction (Cont’d) Step 2 (cont’d) Three options 1. Supertype-Subtype Identify (E/R view) 2. Supertype-Subtype Rolldown (Similar to Object-oriented approach, but not equal) 3. Supertype-Subtype Rollup (Using NULL values to combine relations) Option 1 Option 2 Option 3

ER modeling Two different models Logical model Physical model Conceptual modeling Independent of DBMS-specific implementations Only support subclasses and simple data types Physical model DBMS-specific modeling DBMS-specific data types

Buttons for generating DB schemas ER modeling (Cont’d) Two different models (Cont’d) Buttons for generating DB schemas DB-specific Data types Logical model Physical model

DB Schema Construction Step 1: Create a logical model Draw your ER diagram

DB Schema Construction (Cont’d) Step 2: In physical model, choose a proper DB-specific data type for each columns in tables Right click an Entity  select Column Define data types for each column

DB Schema Construction (Cont’d) Step 3: In physical model, generate a script for constructing schemas to the target DB (e.g. Oracle) Forward engineering (construct schema) Click “Preview button” to verify your SQL statements

ERwin Tip Display configuration Right click background Check options you want to display on ER diagram  Entity, Table, Relationship … Here’s a tip solving a problem