Institute of Southern Punjab, Multan

Size: px
Start display at page:

Download "Institute of Southern Punjab, Multan"

Transcription

1 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

2 Database Systems Data Modeling Lecture#4 2

3 Lecture 4: Data Modeling Data Modeling/Database Design Entity Relationship Diagram (ERD) Data Dictionary Relational Schema Diagram 3

4 Data Modeling/Database Design 4

5 Data Modeling Database Modeling follows the analysis phase. Documenting rules and policies of an organization that govern data and implementing them into a design which is an Entity Relationship Diagram (ERD). 1. Business Rule 2. Conceptual Data Modeling 5

6 Database Design/Data Modeling The Data Modeling basically stores the Conceptual Model of the database and the relationships between data that should be stored to meet the user s requirements in the form of an Entity Relationship Diagram (ERD) and must be read as per business rules. Than; Database Design is stored in the Relational Schema Diagram (skeleton structure of the entire transformed ERD), which is in turn stored in the Data Dictionary (Collection of descriptions of the data objects or items in a data model for the benefit of programmers and others who need to refer to them) 6

7 Continued... Top-Down Approach: - Design by Analysis Only Database Administrator s can firstly design the structure of the database (makes an ERD in Conceptual Data Modeling Phase) and than transforms it into Relations in Logical Data Modeling Phase and than afterwards code that structure of transformed ERD in Implementation Phase using a DBMS (MySQL in XAMPP) making a Database System; This approach is termed as Design by Analysis. A good design must reduces duplication of data, reduces anomalies in data, we must makes it in 3 rd Normal Form (3-NF) for commercial applications. In Physical Design phase; It requires a knowledge of the specific DBMS that will be used to implement the database (data types, triggers, indexes etc). Bottom-Up Approach: - Design by Synthesis 7

8 Database Modeling It is a very important process because the designing of the application provides us the basis for running our database system. If the database is not designed properly, the implementation of the system can not be done properly. Generally, the design of the database is represented graphically because it provides an ease in design and adds flexibility for the understanding of the system easily. 8

9 Continued... 9

10 A GOOD Business Rule Is: 10

11 Business Rules 11

12 CLASS EXERCISE (ERD Reading as per Business Rule) 12

13 SOLUTION OF CLASS EXCERCISE 13

14 ERD Reading 1. A STUDENT may be assigned to some POST like Monitor, Perfect, and each POST must be responsible by at most one STUDENT. a) One (Optional) to One (Optional) b) Many (Optional) to One (Mandatory) c) One (Mandatory) to Many (Mandatory) d) Many (Mandatory) to Many (Optional) Correct Answer is:- Many (Optional) to One (Mandatory) Logically Explain why??? 14

15 Continued 2. An EMPLOYEE must be assigned by only one PARKING_PLACE, and a PARKING_PLACE must be assigned to Only one EMPLOYEE a) One (Optional) to One (Optional) b) Many (Mandatory) to One (Mandatory) c) One (Mandatory) to One (Mandatory) d) Many (Mandatory) to Many (Optional) Correct Answer is:- One (Mandatory) to One (Mandatory) Logically Explain why??? 15

16 Continued 3. An EMPLOYEE of an ISP Organization must contain at least two number of CAR s, and each pair of CAR must be assigned to only one EMPLOYEE a) One (Mandatory) to One (Optional) b) One (Mandatory) to Many (Mandatory) c) One (Mandatory) to One (Optional) d) Many (Optional) to One (Mandatory) Correct Answer is:- One (Mandatory) to Many (Mandatory) Logically Explain why??? 16

17 Continued 4. A STUDENT may register for at least one COURSE, and each COURSE may have many STUDENTS a) One (Optional) to One (Optional) b) Many (Optional) to One (Mandatory) c) One (Optional) to One (Mandatory) d) Many (Optional) to Many (Optional) Correct Answer is:- Many (Optional) to Many (Optional) Logically Explain why??? 17

18 Entity Relationship Diagram (ERD) 18

19 Standard used for Database System Designing Standards are used for describing the design process on some predefined rules. If there is no standard available for designing a specific systems; Then everyone will have to use its own design notation, and a notation used by one designer may not be understandable to the another one. This misunderstanding can be more drastic if both the designers are working for the development of the same system. Tools/Simulator can also help the designer and the user to mutually agree on a specific design. 19

20 Continued Peter Chen developed ERDs in 1976 and introduces standard to design database ERD Model. We will be using Information Engineering Style and Crow s Foot Notation through out this semester. 20

21 E-R Model Constructs 21

22 Components of ER Diagram The ER data model supports following major constructs: 1. The Entity 2. Attribute 3. Relationship 22

23 The Entity Entity is basic building block of the ER data model. The term entity is used in three different meanings or for three different terms and that are: 1. Entity Type 2. Entity Instance 3. Entity Set 23

24 Entity Type Anything that receives or generates data from or to the system is an entity. Entity Type is transformed into a Table in any DBMS engine. They are typically singular nouns, e.g. customer, supervisor, location or promotion. Entity type is name assigned to a collection of properties of different things existing in an environment. 24

