Ch5: Software Specification. 1 Descriptive specifications  Describe desired properties of system  Three types:

Slides:



Advertisements
Similar presentations
Entity Relationship Diagrams
Advertisements

Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3 rd Edition.
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Entity Relationship (ER) Modeling
Concepts of Database Management Seventh Edition Chapter 6 Database Design : ERD Model.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Entity Relationship (ER) Modeling
Entity Relationship (ER) Modeling
Systems Development Life Cycle
Data Modeling using the Entity-Relationship (ER) Model
System Analysis - Data Modeling
Systems Analysis Requirements structuring Process Modeling Logic Modeling Data Modeling  Represents the contents and structure of the DFD’s data flows.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Finding Entities.
Entity Relationship Diagrams
Information Resources Management January 30, 2001.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Dr. Bernard Chen Ph.D. University of Central Arkansas.
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
Entity-Relationship Diagrams
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 7th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R.
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
3.1 CSIS 3310 Chapter 3 The Entity-Relationship Model Conceptual Data Modeling.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
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.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 7.1.
Data Modeling ERM ERD.
Dr. Mohamed Osman Hegaz1 Conceptual data base design: The conceptual models: The Entity Relationship Model.
Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
Chapter 5 Entity Relationship (ER) Modelling
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter 6 Structuring.
BIS 360 – Lecture Six (Part 2) Conceptual Data Modeling (Chapter 10 and partial Chapter 12)
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T5: Designing Database Applications Business Driven Technology.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Relationship Degree Indicates number of entities or participants.
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
AL-MAAREFA COLLEGE FOR SCIENCE AND TECHNOLOGY INFO 232: DATABASE SYSTEMS CHAPTER 4 ENTITY RELATIONSHIP (ER) MODELING Instructor Ms. Arwa Binsaleh 1.
advanced data modeling
DatabaseIM ISU1 Fundamentals of Database Systems Chapter 3 Data Modeling Using Entity-Relationship Model.
Lecture 91 Introduction to Data Analysis and Logic Specification Objectives l Draw an entity-relationship diagram, and explain the types of entity relationships.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Data Modeling and Entity-Relationship Model I
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
Entity Relationship Modeling
Entity-Relationship Model
Entity-Relationship Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
Database Systems Instructor Name: Lecture-9.
MIS2502: Data Analytics Relational Data Modeling 2
Chapter # 4 Entity Relationship (ER) Modeling.
Presentation transcript:

Ch5: Software Specification

1 Descriptive specifications  Describe desired properties of system  Three types:

2 ER diagrams  Used to describe a data model of the system  ER diagrams consist of  between data objects

3 Data Objects (Entities)  A person, place, concept, or thing which is represented in the system.  Examples:  A report or display  A telephone call  An event (an alarm)  A person  An organization unit (Accounting department)  A place (Warehouse)  A file structure

4 Entity type vs. entity instance  Entity type:  Entity instance:  Compare this with class and object in OO paradigm.

5 Entities Represented by a rectangle Person Car

6 Weak entities A weak entity is one which cannot exist without the existence of some other entity Example:

7 Attributes Define properties of a data object Represented by an oval attached to an entity Person NameAddressAgeSSN

8 Attributes (contd..) Car MakeModelID# Body Type ColorOwner

9 Attributes (contd..)  Can name a data object:  Describe a data object:  Refer to another data object:

10 Attributes (contd..)  Consider an entity city in a travel reservation system  Can name a data object:  Describe a data object:  Refer to another data object:

11 Identifier attributes  Attribute becomes “key” when we want to find an instance of the object  Example:  Keys often must be unique, but not always

12 Single-valued vs. multi-valued attributes  Single-valued attribute:  Multi-valued attribute:  Identify single-valued and multi-valued attributes for the entity city.

13 Notation Employee Name Employee Skills Single-valued attribute Multi-valued attribute

