Conceptual Data Modeling Using E-R Models. PM Jat
|
|
- Katherine Burke
- 6 years ago
- Views:
Transcription
1 Conceptual Data Modeling Using E-R Models PM Jat
2 Data Model Data modeling is the most important task in database development completeness correctness performance of database depends on correct data model shows up how data are structured at Conceptual, Logical and Physical level More formally, it is a collection of concepts that can be used to describe Database Structure - Elmasri/Navathe Database Structure, we mean here - data types, relationships, and constraints Aug 14, 2008 Data Modeling Using E-R Models 2
3 Why Data Modeling It is essential step of database design, not optional If no, it is like making a house without a plan! Sometimes, in smaller applications, it may not be explicitly done or documented still it is done Aug 14, 2008 Data Modeling Using E-R Models 3
4 Phases of Database Design Requirement Analysis Understand the business needs and Data Components within. Conceptual Design Develop Higher/Conceptual Data Model easily understandable by End- Users and Managers.. what this talk is about Logical Design Develop Logical/Implementation Schema in one of the implementation technologies like Relational, Object Relational, OO. Historically Hierarchical/Network Models Physical Design Develop Internal Schema how files are stored on disk deal with file organization, indexes, clustering etc. Aug 14, 2008 Data Modeling Using E-R Models 4
5 Conceptual Model Correct and Formal representation of data items are the objectives here Intuitive and Simple to understand end users and managers can easily understand Centers on what data items and business rules it contains not on how they are stored or organized in application (or structured in a DBMS logically or physically) ER Diagrams and UML class diagrams are popular Conceptual models Implementation neutral Aug 14, 2008 Data Modeling Using E-R Models 5
6 E-R Diagram (Model? ) As said, it is a popular high level Conceptual Data Model ER Diagram are simple consists of just - Entities their attributes Relationship between entities Constraints on Entities and Relationship Let us understand what these terms mean here? Aug 14, 2008 Data Modeling Using E-R Models 6
7 How we see data around us- List of Students IIyr BTech(CS) StudID Name DOB Fasther s Name Address Aditi Anurag Arpit List of Programs Offered by CSE Department.. ProgID ProgName.. Intake BCS BTech(Computer Science) 40 BIT BTech(Information Technology) Aug 14, 2008 Data Modeling Using E-R Models 7
8 How do we describe this data Careful watch reveals that we have two type of entity sets here- Students and Programs Let us call all students together entity set, and Program together another entity set Each Student entity has certain properties (or attributes) like Name, DOB, Fathers Name etc., and their values drawn from a predefined value set, and similarly each program has certain attributes, and their values Aug 14, 2008 Data Modeling Using E-R Models 8
9 How do we describe this data If we attempt to describe student entity, typically it can be like this- Name of Entity: Student Attributes: StudID, Name, DOB, FathersName,.. Each Attribute derives value from a value set (domain) StudID uniquely identifies a student entity in the set This is description of Student entity, and we call it Entity Type Similarly we describe Program Entity Type Aug 14, 2008 Data Modeling Using E-R Models 9
10 ERD notation for the Entity types Notations used here are, originally suggested by Dr Peter Chen in 76, known as Chen s notation Aug 14, 2008 Data Modeling Using E-R Models 10
11 Entities and Attributes Entity is the basic object in ER model. It is thing which exists Each entity has attributes- properties that describe the entity, for example as we have seen- Entity: Student Attributes: StudID, Name, DOB, Father s Name, Address, Entity: Program Attributes: ProgID, ProgName, Intake Aug 14, 2008 Data Modeling Using E-R Models 11
12 Entities and Attributes Attributes could be Atomic can not be meaningfully decomposed: Example DOB can not be decomposed in Day/Month/Year DOB is atomic data Student-Name may or may not be atomic If FirstName, LasteName have individual meaning Key Attributes Composite: Example Address (Street, City, PIN) Single valued and multi-valued Stored and Derived attributes Aug 14, 2008 Data Modeling Using E-R Models 12
13 Entities and Attributes in ERD Composite Attribute Key Attribute Multi-value Attribute Key attribute Uniquely Identifies an Entity in Entity Set Aug 14, 2008 Data Modeling Using E-R Models 13
14 Entities and Attributes Derived Attribute Aug 14, 2008 Data Modeling Using E-R Models 14
15 Entity Type Casually, very often term entity is used for Entity Type. An Entity Type describes schema or intention for a set of entities sharing the same structure. In OO terminology, an entity type is similar to a class, and an entity is similar to an instance Definition (Elmasri/Navathe): Entity Type defines a collection (or set) of entities that have the same attributes. Each Entity Type in the database is described by its name and attributes Aug 14, 2008 Data Modeling Using E-R Models 15
16 Entity Set The collection of entities of a particular entity type are grouped into an entity set, is also called extension of entity type. The entity set usually referred with the same name as of Entity Type StudID Name DOB Fasther s Name Address Aditi Anurag Definition (Elmasri/Navathe): Arpit The collection of all entities of a particular type in the database at any point of time is called an entity set... Aug 14, 2008 Data Modeling Using E-R Models 16
17 Key Attributes It is Attribute or set of Attributes, called Key Attribute which are used to uniquely identify the entity in the set An important constraint on entities of an entity type is the key constraint or uniqueness constraint. Key Attribute StudID Name Aditi DOB Address Anurag Arpit Aug 14, 2008 Data Modeling Using E-R Models 17
18 Value Sets (Domains) of Attributes Each simple attribute of an entity type is associated with a value set (or a domain of values), which specifies the set of values that may be assigned to that attribute for each individual entity Also known as domain constraint on an attribute Aug 14, 2008 Data Modeling Using E-R Models 18
19 Relationship Type, Instance, and Set Let us look at following facts Aditi studies in BIT Amit studies in BCS Arpit studies in BIT Varun studies in BEE Radhika studies in BIT Shyam studies in BCS This shows Relationship between Student and Program entities (entity types to be precise) let us give a name to it Studies obvious choice Relationship also has type and set, here studies is Relationship Type, Each of above statement is instance of the type, and All together form relationship set Aug 14, 2008 Data Modeling Using E-R Models 19
20 Relationship Set Relationship Instance Diagram Aug 14, 2008 Data Modeling Using E-R Models 20
21 Simple ER Diagram: Student-Program Relationship Aug 14, 2008 Data Modeling Using E-R Models 21
22 Relationships can also have attributes In our previous example, suppose we also want to have study duration of a student in a program, then Let us say, we have attributes year_from, and year_to Aug 14, 2008 Data Modeling Using E-R Models 22
23 Cardinality Constraints for Binary Relationships Binary relationship, is the one in which two entity types participate. Based on the number of relationships instances in which an entity can participate, relationship types can be one following- One to One (1:1) One to Many (1:N) Many to Many (M:N) Example: Customer Bank Account as 1:1, 1:N, M:N Aug 14, 2008 Data Modeling Using E-R Models 23
24 One to One (1:1) One Customer has one account and one account is owned by one customer Aug 14, 2008 Data Modeling Using E-R Models 24
25 One to Many (1:N) One Customer has many accounts, and one account is owned by one customer Aug 14, 2008 Data Modeling Using E-R Models 25
26 Many to Many (M:N) One Customer has many accounts, and one account is owned by multiple customers jointly Aug 14, 2008 Data Modeling Using E-R Models 26
27 Cardinality Constraints for Binary Relationships Every Relationship Type has to be specified to be one these a constraint on relationship type Cardinality Constraints are also called Cardinality Ratio (Elmasri/Navathe), though not ratio in precise terms. Probably, because it written in ratio format (1:N)! Some authors also call it Mapping Cardinality (Korth) Cardinality Constraint appears to be better name, as it is an constraint on the cardinality of relationship instances into which a entity can participate at most. Aug 14, 2008 Data Modeling Using E-R Models 27
28 Some relationship examples? Identify and determine cardinality ratio? Student and Mentor Bill and Item Course and Professor Course and Text Book Vehicle and Owner Aug 14, 2008 Data Modeling Using E-R Models 28
29 Participation can be Total (mandatory) or Partial (optional) In our Customer-Account example- If customer record can exist in database without having associated with an account then participation of customer is partial otherwise total. Can Customer exist without associating with a account? Probably Yes. Can account exist without associating with a customer? Probably No. Partial Participation Total Participation Aug 14, 2008 Data Modeling Using E-R Models 29
30 Student-Program schema Participation of Student in Studies relationship is mandatory student has to study in a program. Participation of a Program can be optional we may not take admission in a program. Total Participatio n Partial Participation Aug 14, 2008 Data Modeling Using E-R Models 30
31 Student-Program schema This diagram lets us ensure that we are modeling right business rule in the database Business rules are modeled as constraints in data models Cardinality and Participation are important constraints in Data Model Here we see that One student can participate only once this means we are modeling the business rule that One Student can study in one program only And, One Program can have many students. That is Right We can easily note that Participation of student is Mandatory While it is optional for Program. Aug 14, 2008 Data Modeling Using E-R Models 31
32 Some relationship examples? Identify and determine cardinality ratio? Student and Mentor Bill and Item Course and Professor Course and Text Book Vehicle and Owner Aug 14, 2008 Data Modeling Using E-R Models 32
33 Exercises Case: Simple Trading Company Case: My Books Database Aug 14, 2008 Data Modeling Using E-R Models 33
34 Understand Cardinality Ratio Two of looking at- To how many entities an entity can be associated with other side entity type How many times an entity participates into the relationship Aug 14, 2008 Data Modeling Using E-R Models 34
35 Cardinality Constraint (Ratio) One to One: Any entity (from any side) is associated with at most one entity in other side One to Many: one side entity can be associated with multiple entities from other side Many to Many: any entity from any side can be associated with multiple entities from other side 1 N Aug 14, 2008 Data Modeling Using E-R Models 35
36 Cardinality Constraint (Ratio) another way of looking at One to One: any entity (from any side) can participate at most once in the relationship One to Many: one side entity participates multiple times in the relationship Many to Many: any entity from any side participates multiple times in the relationship 1 N Aug 14, 2008 Data Modeling Using E-R Models 36
37 Structural Constraints Cardinality ratio and participation constraints in together are also called structural constraints. Second approach of looking at cardinality constraints evolves another way of depicting structural constraints in ER Diagram Aug 14, 2008 Data Modeling Using E-R Models 37
38 Another way of showing structural constraint Min possibility a customer (entity) can participate in holds relationship is 0, and Max possibility it can participate in holds relationship is N, and same way for Account entity type it is one and only one (0,n) (1,1) Aug 14, 2008 Data Modeling Using E-R Models 38
39 Another way of showing structural constraint Many to Many Min possibility an Account (entity) can participate in holds relationship is 1, and Max possibility it can can participate in holds relationship is N (0,n) (1,N) Aug 14, 2008 Data Modeling Using E-R Models 39
40 Structural constraints Note that this notation takes care of participation constraints as well. Having min participation zero is partial participation while, and having > 0 is total participation Aug 14, 2008 Data Modeling Using E-R Models 40
41 Recursive Relationship Entity having relationship with itself There can be many situations like this Employee supervises another employee One citizen is spouse of another citizen One course has pre-requisite of another course One category is parent of another category Aug 14, 2008 Data Modeling Using E-R Models 41
42 Recursive Relationship r1: e5 is supervisor of e1 r2: e1 is supervisor of e2 r3: e1 is supervisor of e2 r4: e5 is supervisor of e4 r5: e4 is supervisor of e6 r6: e4 is supervisor of e7 Employee Employee e1 e2 e3 e4 e5 e6 e7 Supervises Supervisor r1 r2 r3 r4 r5 r6 Roles: Supervisor (Green), Subordinate (Red) Aug 14, 2008 Data Modeling Using E-R Models 42
43 What about Cardinality and participation constraints in Supervises relationship..? Aug 14, 2008 Data Modeling Using E-R Models 43
44 Weak Entity Types Entity that do not have key attributes of their own are called weak entity types These are attached to some regular/strong entity type, we call that entity as identifying or owner entity type, and we call the relationship between weak entity type and its owner entity type, identifying relationship. A weak entity type always has total participation in its identifying relationship. Examples: Experience History of an Employee Dependents of an Employee Aug 14, 2008 Data Modeling Using E-R Models 44
45 Weak Entity Types Identifying Relationship Owner Entity Weak Entity Aug 14, 2008 Data Modeling Using E-R Models 45
46 In some cases, database designer may choose to express weak entity as multi-value composite attribute of the owner entity type However, this approach could only be possible if week entity does not participate in any other relationship than identifying relationships. Aug 14, 2008 Data Modeling Using E-R Models 46
47 ER Creating Guidelines As a thumb rule Nouns and Objects are candidate for Entities and Verbs for relationships in a problem description. Below are some rules suggested in [Entity-Relationship Modeling, A Practical how-to-guide, Yeol Song and Kristin Froehlich, IEEE Potentials, Dec-94/Jan-95, pg#29-34] 3. Every entity type should be important in its own right within the problem domain Address can not be an entity City, can be Yes or No Aug 14, 2008 Data Modeling Using E-R Models 47
48 ER Creating Guidelines 1. IF an object type (noun) has only one property to store THEN it is an attribute of another entity type ELSE it is an entity type- Suppose naukari.com wants to store skills of job seekers, can it be attribute or entity? Can be Yes or No If we want to store more meaning to skills, For example C++ : which platform, which functional Area etc., then it becomes entity, otherwise just attribute Aug 14, 2008 Data Modeling Using E-R Models 48
49 ER Creating Guidelines 1. IF an object type has only one data instance THEN do not model as an entity type example Director, DAIICT 2. IF a relationship needs to have a unique identifier THEN model it as an entity type Consider products are billed to customers, appear like relationship, but bills are numbered, and uniquely identified, candidate for entity type. Similarly Pays, Orders look like relationships but are possibly entities depends on business context 3. IF any verb refers to nouns which are not selected as entity types THEN do not model it as a relationship type Students Fills Enrollment Form. Here neither Enrollment form is entity nor FillsIn is a relationship Aug 14, 2008 Data Modeling Using E-R Models 49
50 ER Creating Guidelines Below are rules related to cardinality and participation. Suppose Entity A relates to entity B, then 2. For each A, what is the maximum number of Bs that may be related to it? 3. IF A can exist without being associated with a B THEN A has partial (optional) participation ELSE A has total (mandatory) participation. Aug 14, 2008 Data Modeling Using E-R Models 50
51 Example - Student Election scenario Consider There are some positions for which voting needs to be done For each position there can be N candidates When voting takes place we want to make sure that no body votes twice. Aug 14, 2008 Data Modeling Using E-R Models 51
52 Example - Student Election scenario extended How our ERD will change if we have some requirements/constraints- Suppose we want to keep track of who has voted to whom Suppose there is constraints that for some positions students from certain program can only vote Suppose there is another constraint that for some position students from certain program can only be candidates Aug 14, 2008 Data Modeling Using E-R Models 52
53 Home Exercises Elmasri/Navathe 4 th ed Unsolved Exercise: 3.21, 3.22 Aug 14, 2008 Data Modeling Using E-R Models 53
54 Ternary Relationship Three entities are participating in a relationship Most case binary suffices, but ternary/n-ary comes in some cases Aug 14, 2008 Data Modeling Using E-R Models 54
55 An example of ternary Relationship Aug 14, 2008 Data Modeling Using E-R Models 55
56 Enhanced Features in ER modeling Primarily addresses issues related to generalization/specialization, aggregation, which were missing in Chen s original ER model Features suggested by Elmasri/Navathe appears to be complete covering most aspects of generalization/specialization, aggregation Aug 14, 2008 Data Modeling Using E-R Models 56
57 Aggregation Let us take an Example Company-Interview-Applicant- Offer situation Aug 14, 2008 Data Modeling Using E-R Models 57
58 Aggregation Aug 14, 2008 Data Modeling Using E-R Models 58
59 Thanks Aug 14, 2008 Data Modeling Using E-R Models 59
Objectives of logical design... Transforming the ERD diagram into relations. Relational database components. Mapping a composite attribute
Logical database design and the relational model Objectives of logical design... Translate the conceptual design into a logical database design that can be implemented on a chosen DBMS Input: conceptual
More informationUsing High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys
Chapter 7: Data Modeling Using the Entity- Relationship (ER) Model Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys
More informationOverview of Database Design Process Example Database Application (COMPANY) ER Model Concepts
Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity Types, Value Sets, and Key Attributes Relationships and Relationship
More informationTHE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E)
THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E) 2 CHAPTER 7 OUTLINE Using High-Level, Conceptual Data Models for Database Design Entity-Relationship (ER) model Popular high-level conceptual
More informationDefinition. 02. Data Modeling. Example ABC Company Database. Data Modeling Importance
0. Data Modeling Definition Data Model = a collection of concepts that can be used to describe the structure of a database Structure = data types, relationships, constraints that should hold for that data
More information1/24/2012. Chapter 7 Outline. Chapter 7 Outline (cont d.) CS 440: Database Management Systems
CS 440: Database Management Systems Chapter 7 Outline Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys Relationship
More informationLECTURE 3: ENTITY-RELATIONSHIP MODELING
LECTURE 3: ENTITY-RELATIONSHIP MODELING Ref. Chapter11 + Appendix F from Database Systems: A Practical Approach to Design, Implementation and Management. Thomas Connolly, Carolyn Begg. 1 IS220 : D a t
More informationChapter Outline. Note 1. Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts
Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity Types, Value Sets, and Key Attributes Relationships and Relationship
More informationIS 263 Database Concepts
IS 263 Database Concepts Lecture 1: Database Design Instructor: Henry Kalisti 1 Department of Computer Science and Engineering The Entity-Relationship Model? 2 Introduction to Data Modeling Semantic data
More informationConceptual Database Design. COSC 304 Introduction to Database Systems. Entity-Relationship Modeling. Entity-Relationship Modeling
COSC 304 Introduction to Database Systems Entity-Relationship Modeling Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Conceptual Database Design Conceptual database design
More informationLecture3: Data Modeling Using the Entity-Relationship Model.
College of Computer and Information Sciences - Information Systems Dept. Lecture3: Data Modeling Using the Entity-Relationship Model. Ref. Chapter12 Prepared by L. Nouf Almujally & Aisha AlArfaj Rev. by
More informationDatabase Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 4 Entity Relationship (ER) Modeling Objectives In this chapter, students will learn: The main characteristics of entity relationship
More informationEntity Relationship Data Model. Slides by: Shree Jaswal
Entity Relationship Data Model Slides by: Shree Jaswal Topics: Conceptual Modeling of a database, The Entity-Relationship (ER) Model, Entity Types, Entity Sets, Attributes, and Keys, Relationship Types,
More informationA l Ain University Of Science and Technology
A l Ain University Of Science and Technology 4 Handout(4) Database Management Principles and Applications The Entity Relationship (ER) Model http://alainauh.webs.com/ http://www.comp.nus.edu.sg/~lingt
More informationcourse 3 Levels of Database Design CSCI 403 Database Management Mines Courses ERD Attributes Entities title 9/26/2018
3 Levels of Database Design CSCI 403 Database Management 13 Database Modeling with Entity-Relationship Diagrams Conceptual (this lecture) Understand data entities & relationships between them Communication
More informationDATA MODELING USING THE ENTITY-RELATIONSHIP MODEL. 1 Powered by POeT Solvers Limited
DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL 1 www.pmtutor.org Powered by POeT Solvers Limited 2 www.pmtutor.org Powered by POeT Solvers Limited Entity-Relationship (ER) Model The ER model is a high-level
More informationA l Ain University Of Science and Technology
A l Ain University Of Science and Technology 4 Handout(4) Database Management Principles and Applications The Entity Relationship (ER) Model http://alainauh.webs.com/ 1 In this chapter, you will learn:
More informationCS 405G: Introduction to Database Systems
CS 405G: Introduction to Database Systems Entity Relationship Model Jinze Liu 9/11/2014 1 CS685 : Special The UNIVERSITY Topics in Data of Mining, KENTUCKY UKY Review A database is a large collection of
More informationData Modeling Using the Entity-Relationship (ER) Model
CHAPTER 3 Data Modeling Using the Entity-Relationship (ER) Model Copyright 2017 Ramez Elmasri and Shamkant B. Navathe Slide 1-1 Chapter Outline Overview of Database Design Process Example Database Application
More informationDatabase Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams
Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Data Modeling with Entity Relationship Diagrams Objectives In this chapter, students will learn: The
More informationEECS 647: Introduction to Database Systems
EECS 647: Introduction to Database Systems Instructor: Luke Huan Spring 2009 Administrative I have communicated with KU Bookstore inquring about the text book status. Take home background survey is due
More informationDatabase Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams
Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Data Modeling with Entity Relationship Diagrams Objectives In this chapter, students will learn: The
More informationDatabase Applications (15-415)
Database Applications (15-415) The Entity Relationship Model Lecture 2, January 15, 2014 Mohammad Hammoud Today Last Session: Course overview and a brief introduction on databases and database systems
More informationDatabase Systems: Design, Implementation, and Management Tenth Edition. Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 4 Entity Relationship (ER) Modeling 4.1 The Entity Relationship Model (ERM) ER model forms the basis of an ER diagram ERD
More informationConceptual Data Models for Database Design
Conceptual Data Models for Database Design Entity Relationship (ER) Model The most popular high-level conceptual data model is the ER model. It is frequently used for the conceptual design of database
More information2. DatabaseDesign. Master I Software Engineering. Dr. Imed Bouchrika Dept of Mathematics & Computer Science University of Souk-Ahras
2. DatabaseDesign Master I Software Engineering Dr. Imed Bouchrika Dept of Mathematics & Computer Science University of Souk-Ahras imed@imed.ws Imed Bouchrika. Advanced Databases, Uni of Souk-Ahras 2013-2014
More informationConceptual Data Modeling
Conceptual Data odeling A data model is a way to describe the structure of the data. In models that are implemented it includes a set of operations that manipulate the data. A Data odel is a combination
More informationChapter 4. In this chapter, you will learn:
Chapter Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel 1 In this chapter, you will learn: The main characteristics of entity
More informationSystem Analysis And Design Methods ENTITY RELATIONSHIP DIAGRAM (ERD) Prof. Ali Khaleghi Eng. Hadi Haedar
1 System Analysis And Design Methods ENTITY RELATIONSHIP DIAGRAM (ERD) Prof. Ali Khaleghi Eng. Hadi Haedar Overview DATABASE ARCHITECTURE 2 External level concerned with the way individual users see the
More informationMore on the Chen Notation
More on the Chen Notation Reference: http://www.vertabelo.com/blog/technical-articles/chen-erd-notation Peter Chen, who developed entity-relationship modeling and published his work in 1976, was one of
More informationDatabase Management System 6 ER Modeling...
Database Management System 6 School of Computer Engineering, KIIT University 6.1 A key allows us to identify a set of attributes that suffice to distinguish entities from each other A key is a property
More informationChapter 3 Data Modeling Using the Entity- Relationship (ER) Model
Chapter 3 Data Modeling Using the Entity- Relationship (ER) Model Elmasri/Navathe, Fundamentals of Database Systems, Fourth Edition Chapter 3-3 Chapter Outline Example Database Application (COMPANY) ER
More informationIntro to DB CHAPTER 6
Intro to DB CHAPTER 6 DATABASE DESIGN &THEER E-R MODEL Chapter 6. Entity Relationship Model Design Process Modeling Constraints E-R Diagram Design Issues Weak Entity Sets Extended E-R Features Design of
More informationCopyright 2016 Ramez Elmasr and Shamkant B. Navathei
CHAPTER 3 Data Modeling Using the Entity-Relationship (ER) Model Slide 1-2 Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes
More informationOverview of Database Design Process. Data Modeling Using the Entity- Relationship (ER) Model. Two main activities:
1 / 14 Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity Types, Value Sets, and Key Attributes Relationships and Relationship Types
More informationCOSC 304 Introduction to Database Systems. Entity-Relationship Modeling
COSC 304 Introduction to Database Systems Entity-Relationship Modeling Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Conceptual Database Design Conceptual database design
More informationDatabase Systems ER Model. A.R. Hurson 323 CS Building
ER Model A.R. Hurson 323 CS Building Database Design Data model is a group of concepts that helps to specify the structure of a database and a set of associated operations allowing data retrieval and data
More informationAdvance Database Management System
Advance Database Management System Conceptual Design Lecture- A simplified database design process Database Requirements UoD Requirements Collection and Analysis Functional Requirements A simplified database
More informationChapter 6: Entity-Relationship Model
Chapter 6: Entity-Relationship Model Database System Concepts, 5th Ed. See www.db-book.com for conditions on re-use Chapter 6: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram
More informationElements of the E-R Model
Chapter 3: The Entity Relationship Model Agenda Basic Concepts of the E-R model (Entities, Attributes, Relationships) Basic Notations of the E-R model ER Model 1 Elements of the E-R Model E-R model was
More informationChapter 2: Entity-Relationship Model. Entity Sets. Entity Sets customer and loan. Attributes. Relationship Sets. A database can be modeled as:
Chapter 2: Entity-Relationship Model Entity Sets Entity Sets Relationship Sets Design Issues Mapping Constraints Keys E-R Diagram Extended E-R Features Design of an E-R Database Schema Reduction of an
More informationConceptual Modeling in ER and UML
Courses B0B36DBS, A7B36DBS: Database Systems Practical Classes 01 and 02: Conceptual Modeling in ER and UML Martin Svoboda 21. and 28. 2. 2017 Faculty of Electrical Engineering, Czech Technical University
More informationChapter 2: Entity-Relationship Model
Chapter 2: Entity-Relationship Model! Entity Sets! Relationship Sets! Design Issues! Mapping Constraints! Keys! E-R Diagram! Extended E-R Features! Design of an E-R Database Schema! Reduction of an E-R
More informationE-R Model. Hi! Here in this lecture we are going to discuss about the E-R Model.
E-R Model Hi! Here in this lecture we are going to discuss about the E-R Model. What is Entity-Relationship Model? The entity-relationship model is useful because, as we will soon see, it facilitates communication
More informationMIT Database Management Systems Lesson 03: Entity Relationship Diagrams
MIT 22033 Database Management Systems Lesson 03: Entity Relationship Diagrams By S. Sabraz Nawaz Senior Lecturer in MIT, FMC, SEUSL & A.J.M.Hasmy FMC, SEUSL ER - Model The entity-relationship (ER) data
More informationData Analysis 1. Chapter 2.1 V3.1. Napier University Dr Gordon Russell
Data Analysis 1 Chapter 2.1 V3.1 Copyright @ Napier University Dr Gordon Russell Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is
More informationEntity Relationship Modelling
Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is a relationship? Entities, attributes, and relationships in a system The degree of
More informationEntity Relationship Diagram (ERD): Basics
Entity Relationship Diagram (ERD): Basics CIS 3730 Designing and Managing Data J.G. Zheng Fall 2010 Overview: 3 Level Database Design Creating an Entity Relationship Diagram (ERD) and associated data dictionary
More informationDatabase Systems. Overview - important points. Lecture 5. Some introductory information ERD diagrams Normalization Other stuff 08/03/2015
Lecture 5 Database Systems Instructor: M.Imran Khalil Imrankhalil3@gmail.com Resource:Imrankhalil3.wordpress.com University of Sargodha Canal Campus Lahore Overview - important points Some introductory
More informationCSE 880:Database Systems. ER Model and Relation Schemas
CSE 880:Database Systems ER Model and Relation Schemas 1 Major Steps for Database Design and Implementation 1. Requirements Collection and Analysis: Produces database requirements such as types of data,
More informationDATABASE SYSTEMS. Chapter 5 Entity Relationship (ER) Modelling DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT
DATABASE SYSTEMS DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT Chapter 5 Entity Relationship (ER) Modelling 1 Coronel & Crockett 978184480731) In this chapter, you will
More informationChapter 6: Entity-Relationship Model
Chapter 6: Entity-Relationship Model Database System Concepts, 5th Ed. See www.db-book.com for conditions on re-use Chapter 6: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram
More informationDatabase Management Systems LECTURE NOTES 2
Database Management Systems LECTURE NOTES 2 Relation: A table; Tuple: A row in a table; Attribute: A column in a table Degree: number of attributes; Cardinality: number of tuples Entity and Entity Sets:
More informationChapter # 4 Entity Relationship (ER) Modeling
Chapter # 4 Entity Relationship (ER) Modeling Entity Relationship (ER) Modeling ER model forms the basis of an ER diagram ERD represents conceptual database as viewed by end user ERDs depict database s
More informationII. Review/Expansion of Definitions - Ask class for definitions
CS352 Lecture - The Entity-Relationship Model last revised July 25, 2008 Objectives: 1. To discuss using an ER model to think about a database at the conceptual design level. 2. To show how to convert
More informationChapter 6: Entity-Relationship Model
Chapter 6: Entity-Relationship Model Database System Concepts, 5th Ed. See www.db-book.com for conditions on re-use Chapter 6: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram
More informationEntity Relationship Diagram (ERD) Dr. Moustafa Elazhary
Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary Data Modeling Data modeling is a very vital as it is like creating a blueprint to build a house before the actual building takes place. It is built
More informationChapter 2 Entity-Relationship Data Modeling: Tools and Techniques. Fundamentals, Design, and Implementation, 9/e
Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques Fundamentals, Design, and Implementation, 9/e Three Schema Model ANSI/SPARC introduced the three schema model in 1975 It provides a framework
More informationCS352 Lecture - The Entity-Relationship Model
CS352 Lecture - The Entity-Relationship Model Objectives: last revised August 3, 2004 1. To introduce the concepts of entity, relationship, key 2. To show how to convert an ER design to a set of tables.
More informationData Modeling Using the Entity- Relationship Model Design & Analysis of Database Systems
Data Modeling Using the Entity- Relationship Model 406.426 Design & Analysis of Database Systems Jonghun Park jonghun@snu.ac.kr Dept. of Industrial Engineering Seoul National University outline overview
More information1. Considering functional dependency, one in which removal from some attributes must affect dependency is called
Q.1 Short Questions Marks 1. Considering functional dependency, one in which removal from some attributes must affect dependency is called 01 A. full functional dependency B. partial dependency C. prime
More informationNon-overlappingoverlapping. Final outcome of the worked example On pages R&C pages R&C page 157 Fig 3.52
Objectives Computer Science 202 Database Systems: Entity Relation Modelling To learn what a conceptual model is and what its purpose is. To learn the difference between internal models and external models.
More informationChapter 2 ENTITY RELATIONSHIP MODEL
INTRODUCTION Chapter 2 ENTITY RELATIONSHIP MODEL Data model is used to describe data, data relationship and constraints on data. A number of different data models have proposed. They can broadly be classified
More informationIntroduction to Database Design. Dr. Kanda Runapongsa Dept of Computer Engineering Khon Kaen University
Introduction to Database Design Dr. Kanda Runapongsa (krunapon@kku.ac.th) Dept of Computer Engineering Khon Kaen University Overview What are the steps in designing a database? Why is the ER model used
More informationRelational Model (cont d) & Entity Relational Model. Lecture 2
Relational Model (cont d) & Entity Relational Model Lecture 2 Relational Database Operators Relational algebra Defines theoretical way of manipulating table contents using relational operators: SELECT
More informationRepresent entities and relations with diagrams
LEARNING OBJECTIVES Define data modeling terms Describe E-R Model Identify entities and relations Represent entities and relations with diagrams WHAT IS DATA MODELING? A data model is a collection of concepts
More informationER-to-Relational Mapping
Lecture 9 1 1. Context 2. The Algorithm Outline 2 Database Design and Implementation Process 3 Data Models 4 Example ERD 5 Resulting Relational Schema 6 Step 1: Regular Entity Types i. For each regular/strong
More informationER modeling. Lecture 4
ER modeling Lecture 4 1 Copyright 2007 STI - INNSBRUCK Today s lecture ER modeling Slides based on Introduction to Entity-relationship modeling at http://www.inf.unibz.it/~franconi/teaching/2000/ct481/er-modelling/
More information0. Database Systems 1.1 Introduction to DBMS Information is one of the most valuable resources in this information age! How do we effectively and efficiently manage this information? - How does Wal-Mart
More informationDATABASE DESIGN I - 1DL300
DATABASE DESIGN I - 1DL300 Fall 2009 An introductury course on database systems http://user.it.uu.se/~udbl/dbt1-ht2009/ alt. http://www.it.uu.se/edu/course/homepage/dbastekn/ht09/ Kjell Orsborn Uppsala
More informationThe Entity Relationship Model
The Entity Relationship Model CPS352: Database Systems Simon Miner Gordon College Last Revised: 2/4/15 Agenda Check-in Introduction to Course Database Environment (db2) SQL Group Exercises The Entity Relationship
More informationDATABASE DESIGN I - 1DL300
DATABASE DESIGN I - 1DL300 Fall 2010 An introductory course on database systems http://www.it.uu.se/edu/course/homepage/dbastekn/ht10/ Manivasakan Sabesan Uppsala Database Laboratory Department of Information
More informationOverview. Introduction to Database Design. ER Model. Database Design
Introduction to Database Design UVic C SC 370 Dr. Daniel M. German Department of Computer Science Overview What are the steps in designing a database? What is the entity-relationship (ER) model? How does
More informationOverview of db design Requirement analysis Data to be stored Applications to be built Operations (most frequent) subject to performance requirement
ITCS 3160 Data Base Design and Implementation Jing Yang 2010 Fall Class 12: Data Modeling Using the Entity-Relationship (ER) Model Overview of db design Requirement analysis Data to be stored Applications
More informationCOMP Instructor: Dimitris Papadias WWW page:
COMP 5311 Instructor: Dimitris Papadias WWW page: http://www.cse.ust.hk/~dimitris/5311/5311.html Textbook Database System Concepts, A. Silberschatz, H. Korth, and S. Sudarshan. Reference Database Management
More informationLecture 14 of 42. E-R Diagrams, UML Notes: PS3 Notes, E-R Design. Thursday, 15 Feb 2007
Lecture 14 of 42 E-R Diagrams, UML Notes: PS3 Notes, E-R Design Thursday, 15 February 2007 William H. Hsu Department of Computing and Information Sciences, KSU KSOL course page: http://snipurl.com/va60
More informationDatabase Management System (15ECSC208) UNIT I: Chapter 1: Introduction to DBMS and ER-Model
Database Management System (15ECSC208) UNIT I: Chapter 1: Introduction to DBMS and ER-Model Data Modeling Using the Entity Relationship Model Part 3 Review Conceptual Schema Outcome of the high-level
More informationContents. Database. Information Policy. C03. Entity Relationship Model WKU-IP-C03 Database / Entity Relationship Model
Information Policy Database C03. Entity Relationship Model Code: 164323-03 Course: Information Policy Period: Spring 2013 Professor: Sync Sangwon Lee, Ph. D 1 Contents 01. Overview of Database Design 02.
More informationChapter 3. Data Modeling Using the Entity-Relationship (ER) Model (from E&N and my editing)
Chapter 3 Data Modeling Using the Entity-Relationship (ER) Model (from E&N and my editing) Prof.Peter Chen The founder ER Data Model PhD: Harvard 2 Chapter Outline Phase of Database Design Example Database
More informationDatabase Management Systems. Chapter 2 Part 2
Database Management Systems Chapter 2 Part 2 Introduction to Database Design Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Class Hierarchies Classify entities sets into Super-class and
More informationChapter 7: Entity-Relationship Model
Chapter 7: Entity-Relationship Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram
More informationSOFTWARE ENGINEERING Prof.N.L.Sarda Computer Science & Engineering IIT Bombay. Lecture #10 Process Modelling DFD, Function Decomp (Part 2)
SOFTWARE ENGINEERING Prof.N.L.Sarda Computer Science & Engineering IIT Bombay Lecture #10 Process Modelling DFD, Function Decomp (Part 2) Let us continue with the data modeling topic. So far we have seen
More informationAgent 7 which languages? skills?
Agent 7 which languages? skills? select * from languagerel where agent_id = 7 lang_id agent_id 3 7 14 7 19 7 20 7 agent 7 speaks 4 languages select * from skillrel where agent_id = 7 skill_id agent_id
More informationChapter 7: Entity-Relationship Model
Chapter 7: Entity-Relationship Model Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram
More informationThe DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.
Managing Data Data storage tool must provide the following features: Data definition (data structuring) Data entry (to add new data) Data editing (to change existing data) Querying (a means of extracting
More informationMIS Database Systems Entity-Relationship Model.
MIS 335 - Database Systems Entity-Relationship Model http://www.mis.boun.edu.tr/durahim/ Ahmet Onur Durahim Learning Objectives Database Design Main concepts in the ER model? ER Diagrams Database Design
More informationLAB 2 Notes. Conceptual Design ER. Logical DB Design (relational) Schema Refinement. Physical DD
LAB 2 Notes For students that were not present in the first lab TA Web page updated : http://www.cs.ucr.edu/~cs166/ Mailing list Signup: http://www.cs.ucr.edu/mailman/listinfo/cs166 The general idea of
More informationNotes. These slides are based on a slide set provided by Prof. M. Tamer Öszu. CS 640 E-R Model Winter / 23. Notes
The Entity-Relationship Model Olaf Hartig David R. Cheriton School of Computer Science University of Waterloo CS 640 Principles of Database Management and Use Winter 203 These slides are based on a slide
More informationThe Entity-Relationship Model. Overview of Database Design
The Entity-Relationship Model Chapter 2, Chapter 3 (3.5 only) Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Overview of Database Design Conceptual design: (ER Model is used at this stage.)
More informationDatabase Design. ER Model. Overview. Introduction to Database Design. UVic C SC 370. Database design can be divided in six major steps:
Database Design Database design can be divided in six major steps: Requirements analysis Conceptual Database design (mostly done using the ER model) Logical Database design Schema refinement Physical Database
More informationDATABASDESIGN FÖR INGENJÖRER F
1 DATABASDESIGN FÖR INGENJÖRER - 1056F Sommar 2005 En introduktionskurs i databassystem http://user.it.uu.se/~udbl/dbt-sommar05/ alt. http://www.it.uu.se/edu/course/homepage/dbdesign/st05/ Kjell Orsborn
More informationRelated download: Instructor Manual for Modern Database Management 12th Edition by Hoffer Venkataraman Topi (Case studies included)
Modern Database Management Test Bank, 12e (Hoffer) Completed download: https://testbankarea.com/download/modern-database-management-12thedition-test-bank-hoffer-venkataraman-topi/ Related download: Instructor
More informationA database can be modeled as: + a collection of entities, + a set of relationships among entities.
The Relational Model Lecture 2 The Entity-Relationship Model and its Translation to the Relational Model Entity-Relationship (ER) Model + Entity Sets + Relationship Sets + Database Design Issues + Mapping
More informationChapter 2 Conceptual Modeling. Objectives
Chapter 2 Conceptual Modeling Basic Entity Relationship Diagrams 1 Objectives Definition of terms Importance of data modeling Write good names and definitions for entities, relationships, and attributes
More informationDatabase Applications (15-415)
Database Applications (15-415) The Entity Relationship Model Lecture 2, January 12, 2016 Mohammad Hammoud Today Last Session: Course overview and a brief introduction on databases and database systems
More informationDatabase Design with Entity Relationship Model
Database Design with Entity Relationship Model Vijay Kumar SICE, Computer Networking University of Missouri-Kansas City Kansas City, MO kumarv@umkc.edu Database Design Process Database design process integrates
More informationThe Entity-Relationship Model. The Entity-Relationship model. The ER model. The Entity-Relationship model. E-R Model Constructs. E-R Model Constructs
The Entity-Relationship Model Conceptual Data Modeling The Entity-Relationship model The E-R model is a detailed, logical representation of the data for an organisation or business area It should be understandable
More informationInstitute of Southern Punjab, Multan
Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. and Networks) Honors: Magna Cumm Laude Honors Degree Gold Medalist! Blog Url: noumanfarooqatisp.wordpress.com
More informationFull file at
Modern Database Management, 10e (Hoffer/Ramesh/Topi) Chapter 2 Modeling Data in the Organization 1) Data modeling may be the most important part of the systems development process because: A) data characteristics
More informationChapter 7: Entity-Relationship Model
Chapter 7: Entity-Relationship Model, 7th Ed. See www.db-book.com for conditions on re-use Chapter 7: Entity-Relationship Model Design Process Modeling Constraints E-R Diagram Design Issues Weak Entity
More information