25 Continued Generally, the entity types and their properties are established by nature, by very existence of the things. For example, a bulb is an electric accessory, a cricket bat is a sports item, a computer is an electronic device, a shirt is a clothing item etc. 25

26 Classification Of Entity Types Entity types (ETs) can be classified into regular ETs or weak ETs. Regular ETs are also called strong or independent ETs, whereas weak ETs are also called dependent ETs. 26

27 Weak Entity Types It depend on some other entity type and have no meaning in the diagram without depending on another entity. Example: Course (Course cannot be taught without teacher) An entity type whose instances cannot exist without being linked with instances of some other entity type, i.e., they cannot exist independently. For example, in an organization we want to maintain data about the vehicles owned by the employees. Now, a particular vehicle can exist in this organization only if the owner already exists there as employee. 27

28 Continued Similarly, if employee leaves the job and the organization decides to delete the record of the employee then the record of the vehicle will also be deleted. Since, Entity cannot exist without being linked to an instance of employee. This type of entity is called as weak entity or dependent entity. 28

29 Strong Entity Types An entity type whose instances can exist independently, that is, without being linked to the instances of any other entity type is called strong or regular entity type. A major property of the strong entity types is that they have their own identification, which is not always the case with weak entity types. For example, employee in the previous example is an independent or strong entity type, since its instances can exist independently. 29

30 Entity Instance Each entity instance possesses certain values against the properties with the entity type to which it belongs. For example, In the given table on next slide; we have identified that entity type EMPLOYEE has name, father name, registration number, qualification, designation. Now, an instance of this entity type will have values against each of these properties, like (M. Sajjad, Abdul Rehman, EN-14289, BCS, and Programmer) may be one instance of entity type EMPLOYEE. There could be many others. Entity Instance is termed as Rows/Tuples or Records in any DBMS engine. 30

31 Continued The entity instance can be defined as a name/label assigned to items/objects that exist in an environment and that have similar properties. 31

32 Continued 32

33 Entity Set A group of entity instances of a particular entity type is called an entity set. For example, all employees of an organization form an entity set. Like all students, all courses, all of them form entity set of different entity types. 33

34 Naming Entity Types Following are some recommendations for naming entity types. Good Designs usually follow these practices: 1. Singular Noun Recommended 2. Organization specific names, like CUSTOMER, CLIENT 3. Write in Capitals 4. Abbreviations can be used, be consistent. Avoid using confusing abbreviations. 34

35 Symbols for Entity Types A rectangle is used to represent an entity type in ER data model. For strong entity types rectangle with a single line is used whereas double lined rectangle is drawn to represent a weak entity type as is shown below: 35

36 Attribute Attributes are characteristics of an entity in a relationship. Attributes are termed as a Columns/Fields in any DBMS engine. An attribute of an entity is a defining property of that entity type. Entity instances of entity type STUDENT have attributes like stdregno, stdname etc. 36

37 Continued However, values of these attributes may be same or different. For example, all instances of the entity type STUDENT may have the attributes stdname, stdfathername, stdage; but the values against each of these attributes for each instance must be different in most of the cases. An attribute is identified by a name allocated to it and that has to be unique with respect to that entity type. It means one entity type cannot have two attributes with the same name. However, different entity types may have attributes with the same name. 37

38 Continued Standard of writing Attributes is: 1. The notation that has been adopted in this course as a Standard is that attribute name generally consists of two parts. The name is started in lower case, and usually consists of abbreviation of the entity types to which the attribute belongs. 2. Second part of the attribute name describes the purpose of attribute and only first letter is capital. For example employeename means name attribute of entity type EMPLOYEE, stdaddress means address attribute of the entity type STUDENT. 38

39 Domain of an Attribute As every Attribute has got a name. Next thing is that a domain is also associated with an attribute. These two things, name and the domain, are important part of an attribute. Domain is a form of a check on attribute that it cannot have a value outside of this set. Domain is known as Data Type in Physical Design (DS) 39

40 Continued Associating domain with an attribute helps in maintaining the integrity of the database, Since only legal values could be assigned to an attribute. Legal values mean the values that an attribute can have in an environment or system. For example, if we define a salary attribute of EMPLOYEE entity type to hold the salary of employees, the value assigned to this attribute should be numeric, it should not be assigned a value like date 10/10/2004, because they are not legal salary values. But, It must be numeric. 40

41 Continued Not only specify that the value of salary will be numeric but also associated with a range, a lower and upper limit. It reduces the chances of mistake. Domain is normally defined in form of data type and some additional constraints like the range constraint. Data type is defined as a set of values along with the operations that can be performed on those values. Some common data types are Integer, Float, AutoNumber, Date/Time, Currency etc. 41

42 Continued Another important thing is that once we associate a domain to an attribute, all the attributes in all entity instances of that entity type will have the values from the same domain. For example, it is not possible that in one entity instance the attribute salary has a value and in another instance the same attribute has a value All attribute will have values from same domain, values may be different or same, whatever, but the domain will be the same. 42