14 Relationships  A relationship is a logical association between two types of entities.  Consider books and bookstores:  Bookstore orders books  Bookstore displays books  Bookstore stocks books  Bookstore sells books  Bookstore returns books  Represented by a diamond

15 Relationships: Example Bookstore Books Orders

16 Relationships: Example STUDENT CLASS ENROLLED_IN NAME GENDER AGE SUBJECT COURSE_ID MAX_ENROLLMENT

17 Relationships: Cardinality  How many occurrences of object x are related to how many occurrences of object y.  Doesn’t indicate whether one data object must participate in the relationship.

18 Relationships: Modality  Modality = 0, if relationship is optional  Modality = 1, if relationship is mandatory

19 Cardinality & Modality: Notation E1 R E2 (min,max) Modality Cardinality 0 – Partial 1 – One 1 – Mandatory M – More than one

20 Cardinality & Modality: Notation (contd..) Customer R Order (0,M) (1,1) Places A customer may place (modality 0) zero to many orders (cardinality M) An order is placed by one and only customer (modality and cardinality 1).

21 Cardinality Notation Customer Order Places Assume that modality is always 1, that is, the participation of objects is mandatory One customer places many orders. Arrow pointing towards an entity which has a single object participating in the relationship

22 Relationship cardinalities A R B ARB A R B A R B A R B is one to one A R B is one to many (one A, many B) A R B is many to one (one B, many A) A R B is many to many (many A & B) m n 1 m n

23 Relationship cardinalities: Example ARB A R B A R B Parts Suppliers Parts Suppliers Parts Suppliers 1 n m 1 m n A supplier supplies many parts. A part is supplied by many suppliers Parts are supplied by suppliers.

24 Degree of relationships  Unary relationship:  Binary:  Ternary:

25 Degree of relationships (contd..) Unary relationship Employee Is_Manager_Of Assembly Part Is_Composed_Of

26 Degree of relationships (contd..) Binary relationships Most relationships fall in this category Faculty Course Teaches Manager Project Manages

27 Degree of relationships (contd..) Ternary relationships Relationships that exist between three entities Vendor Warehouse Product Ships

28 Finding entities and relationships  Identify the system information:  User interviews  Paper and screen documents  Previous system documentation  Identify entities:  Heuristics  Analysis of English grammar  Entity-Relationships

29 English Proper Noun Common Noun Transitive verb Intransitive verb Adjective Adverb ERD Entity (“Name” of an entity) Entity or entity-type M-ary relation (M>1) Unary relationship or attribute Value Attribute of an entity Attribute of a relationship English Grammar – Rule #1

30 English Grammar Rules Consider two sentences of the form: “There are ….. X in Y” Or “Y has …. X” Example: There are more than 200 employees in every department. Every department has more than 200 employees X Y Y X Entities: X and Y

31 English Grammar Rules If the English sentence says, “The X of Y is Z” Rule #1: Y is an entity Rule #2: X is either an Attribute or an Entity depending on what type of “Z” it is. Rule #3a: If “Z” is a proper noun, then X is a relationship between Y and Z. Rule #3b: Otherwise, X is an attribute of Y.

32 English Grammar: Rule #3 (Examples) The birthdate of the student is 12/08/80. Attribute(X) Entity(Y) not a proper noun (Z) The advisor of John Smith is Dr. Greene Relationship(X) Entity (Y) Proper Noun(Z) The X of Y is Z

33 ER diagrams: Summary  Semi-formal notation  Widely used:

34 ER Diagrams: Example Consider a course registration and student advising system. This system maintains information regarding the courses offered each semester as well as the advisors assigned to each student. Each course has a number of students enrolled, while each student can register for a number of courses. A course is taught by a single instructor. Each instructor teaches only one course per semester. In addition, an instructor is responsible for advising several students. Each student is assigned a single advisor. Draw an ER diagram for the course registration and student advising system.

35 ER Diagrams: Example Course Student Instructor Taught_by Advised_by Enrolled_In