Database Systems Instructor Name: Lecture-8.

Slides:



Advertisements
Similar presentations
ER Model For a college DB
Advertisements

the Entity-Relationship (ER) Model
Database Systems: Design, Implementation, and Management Tenth 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 Diagrams Don Archer. Entity Relationship Diagram  ERDs – depicts data in terms of the entities and relationships described by the.
ENTITY RELATIONSHIP DATA MODEL ELIZABETH GEORGE. INTRODUCTION Architect Aeronautical engineers Computer architects Traffic engineers.
1 The Entity-Relationship Model Chapter 2. 2 Database Design Process  Requirement collection and analysis  DB requirements and functional requirements.
Data Modeling Using the Entity-Relationship Model
Data Modeling Using the Entity-Relationship Model
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 7th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R.
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.
CSC271 Database Systems Lecture # 6. Summary: Previous Lecture  Relational model terminology  Mathematical relations  Database relations  Properties.
Conceptual Modeling and Entity-Relationship Diagrams
Chapter 5 Entity Relationship (ER) Modelling
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
Database Systems Lecture # 7 8 th Feb, Conceptual and Logical Design Person buys Product name pricenamessn Conceptual Model: Relational Model: (plus.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj ER Model Lecture 1 © Akhilesh Bajaj, 2000, 2002, 2003, 2004.
CS 564 Database Management Systems: Design and Implementation
4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Relationship Degree Indicates number of entities or participants.
Data modeling using the entity-relationship model Chapter 3 Objectives How entities, tuples, attributes and relationships among entities are represented.
Entity-Relationship Model Chapter 3 II COSC 457 Sungchul Hong.
Announcements Reading for Monday –4.6 Homework 3 – Due 9/29.
Enhanced Entity-Relationship Modeling
Lecture 03 Entity-Relationship Diagram. Chapter Outline.
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
Topic 3: ER – Entity Relationship Model (ERM) 6/12/
ENTITY-RELATIONSHIP MODELLING. Objectives: How to use Entity–Relationship (ER) modelling in database design. Basic concepts associated with ER model.
Introduction to Database Design
Data Modeling Using the Entity- Relationship (ER) Model
Contents Design Process Modeling Constraints E-R Diagram Design Issues
Comp 1100 Entity-Relationship (ER) Model
CSE202 Database Management Systems
Entity/Relationship Modelling
Databases (CS507) CHAPTER 7.
Entity-Relationship Model
Enhanced Entity-Relationship (EER) Model
The Enhanced Entity- Relationship (EER) Model
Enhanced Entity-Relationship and Object Modeling Objectives
ER model Ashima Wadhwa.
Database Management System
Chapter 7: Entity-Relationship Model
Entity-Relationship Modelling
Chapter 7 Entity-Relationship Model
Outline of the ER Model By S.Saha
Entity-Relationship Modeling
بسم الله الرحمن الرحيم.
Database Systems Instructor Name: Lecture-5.
The Entity-Relationship Model
UML Class Diagram.
Entity-Relation Modeling
Entity-Relationship Modelling
Software Design Lecture : 15.
Database Systems Instructor Name: Lecture-9.
Database Systems Instructor Name: Lecture-10.
The Entity-Relationship Model
CS4222 Principles of Database System
376a. Database Design Dept. of Computer Science Vassar College
Conceptual Data Modeling Using Entities & Relationships
ITEC 3220A Using and Designing Database Systems
Chapter 7: Entity-Relationship Model
Entity-Relationship Diagram (ERD)
The Entity-Relationship Model
Question Which of the following plays an important role in representing information about the real world in a database? Explain briefly 1)DDL.
Entity Relation Model Tingting Zhang.
The Entity-Relationship Model
The Entity-Relationship Model
ER MODELING Instructor: SAMIA ARSHAD
Database Dr. Roueida Mohammed.
Presentation transcript:

Database Systems Instructor Name: Lecture-8

Contents Relationship Attribute on Relationship Associative Entity 2

Relationship An relationship is an association that represent the interaction among Entity Instances of one or more Entity Types that is of interest to the organization It is Verb or Verb Phrase 3

Relationship Type An relationship Type is an Abstraction of Meaningful Associations among Entity Types It can answer the questions that is of interest to the organizations and these Answers cannot be answered by only using Entity Types 4

Relationship Instance It is an association between/ among entity instances where each relationship instance associates with exactly one entity instance from participating Entity Types A relationship instance in an E-R schema represents an association between the named entities in the real-world enterprise that is being modeled. 5

Relationship Set It is a set of associations or relationships among entities from participating Entity Types Formally, it is a mathematical relation on n ≥ 2 (possibly nondistinct) entity sets. If E1, E2, . . . , En are entity sets, then a relationship set R is a subset of {(e1, e2, . . ., en) | e1 ∈ E1, e2 ∈ E2, . . . , en ∈ En} Alternatively, it can be defined as a subset of the Cartesian product of the entity sets E1 ×E2 × ... × En 6

Relationship Set-Contd. if A, B are sets, then a relation R is a subset of A  B A={1,2,3}, B={a,b,c,d}, A  B = {(1,a),(1,b), . . ., (3,d)} R = {(1,a), (1,c), (3,b)} - makes is a subset of Product  Company: 1 2 3 a b c d A= B= makes Company Product 7

Participation and Role The association between Entity Sets is called Participation that is the Entities E1,E2,E3,…,En participate in a relationship R. The function that an entity plays in a relationship is called that entity’s role. It defined whether an Entity Instance of one Entity Type can exist without participating with an Entity Instance of another Entity Type. The Role is implicit unless there is a Recursive Relationship 8

Relationship – Participation 9

Relationship - Role 10

Example – Relationship Type, Relationship Instance and Relationship Set 11

Relationship Instances 12

Attribute on Relationship It is a relationship that is dealt as an attribute in some situations. In other words, attributes may be related with relationships Where we can place the attribute Date Complete?(next slide) There is a value of the date for each instance of relationship Important Attribute on Relationship only occur in many-to-many relationship They do not occur in one-to-one or one-to-many relationship 13

Attribute on a Relationship – Contd. 14

Attribute on a Relationship- Contd. 15

Attribute on a Relationship- Another Example A student is assigned to a supervisor on a specific date 16

Associative Entity A solution to attribute on relationship Associative entity An entity type that associates the instances of one or more entity types and contains attributes that are peculiar to the relationship between those entity instances. Entity Type-Noun -------- Relationship - Verb 17

Associative Entity – Defining Rules The participating entity types are in “many” relationships Resulting Associative Entity has independent meaning to the end user The associative entity has one ore more attribute along-with Identifier Attribute The associated entity participate in one or more relationship independent of the entities associated in the relationship 18

Assignment – What I was Expecting major Department offers Is double major allowed? Can a student have more than 1 advisor? Is joint appointment of faculty possible? Can two profs share to teach the same course? Can a professor teach more than one course? Can a professor stay without affiliated with a department? faculty Courses teaches Professor advisor enrollment Students 19

???????????????? 20