43 Types of Attributes Attributes may be of different types. They may be: 1. Simple or Composite 2. Single Valued or Multi-Valued 3. Stored or Derived 4. Key or Non-Key 5. Required or Optional 43

44 Simple or Composite An attribute that is a single whole is a simple attribute. The value of a simple attribute is considered as a whole, not as comprising of other attributes or components. For example, attributes stid of an entity type STUDENT are example of simple attribute. On the other hand if an attribute consists of collection of other simple attributes then it is called a composite attributes. For example, stadres attribute may comprise of houseno, streetno, areacode, city etc. In this case stadres will be a composite attribute. 44

45 Single Valued or Multi-Valued Attributes Some attribute have single value at a time, whereas some others may have multiple values. For example, hobby attribute of STUDENT or skills attribute of EMPLOYEE, since a student may have multiple hobbies, likewise an employee may have multiple skills so they are multi-valued attributes. On the other hand, name, father name, designation are generally single valued attributes. 45

46 Stored or Derived Attributes Normally attributes are stored attributes, that is, their values are stored and accessed from the database. However, sometimes attributes values are not stored, rather they are computed or derived based on some other value. For example, we may store the name, father name, address of employees, but age can be computed from date of birth. The advantage of declaring age as derived attribute is that whenever we will access the age, we will get the accurate, current age of employee since it will be computed right at the time when it is being accessed. 46

47 Class Activity (Classify the following Attributes) 1. empfirstname 2. emplastname 3. empidno 4. emphobbies 5. emppassword 47

48 Solution of Class Activity (Classification of Attributes) 1. empfirstname Simple, Required, Stored, Non Key, Single Valued 2. emplastname Simple, Optional, Stored, Non Key, Single Valued 3. empidno Key, Simple, Required, Stored, Single Valued 4. emphobbies Simple, Optional, Stored, Non Key, Multi Valued 5. emppassword Simple, Required, Stored, Non Key, Single Valued 48

49 Symbols for Attributes (Standard of Designing Attributes) 49

50 50

51 Relationships Relationships, which represent the link between different entities. Each relationship has a Name. Each relationship has a Cardinality (Optional or Mandatory) Each relationship has a Degree (how many entity types which are participating in a relationship for example Unary, Binary and ternary) Each relationship has a type (One-to-One, One-to-Many and Many-to- Many). 51

52 Symbol for Relationships 1. Shown as a Diamond. 2. Diamond is doubled if one of the participant is dependent on the other. 3. Participants are connected by continuous lines, labeled to indicate cardinality. 4. In partial relationships role, It is written on the line connecting the partially participating entity rectangle to the relationship diamond. 5. Total participation is indicated by double lines. 52

53 Relationship Representation 1 53

54 Crow s Foot ERD-Relationship Representation 2 54

55 Naming Relationships Entities enrolled in a relationship are called its Participants. If there is no proper name of the association in the system then participant s names abbreviations are used. STUDENT and CLASS have enrolled relationship. However, it can also be named as STD_CLS. 55

56 Continued STUDENT and CLASS have enrolled relationship. However, it can also be named as STD_CLS. Or 56

57 Relationships Instances 57

58 Types of Relationships One-to-One When only one instance of an entity is associated with the relationship, it is marked as '1:1'. Any Example?? EMPLOYEE to PARKING_PLACE?? E.g. an EMPLOYEE must be assigned to one and only one PARKING_PLACE, and each PARKING_PLACE must be assigned to only one EMPLOYEE 58

59 Continued One-to-Many- When more than one instance of an entity is associated with a relationship, it is marked as '1:N'. Any Example?? TEACHER to STUDENT Relationship?? E.g. TEACHER must teaches at least five number of STUDENT. STUDENT must be taught by at most one TEACHER 59

60 Continued Many-to-One- When more than one instance of entity is associated with the relationship, it is marked as 'N:1'. Any Example?? STUDENT to TEACHER Relationship? E.g. STUDENT must be taught by at most one TEACHER. TEACHER must teaches at least five number of STUDENT. 60

61 Continued Many-to-Many- The following image reflects that more than one instance of an entity on the left and more than one instance of an entity on the right can be associated with the relationship. Any Example??? STUDENT to COURSE Relationship?? E.g. STUDENT may completes one or more than one COURSE, and each COURSE may be completed by many number of STUDENT 61

62 Continued 62

63 Degree of a Relationship 63

64 Continued 64

65 Continued 65

66 Continued 66

67 n-ary Relationships 67

68 Cardinality of Relationship 68

69 Relationship Cardinalities Cardinality is the number of instance of an entity from one relation that can be associated with the other relation. Symbols for Maximum and Minimum cardinalities are given on next slide. 69

70 Continued 70

71 Continued 71

72 Continued 72

73 Type of Relationship and Cardinality in a Relationship 73

74 ERD reading (Crow s Foot Notation) 74

75 How to Create an ERD 1. Identify entities 2. Identify relationships 3. Describe the relationship (Degree, Cardinality and Type of Relationship) 4. Add Attributes 5. Complete the diagram 75

76 Entities VS Relationships 76

77 Scenarios 77

78 Data Dictionary 78

79 Data Dictionary A data dictionary is a collection of descriptions of the data objects or items in a data model for the benefit of programmers and others who need to refer to them. 79

80 80

81 Continued 81

82 Continued 82

83 83

84 Relational Schema Diagram 84

85 Relational Schema Diagram A relational schema diagram is the skeleton structure that represents the conceptual view (transformed ERD) of the entire database. It defines how the data is organized and how the relations among them are associated. It expresses about the constraints/checks that are to be applied on the data. 85

86 Continued 86

87 ERD Reading 87

88 Continued 88

89 Continued 89

90 Exercise Draw the ERD (Information Engineering Standard) for the following scenarios: i. CITY to COUNTRY (real time scenario) Cardinality and Degree of Relationship. ii. Player plays for a at most one Cricket team, In a Cricket team at least eleven players must play. iii. Each patient has one or more patient histories; each instance of patient history belongs to one patient only. iv. An employee may be recorded as having many jobs; a particular job may be recorded as having been held by many employees. v. A person must be a citizen of at most one Country. A country must have one or more than one person as citizens. 90

91 Exercise (Solution) Solution of Scenario 5: - A person must be a citizen of at most one Country. A country must have one or more than one person as its citizens. Entities:- There are two number of Entities (COUNTRY and PERSON) which are participating in this given scenario Degree of Relationship:- There are two Entities participating in this relationship so it is in Binary Relationship Cardinality of Relationship:- Both Entities are in Mandatory (COUNTRY) to (PERSON) Mandatory cardinalities Type of Relationship:- Type of relationship is One (COUNTRY) to Many (PERSON) 91

92 92

93 1) Is the scenario on last slide is in Relational Database or in Flat File System? It is in Relational Database because two tables relates with each other with Primary Key and Foreign Key. Primary Key (countryid in COUNTRY table) Foreign Key (countryid in PERSON table) Because, Scenario is in One (COUNTRY) to Many (PERSON) type of relationship. 93

94 2) Is the designed scenario on last slide is 100% correctly designed to achieve the core objective of Relational Database System? Yes, It is 100% correctly designed because there is no repetition of Countries Instances (records) in COUNTRY table; When related to PERSON table as many citizens in one country must exists. There are many citizens of Pakistan so we don t need to repeat Pakistan as many times the record of PERSON is stored. We can refer it from COUNTRY table via Primary Key to Foreign Key in PERSON table. 94

95 3) If In Relational Database; Than, How it is minimizing Duplication of Data? Duplication of Instances is removed because there is no repetition of Countries Instances in COUNTRY table. Country instance must be called via Foreign Key in PERSON table and there are many number of instances of persons in PERSON table as citizens of Pakistan, these instances can be related to a single instance of Country Pakistan in COUNTRY table. 95

96 4) Is it minimizing Update and Delete Anomaly/Irregularity? Yes, We have removed Update and Delete Anomaly. When Country instance is updated or deleted in COUNTRY table than it will automatically show updated or deleted record against countryid in PERSON table where ever It is referred by Foreign Key. So, we don t have to update or delete millions of records in PERSON table against countries. 96

97 1) Is the above designed scenario is in Relational Database or in Flat File System? It is in Relational Database because two tables relates with each other with Primary Key and Foreign Key. Primary Key (personcnic in PERSON table) Foreign Key (personcnic in COUNTRY table) Because, Scenario is in One (PERSON) to Many (COUNTRY) type of relationship.

98 2) Is the designed scenario on last slide is 100% correctly designed to achieve the core objective of Relational Database System? No, It is not designed correctly because there is repetition of Countries Instances (records) in COUNTRY table; When related to PERSON table as many citizens in one country must exists. There are many citizens of Pakistan so we have to repeat Pakistan as many times the record of PERSON is stored because we have Foreign Key personcnic in COUNTRY table and Primary Key personcnic in PERSON table. 98

99 Case Study-1 In a school, Each STUDENT must be allocated to exactly one CLASS and a CLASS must be formed by at least twenty or more than twenty number of STUDENTs. There are Many Mandatory posts for STUDENT s exists in every CLASS and there are Many Mandatory STUDENT s assigned to different posts like Class Representative (CR), Girls Representative (GR), Boys Representative (BR) in every CLASS. 99

100 Entities Step 1: Identifying Entities: - STUDENT CLASS 100

101 Step 2: Writing Scenario with Type and Cardinality of Relationship as per Business Rules: - 101

102 Reasoning for Type of Relationships: - 102

103 Step 3: ERD Designing in Information Engineering Style: - 103

104 Entities Step 4: Transforming ERD into Relations (If Required): - Transformed/Mapped Entities into Relations: - STUDENT CLASS POST (Associative/Junction Entity) 104

105 Reasoning behind finding Type of Relationships with a Junction Table: - 105

106 POST Entity/Table is known as Associative or Junction Entity/Table because it relates two number of Table s as shown in previous diagram. Associative/Junction Entity/Table can store some information that is linked to both tables as per relationship existence as in previous diagram classpost detail is stored in POST entity like who is CR, BR or GR of which class and these details cannot be stored in STUDENT and in CLASS Entity/Table. Only STUDENT details are stored in STUDENT table and CLASS details are stored in CLASS table. All the instances/records in Associative Entity/Table must be unique. Primary key of Associative Entity/Table can be a Cumbersome Key (Group of Primary Keys) in Associative/Junction Entity/Table that uniquely identifies a record in a relation/table. In previous diagram, classname, stdregno and posttitle can make a Cumbersome key in associative table/entity. 106

107 Step 5: Transforming ERD into Relations: -

108 Case Study-2 Odeon Cinema and other international cinemas have decided to install a centralized database. This database should keep information regarding cinemas including its name, address and phone number. Each cinema must have one or more theaters and each theater has a specific showing time. During these showing times a particular movie is shown to the general public 108

109 Entities CINEMA THEATER SHOW MOVIE 109

110 Relationships A CINEMA must contain one or more THEATERs. A THEATER must belong to only and only one CINEMA. A THEATER has one or more SHOW times. A particular SHOW time for a movie must belongs to only and only one THEATER. A MOVIE may have many SHOW times and a particular SHOW time must belongs to one MOVIE only. 110

111 111 ERD Simulators/Tools ERD Online Simulator: Desktop Simulators for ERD: - Smart Draw RISE Editor Rational Rose

112 Projects Recommendation Prediction Database System (A system which can dynamically predict and changes record where required) Any Database Management System (Any System which must manage real time instance of data) Important Note: 1. All Projects must dynamically changes record; Based on Parent Table s record. 112

113 Recommended Readings Chapter 3 from: Modern Database Management-8 th Edition by Jeffrey A. Hoffer, Mary B. Prescott & Fred R. McFadden (Page No ) Chapter 11 from: Database Systems-A Practical Approach to Design, Implementation and Management by Thomas Connolly and Carolyn BEGG, 4 th Edition (Page No ) Chapter 4 from: Database Systems - Design, Implementation, and Management by Carlos, Steven and Peter, 9 th Edition (Page No ) 113

114 Summary of Lecture Lecture 4 Data Modeling/Database Design Entity Relationship Diagram (ERD) Data Dictionary Relational Schema Diagram 114

115 END OF LECTURE 4 115

Institute of Southern Punjab, Multan

Institute 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 information

Institute of Southern Punjab, Multan

Institute 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 information

Institute of Southern Punjab, Multan

Institute of Southern Punjab, Multan Institute of Southern Punjab, Multan Mr. Muhammad Nouman Farooq BSC-H (Computer Science) MS (Telecomm. & Networks) Honors: Magna Cumm Laude Honors Degree Gold Medalist! Blog Url: noumanfarooqatisp.wordpress.com

More information

Database Management System CS403 Lecture No 1 Database definitions: 1 A shared collection of logically related data, designed to meet the information

Database Management System CS403 Lecture No 1 Database definitions: 1 A shared collection of logically related data, designed to meet the information Database Management System CS403 Lecture No 1 Database definitions: 1 A shared collection of logically related data, designed to meet the information needs of multiple users in an organization. 2 A Computerized

More information

LECTURE 3: ENTITY-RELATIONSHIP MODELING

LECTURE 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 information

Institute of Southern Punjab, Multan

Institute 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 information

Chapter 4. In this chapter, you will learn:

Chapter 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 information

Institute of Southern Punjab, Multan

Institute 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 information

Database Systems. Overview - important points. Lecture 5. Some introductory information ERD diagrams Normalization Other stuff 08/03/2015

Database 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 information

A l Ain University Of Science and Technology

A 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 information

Relational Model (cont d) & Entity Relational Model. Lecture 2

Relational 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 information

A l Ain University Of Science and Technology

A 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 information

IS 263 Database Concepts

IS 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 information

Database 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 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 information

Represent entities and relations with diagrams

Represent 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 information

Entity Relationship Diagram (ERD): Basics

Entity 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 information

Database 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 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 information

Database 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 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 information

Chapter 2 Conceptual Modeling. Objectives

Chapter 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 information

DATABASE SYSTEMS. Chapter 5 Entity Relationship (ER) Modelling DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT

DATABASE 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 information

Entity Relationship Modelling

Entity 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 information

Objectives of logical design... Transforming the ERD diagram into relations. Relational database components. Mapping a composite attribute

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 information

Chapter # 4 Entity Relationship (ER) Modeling

Chapter # 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 information

Data Analysis 1. Chapter 2.1 V3.1. Napier University Dr Gordon Russell

Data 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 information

MIS Database Systems Entity-Relationship Model.

MIS 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 information

Conceptual Database Design. COSC 304 Introduction to Database Systems. Entity-Relationship Modeling. Entity-Relationship Modeling

Conceptual 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 information

Database 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 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 information

Lecture3: Data Modeling Using the Entity-Relationship Model.

Lecture3: 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 information

Data Modeling During System Analysis. Logical Data Model Stages. What is Conceptual Database Design? Gathering Information for Conceptual

Data Modeling During System Analysis. Logical Data Model Stages. What is Conceptual Database Design? Gathering Information for Conceptual Data Modeling Entity Relationship Diagram Lecture 16 CSC(291) [Software Engineering 1] Instructor: Saif-ur-Rehman Khan COMSATS Institute of Information Technology, Islamabad Data Modeling During System

More information

More on the Chen Notation

More 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 information

System Analysis And Design Methods ENTITY RELATIONSHIP DIAGRAM (ERD) Prof. Ali Khaleghi Eng. Hadi Haedar

System 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 information

Agenda: Understanding Relationship Types Degree and Cardinality with Examples

Agenda: Understanding Relationship Types Degree and Cardinality with Examples Data Processing AAOC C311 I Semester 2012 2013 CLASS 4 Agenda: Understanding Relationship Types Degree and Cardinality with Examples Prentice Hall, 2002 1 More on Relationships (A set of meaningful associations

More information

Entity-Relationship Model

Entity-Relationship Model Entity-Relationship Model Data Models High-level or conceptual data models provide concepts that are close to the way many users perceive data, whereas low-level or physical data models provide concepts

More information

Advance Database Management System

Advance 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 information

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.

The 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 information

1/24/2012. Chapter 7 Outline. Chapter 7 Outline (cont d.) CS 440: Database Management Systems

1/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 information

course 3 Levels of Database Design CSCI 403 Database Management Mines Courses ERD Attributes Entities title 9/26/2018

course 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 information

COSC 304 Introduction to Database Systems. Entity-Relationship Modeling

COSC 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 information

Essentials of Database Management (Hoffer et al.) Chapter 2 Modeling Data in the Organization

Essentials of Database Management (Hoffer et al.) Chapter 2 Modeling Data in the Organization Essentials of Database Management (Hoffer et al.) Chapter 2 Modeling Data in the Organization 1) The logical representation of an organization's data is called a(n): A) database model. B) entity-relationship

More information

Unit 2 - Data Modeling. Pratian Technologies (India) Pvt. Ltd.

Unit 2 - Data Modeling. Pratian Technologies (India) Pvt. Ltd. Unit 2 - Data Modeling Pratian Technologies (India) Pvt. Ltd. Topics Information Engineering Approaches to IS Developments SDLC Prototyping ER Modeling Why Data Modeling? Definition Information Engineering

More information

Related download: Instructor Manual for Modern Database Management 12th Edition by Hoffer Venkataraman Topi (Case studies included)

Related 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 information

Conceptual Modeling in ER and UML

Conceptual 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 information

Objectives Definition iti of terms Importance of data modeling Write good names and definitions for entities, relationships, and attributes Distinguis

Objectives Definition iti of terms Importance of data modeling Write good names and definitions for entities, relationships, and attributes Distinguis Chapter 3: Modeling Data in the Organization Modern Database Management 9 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Heikki Topi 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Objectives

More information

Chapter 4 Entity Relationship Modeling In this chapter, you will learn:

Chapter 4 Entity Relationship Modeling In this chapter, you will learn: Chapter Entity Relationship Modeling In this chapter, you will learn: What a conceptual model is and what its purpose is The difference between internal and external models How internal and external models

More information

ER DIAGRAM ER) diagram, a graphical representation of entities and their relationships to each other, typically used in computing in regard to the

ER DIAGRAM ER) diagram, a graphical representation of entities and their relationships to each other, typically used in computing in regard to the ER DIAGRAM ER) diagram, a graphical representation of entities and their relationships to each other, typically used in computing in regard to the organization of data within databases or information systems.

More information

Chapter 2: Entity-Relationship Model

Chapter 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 information

ER modeling. Lecture 4

ER 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 information

L11: ER modeling 4. CS3200 Database design (sp18 s2) 2/15/2018

L11: ER modeling 4. CS3200 Database design (sp18 s2)   2/15/2018 L11: ER modeling 4 CS3200 Database design (sp18 s2) https://course.ccs.neu.edu/cs3200sp18s2/ 2/15/2018 132 Announcements! Keep coming with your name plates Mid-course feedback for instructor - Exam: Cheat

More information

0. 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 information

Conceptual Data Modeling Using E-R Models. PM Jat

Conceptual Data Modeling Using E-R Models. PM Jat Conceptual Data Modeling Using E-R Models PM Jat pm_jat@daiict.ac.in Data Model Data modeling is the most important task in database development completeness correctness performance of database depends

More information

Chapter 1: The Database Environment

Chapter 1: The Database Environment Chapter 1: The Database Environment Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden Prentice Hall, 2002 1 Definitions Data: Meaningful facts, text, graphics,

More information

E-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. 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 information

2004 John Mylopoulos. The Entity-Relationship Model John Mylopoulos. The Entity-Relationship Model John Mylopoulos

2004 John Mylopoulos. The Entity-Relationship Model John Mylopoulos. The Entity-Relationship Model John Mylopoulos XVI. The Entity-Relationship Model The Entity Relationship Model The Entity-Relationship Model Entities, Relationships and Attributes Cardinalities, Identifiers and Generalization Documentation of E-R

More information

Chapter 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 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 information

THE 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) 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 information

Chapter 2 ENTITY RELATIONSHIP MODEL

Chapter 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 information

Institute of Southern Punjab, Multan

Institute 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 information

SOFTWARE 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) 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 information

Conceptual Data Models for Database Design

Conceptual 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 information

Conceptual Database Design (ER modeling) Chapter Three

Conceptual Database Design (ER modeling) Chapter Three Conceptual Database Design (ER modeling) Chapter Three 1 Agenda (Chapter Three) Overview-database design Conceptual Design (E-R Modeling) Structural Constraints EER- Generalization and Specialization Reducing

More information

Full file at

Full 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 information

The 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. 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 information

Discussion Focus. Figure 1

Discussion Focus. Figure 1 Discussion Focus Efficient data management typically requires the use of computer database. A database is a shared, integrated computer structure that stores a collection of: End-user data that is the

More information

COMP Instructor: Dimitris Papadias WWW page:

COMP 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 information

IMS1002/CSE1205 Lectures 1

IMS1002/CSE1205 Lectures 1 IMS1002/CSE1205 Systems Analysis and Design Lecture 2 & 3 Introduction to Data Modelling Entity Relationship Modelling Data Modelling Focus on the information aspects of the organisation In a database

More information

David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation

David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation David M. Kroenke and David J. Auer Database Processing Fundamentals, Design, and Implementation Chapter Five: Data Modeling with the Entity-Relationship Model Chapter Objectives To understand the two-phase

More information

Entity-Relationship Model. From Chapter 5, Kroenke book

Entity-Relationship Model. From Chapter 5, Kroenke book Entity-Relationship Model From Chapter 5, Kroenke book Database Design Process Requirements analysis Conceptual design data model Logical design Schema refinement: Normalization Physical tuning Problem:

More information

DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL. 1 Powered by POeT Solvers Limited

DATA 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 information

Course Design Document: IS202 Data Management. Version 4.5

Course Design Document: IS202 Data Management. Version 4.5 Course Design Document: IS202 Data Management Version 4.5 Friday, October 1, 2010 Table of Content 1. Versions History... 4 2. Overview of the Data Management... 5 3. Output and Assessment Summary... 6

More information

Non-overlappingoverlapping. Final outcome of the worked example On pages R&C pages R&C page 157 Fig 3.52

Non-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 information

Object Modeling. Entity-Relationship (ER) diagrams (1976) Object Modelling Technique (OMT) diagrams (1991)

Object Modeling. Entity-Relationship (ER) diagrams (1976) Object Modelling Technique (OMT) diagrams (1991) Created by Janusz R. Getta, School of Computing and Information Technology, University of Wollongong Building 3, room 2120, ext 4339, jrg@uow.edu.au, http://www.uow.edu.au/ jrg Object Modeling Outline

More information

Introduction to modeling. ER modelling

Introduction to modeling. ER modelling Introduction to modeling ER modelling Slides for this part are based on Chapters 8 from Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition (ISBN: 978-0-12-373568-3),

More information

The Entity-Relationship Model (ER Model) - Part 2

The Entity-Relationship Model (ER Model) - Part 2 Lecture 4 The Entity-Relationship Model (ER Model) - Part 2 By Michael Hahsler Based on slides for CS145 Introduction to Databases (Stanford) Lecture 4 > Section 2 What you will learn about in this section

More information

Database Systems ER Model. A.R. Hurson 323 CS Building

Database 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 information

Full file at Chapter 2: Foundation Concepts

Full file at   Chapter 2: Foundation Concepts Chapter 2: Foundation Concepts TRUE/FALSE 1. The input source for the conceptual modeling phase is the business rules culled out from the requirements specification supplied by the user community. T PTS:

More information

MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: Time: 60 min Marks: 38

MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: Time: 60 min Marks: 38 Student Info StudentID: Center: ExamDate: MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: 1356458 Time: 60 min Marks: 38 BC080402322 OPKST 5/28/2010 12:00:00 AM

More information

Module 2 : Entity-Relationship Model 15

Module 2 : Entity-Relationship Model 15 Module 2 : Entity-Relationship Model 15 Module-02 Entity Relationship Data Model 2.1 Motivation Data modeling is an essential step in the process of creating any Database Application. It helps Database

More information

Conceptual Data Modeling and the Entity- Relationship Model. Department of Computer Science Northern Illinois University September 2014

Conceptual Data Modeling and the Entity- Relationship Model. Department of Computer Science Northern Illinois University September 2014 Conceptual Data Modeling and the Entity- Relationship Model Department of Computer Science Northern Illinois University September 2014 Data Models A means of describing the structure of the data A set

More information

Database 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 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 information

CSC 261/461 Database Systems Lecture 8. Spring 2018

CSC 261/461 Database Systems Lecture 8. Spring 2018 CSC 261/461 Database Systems Lecture 8 Spring 2018 Announcement Quiz No New Problem Set Study Chapter 5, 6, and 7 Go through the problem set Announcement Project 2 Part 1 Already out. Workshop covered

More information

COMP 244. Entity Relationship Model Basics. Entity-Relationship Models. Key elements of the E-R model DATABASE CONCEPTS & APPLICATIONS

COMP 244. Entity Relationship Model Basics. Entity-Relationship Models. Key elements of the E-R model DATABASE CONCEPTS & APPLICATIONS COMP 244 DATABASE CONCEPTS & APPLICATIONS Entity Relationship Model Basics Key elements of the E-R model Entities Attributes Identifiers (Keys) Relationships Entity-Relationship Models 1 2 Database Concepts

More information

1. Considering functional dependency, one in which removal from some attributes must affect dependency is called

1. 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 information

Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys

Using 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 information

Objectives Definition iti of terms List five properties of relations State two properties of candidate keys Define first, second, and third normal for

Objectives Definition iti of terms List five properties of relations State two properties of candidate keys Define first, second, and third normal for Chapter 5: Logical Database Design and the Relational Model Modern Database Management 9 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Heikki Topi 2009 Pearson Education, Inc. Publishing as Prentice

More information

Major components of ER diagram Practices

Major components of ER diagram Practices Major components of ER diagram Practices 1 1976 proposed by Peter Chen ER diagram is widely used in database design Represent conceptual level of a database system Describe things and their relationships

More information

CSC 261/461 Database Systems Lecture 7

CSC 261/461 Database Systems Lecture 7 CSC 261/461 Database Systems Lecture 7 Spring 2018 Announcement Project 1 Milestone 1 is due Tonight Project 2 Part 1: will be out tonight! You should definitely go to workshops this week Workshop on Project

More information

Chapter 6: Entity-Relationship Model

Chapter 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 information

Entity Relationship Data Model. Slides by: Shree Jaswal

Entity 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 information

Data about data is database Select correct option: True False Partially True None of the Above

Data about data is database Select correct option: True False Partially True None of the Above Within a table, each primary key value. is a minimal super key is always the first field in each table must be numeric must be unique Foreign Key is A field in a table that matches a key field in another

More information

Chapter 6: Entity-Relationship Model

Chapter 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 information

CSC 261/461 Database Systems Lecture 6. Spring 2017 MW 3:25 pm 4:40 pm January 18 May 3 Dewey 1101

CSC 261/461 Database Systems Lecture 6. Spring 2017 MW 3:25 pm 4:40 pm January 18 May 3 Dewey 1101 CSC 261/461 Database Systems Lecture 6 Spring 2017 MW 3:25 pm 4:40 pm January 18 May 3 Dewey 1101 CSC 261/461 Database Systems Lecture 6 Spring 2017 MW 3:25 pm 4:40 pm January 18 May 3 Dewey 1101 Announcement

More information

XV. The Entity-Relationship Model

XV. The Entity-Relationship Model XV. The Entity-Relationship Model The Entity-Relationship Model Entities, Relationships and Attributes Cardinalities, Identifiers and Generalization Documentation of E-R Diagrams and Business Rules Acknowledgment:

More information

MIS2502: Data Analytics Relational Data Modeling - 1. JaeHwuen Jung

MIS2502: Data Analytics Relational Data Modeling - 1. JaeHwuen Jung MIS2502: Data Analytics Relational Data Modeling - 1 JaeHwuen Jung jaejung@temple.edu http://community.mis.temple.edu/jaejung Where we are Now we re here Data entry Transactional Database Data extraction

More information

Relational Database Systems 1

Relational Database Systems 1 Relational Database Systems 1 Wolf-Tilo Balke Jan-Christoph Kalo Institut für Informationssysteme Technische Universität Braunschweig www.ifis.cs.tu-bs.de Summary last week Databases are logical interfaces

More information

Entity-Relationship Model &

Entity-Relationship Model & Entity-Relationship Model & IST 210 Diagram Todd S. Bacastow IST 210: Organization of data 2/1/2004 1 Design Principles Setting client has (possibly vague) idea of what he/she wants. YOUR task must design

More information

Lecture 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 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 information

Entity Relationship Modeling. From Rob and Coronel (2004), Database Systems: Design, Implementation, and Management

Entity Relationship Modeling. From Rob and Coronel (2004), Database Systems: Design, Implementation, and Management Entity Relationship Modeling Entity-Relationship Diagram (ERD) Components Entities: correspond to tables in the relational database Attributes: define the characteristics of entities Attributes have a

More information

Relational Database Systems 1

Relational Database Systems 1 Relational Database Systems 1 Wolf-Tilo Balke Christoph Lofi Institut für Informationssysteme Technische Universität Braunschweig http://www.ifis.cs.tu-bs.de Data Modeling Introduction Basic ER Modeling

More information

Database Applications (15-415)

Database 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 information

Chapter 7: Entity-Relationship Model

Chapter 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 information