1. What are the main building modules of the Entity Relationship model? Discuss each one.

Size: px
Start display at page:

Download "1. What are the main building modules of the Entity Relationship model? Discuss each one."

Transcription

1 1. What are the main building modules of the Entity Relationship model? Discuss each one. Let s begin by reviewing that working within a RDBMS model, using entity relationship modeling (ERM) forms the basic underpinnings of an entity relationship diagram (ERD). The ERD represents the database in a conceptual graphical representation for the end-user, but the ERD cannot be created until all the entities, attributes and relationship have been identified. This step is performed in the initial stages of evaluation, using the entity relationship modeling (ERM) process before the (proper) entity relationship diagram (ERD) can be created. The basic building modules that construct an entity relationship model include: entities, attributes, and relationships. In previous chapters we learned there basic functions, here we will expand on the many characteristics each building module can take within ERM modeling. I. Entities: Review: An entity represents an object. It can be anything (a person, a place, a thing, or event). Basically an entity can be defined as the object of interest for the end-user that collects and stores data. Entities are distinguishable, that is, they are unique. Within ERM processes, an entity will refer to an entity set, rather than a single occurrence. In other words an entity within an ERM corresponds to a table and not the row in a relational environment. The ERM will refer to a table row as an entity occurrence. Entities can take on many characteristics within ERM modeling which we will discuss below: A. Existence Dependence a. An entity is said to be existence-dependent if it can exist in the database only when it is associated with another related entity occurrence. In other words both entities have to exist and rely on one another to perform a function. b. An entity is said to be existence-independent if it does not rely on another entity to exist. B. Strong and Weak Entities a. An entity that is strong will be an entity that is existencedependent. b. An entity that is weak will be an entity that is existenceindependent. II. Attributes:

2 Review: Attributes are the characteristics of entities. Using ERM modeling, attributes can take on many characteristics, which we will discuss below: A. Required and Optional Attributes: 1. A required attribute is an attribute that must have a value. It cannot be empty. In other words that attribute requires a data entry. 2. A optional attribute is an attribute that does not require a value, and can therefore be left empty. B. Attribute Domains 1. All attributes have a domain. A domain is a set of possible values for a given attribute. For example, the attribute for the entity G.P.A would simply imply that the G.P.A. entity has an attribute domain that specifies data to be entered into a particular format, based on a numerical 0-4 set. In other words no alphabetical information can be entered in this attributes domain because the domain is set to represent numerical data, i.e. 3.2, 4.0 or any other possible combination, but only using the numbers 0-4. An entity such as telephone number would have a domain set for numerical values as well, or another example, the entity address would have an attribute domain to include a combination of alphanumeric data values. It is also possible for attributes to share a domain. Note the example entity address. In an ERM two different attributes like doctor and patient may share a domain attribute such as address. C. Attribute Identifiers: 1. Attributes Primary Keys: The ERM system uses identifiers, which are one or more attributes that uniquely identify an entity instance. These identifiers are mapped to the relational models primary key (PK) which we have overviewed in past chapters. Identifiers are essentially an attributes primary key. Identifiers are underlined in an ERD as well as within an ERM. For example; CAR (CAR_VIN, CAR_MODEL, CAR_YEAR, CAR_COLOR) This example states that the entity car includes the identifier CAR_VIN as its Primary key, with all the other attributes of that entity. 2. Composite Identifiers: It is possible to use a composite identifier that is composed of the attributes primary key, which can be composed of many attributes. Basically a composite key is a combination of key attributes. For example:

3 *NOTE: assume car year would uniquely identify, in the real-world this would not be the case CAR (CAR_VIN, CAR_YE AR, CAR _MODEL, CAR_COLOR) D. Composite and Simple Attributes: Attributes are classified as either composite or simple. 1.) Composite attribute is an attribute that can be subdivided to yield additional attributes. For example, an attribute like Address can be subdivided into additional attributes such as, street, city, state, and zip code. 2.) Simple attribute is an attribute that cannot be subdivided. For example, the attribute Age cannot be subdivided. *NOTE: Composite attribute should not be confused with composite identifiers. E. Single-Valued Attributes vs. Multi-Valued Attributes: 1.) A single-valued attribute can only have one value. That does not mean it is a simple attribute, but rather an attribute that has a single value that cannot be subdivided. For example, a car s VIN number may look something like: nfgo9u99jj. This number in its entirety is a single valued attribute. It cannot be subdivided into more attributes. 2.) A multi-valued attribute is an entity attribute that can have more than one value. Using our car entity analogy, the car entity has an attribute CAR_COLOR this particular attribute, can be further subdivided into other attributes for various car color s i.e. red, blue, black, etc. F. Derived Attributes In the chapter 3, a discussion about using set operators to perform computations/algorithms were explained under an ERD framework. Within ERM, derived attributes work in a similar way. An attribute may be classified as a derived attribute if the attributes value can be calculated (derived) from other attributes through the use of an algorithm. A derived attribute can be as simple as adding two attribute values located within the same row, or it can be a result by aggregating the sum of attribute values located on many rows (either within the same table or different tables). The decision to store such data from derived attributes depends on the level of processing requirements needed by the overall design of the database, and is left up to the designer to decided the balance between the advantages and disadvantages in storing this particular set of data values.

4 III. Relationships Review: A relationship between entities is the association being made. A. Cardinality in relationships: Cardinality is achieved by expressing the minimum and maximum number of entity occurrences associated with a related entity. Cardinality is expressed in a (x,y) format, that is numerically indicated. These numerical values will be placed accordingly besides the entities. The first value x represents the minimum number of associated entities, and the y value represents the maximum number of associated entities. Cardinalities can be established by core business rules that give precise and detailed descriptions of the overall data environment. B. Relationship Strengths: Relationship strength is also dependant on the strength of an entity. A relationship s strength is based on how the primary key (PK) of a related entity is defined. Remember in chapters 2 and 3, that with an ERD a relationship was implemented by the use of the primary key of one entity appearing as the foreign key in another entity. Relationship strength can be determined by identifying the decisions that affect the primary key s arrangement within the database. 1.) Weak (Non-identifying) Relationships: A weak relationship exists if the primary key of the related entity does not contain a primary key from the parent entity. In other words if a primary key of one table is not part of the primary key in another table you have a weak relationship. You can also experience a weak relationship if an entity has a primary key that is partially or totally derived from a parent entity in the relationship. A weak entity will inherit part of the primary key from its strong counterpart. 2.) Strong (identifying ) Relationships: A strong relationship is just the opposite of a weak one. If the primary key of one table is a part of the primary key in another table, you have a strong relationship, because it is contained within both tables. 3.) Relationship Participation: Participation in an entity relationship can be mandatory or optional. Optional participation requires that one entity occurrence does not require a corresponding entity occurrence in a relationship. Optionality is a condition in which one or more optional relationships exist.

5 Mandatory relationships mean that one entity occurrence requires a corresponding entity occurrence in a relationship. 4.) Relationship Degrees: A relationship degree indicates the number of entities or participants associated with a relationship. A degree indicates how many tables are directly interrelated in a relation. Within the framework of an ERD we have mostly seen binary relationships, as you ll remember in 1:1, 1:M, and M:N. A unary relationship exists when an association is maintained within a single entity. Such a relationship is also known as a recursive relationship. A recursive relationship is one in which a relationship can exist between occurrences of the same entity set. Such a condition is found within a unary relationship. Binary relationships are the most common. They exist when two entities are associated, and a Ternary relationship exists when three entities are associated. 2. What is a composite entity, and when is it used? Let s begin by reviewing what we learned about many-to-many relationships within a relational model. They are generally not supported!!! Which required programmers to create a composite entity or bridge, between the M:N relationship to reflect one or more, 1:M relationships. A composite entity is the (associative or bridge) entity that is composed of the primary keys of each of the entities to be connected in order to implement manyto-many relationships. Let s re-visit an old example used in previous work, showcasing composite entities. In the past we used this example to create new one-to-many relationship between these entities. Within the context of ERM we want to support the many-to-many relationship by not so much changing them into 1:M, but by implementing a composite entity to support the M:N relationship through their attributes, which before were not included in the relationship. Now we have relationships between entities with many attributes attached. So for example, let s say the attributes for Drivers, included DRIVER_NAME, DRIVER_ID, AND DRIVER_LIN_NUM. And the entity Trucks had the attributes that included, TRUCK_ID, TRUCK_VIN_NUM. Knowing the primary key for the Driver entity = (PK: Driver_ID)is driver id, and knowing the primary key for the entity Trucks = (PK: TRUCK_VIN) number. We know that we can create a new composite entity Driving by creating the composite key for this new entity. We know the (PK) from both original

6 entities, so we know that to create the key for the new composite entity, we must have a combination of the two original (PK s). Here s what the original relationship look liked in an ERD below, displaying the composite entity with no attributes, and establishing two new 1:M relationships: The E-R Model would be displayed below, showing the new composite entity, composed of the original entities attributes and primary keys. 3. The Hudson Engineering Group (HEG) has contacted you to create a conceptual model whose application will meet the expected database requirements for its training program. The HEG administrator gives you the following description of the training group's operating environment: "The HEG has 12 instructors and can handle up to 30 trainees per class. HEG offers five 'advanced technology' courses, each of which may generate several classes. If a class has fewer than 10 trainees in it, it will be canceled. It is, therefore, possible for a course not to generate any classes during a session. Each class is taught by one instructor.

7 Each instructor may teach up to two classes or may be assigned to do research. Each trainee may take up to two classes per session." Given this information, do the following: a. Draw the E-R diagram for HEG. b. Describe the relationship between instructor and class in terms of connectivity, cardinality, and existence dependence. The relationship between instructor and class, tells us that the relationship operates both ways, a binary relationship. An instructor teaches students, and students are instructed by an instructor. Because we know both directions of the relationship, we also know we have a classified 1:M relationship. Now, by establishing this relationship we can also determine that this is their primary connectivity. The connectivity between these two entities, is the relationship we have just classified the 1:M. Cardinality expresses the minimum and maximum number of entity occurrences associated with one occurrence of the related entity. Using our example in part a) of question 3, the instructor entity has an occurrence of twelve, because we know that there are 12 instructors in our problem. The

8 value would be written in the (x,y) format for expressing cardinality, so we have a value = (1,12)for instructor. The related entity class has an entity occurrence that is not known because we know that there are 5 core courses, but these courses can generate many classes. The value for classes is not known because it is not given, so we must give the entity occurrence for class a (0,0) value. Also we can determine that the relationship between instructor and class is existence dependent because their existence is dependent on one another. We have also learned that existence-dependant relationships that exist are also considered strong relationships because the relationship relies on part of the primary key. In other words, the instructor entity is a known primary key, therefore class depends on part of this primary key and the entity class is also a child entity, of the parent entity instructor. 4. What is a derived attribute? Give an example. A derived attribute is an attributes value that can be calculated or (derived) from other attributes values, to perform a function. A derived attribute computation can be as simple as adding two attribute values located on the same row, or by aggregating the sum of values located on many table rows (from the same table or from a different table). For example, say we want to find out an employee s age by calculating the employees date-of-birth attribute with the current date. This subtraction algorithm that was just created by these two values, the date-of-birth and the current date, can be used to create the new derived attribute that we ll be the employee s age. If an employee was given the attribute DOB that contained a year value of 1981, and we know the current year is 2009, we can use the subtraction algorithm to produce an age (the new value that was determined by using the original attribute and deriving a new value from the old). This would mean that when a subtraction of year of birth and the current year are used, we know that this person s age would be 28 years old. 5. What three (often conflicting) database requirements must be addressed in database design? A database designer often experiences conflicting goals for the database, and design compromises often have to be performed in order for the database to be in the best possible shape. Design standards, processing speeds, and information requirements are the most compelling requirements a designer needs to be aware of in addressing the approach and design of a database.

9 Design standards provide a framework for the designer to work within, and a database must conform to these standards. These standards will in essence guide the designer in developing logical structures that minimize data redundancies and anomalies. Such standards will assist in formulating a proper design process, and allow one to work with well defined components that can be further evaluated to understand those components and their interaction. Processing speeds are another requirement. High processing speeds are often a top-priority for database designers because most want efficient and fast access to their information. Yet sometimes if relationship structures within the database are very complex this may lead to slower processing speeds because the database is using many components to perform a function. This would require the database designer to re-work some of those structures to make the relationships more streamlined and efficient, therefore leading to faster processing. And finally, we have information requirements to be aware of. Sometimes a database may have to sacrifice some of its clean and easy design structures or change the transaction speeds, to ensure maximum information generation. Complex information requirements may dictate transformations within the database structure because additional entities and attributes have been identified, therefore other requirements may need to be tweaked in order for proper information storage and retrieval is being performed. A designer has many responsibilities, while they are concerned with the actual structures of the database, and their technical definitions, a designer must also be thinking about the end-user, and their ability to access the data, the data s historical integrity, the performance (speed), as well as the security of that information. 6. Answer the following questions about Normalization. a. What is normalization? Normalization is the process that a designer works through, in order to evaluate and correct information structures within the database. The process of normalization is performed in effect, to minimize data redundancies and reducing data anomalies within the table structures inherit in relational modeling. This process will assist a designer in creating the perfect database design, because imperfections in logic can be identified. Normalizations works through a series of stages called normal forms, which will be discussed in further detail below. In essence the process of normalization is used to normalize the tables within the structure in order to store the data that will be used to generate required information. The objective of normalization is to

10 ensure that each table conforms to well-designed relations. These tables must have the following characteristics to have a well-designed relation, including: that each table must represent a single subject, no data item will be unnecessarily stored in more than one table (data redundancies), all attributes within a table are dependent on the primary key, and finally, that each table is void of insertion, update, or deletion anomalies. Again the normalization process goes through stages that at every turn will produce higher and higher normal forms, and for most, the goal is to normalize a database design to achieve the 3NF (3 rd normal form). Now, determination and functional dependency are important to understand within the context of understanding normalization. These require a brief explanation in order to understand the required relation within the overall structure. Functional dependencies in effect identify a particular dependency within a relation, and normalizing that particular relation will assist the designer in possibly identifying new relations and their dependencies. In effect, this is the overall goal for the designer identifying all possible structures and their relations to create a good relational database. An example of a fully functional dependency would be the composite key because more than one attribute can be defined to inhibit dependence. But functional dependence at its most simplistic definition can be described as such; if attribute A determines attribute B (that is B is functionally dependant on A). If all the rows within a table agree in value for attribute A they must also agree in value for attribute B. In other words the normalization process starts by identifying the dependencies of a given relation and progressively breaking up the relation (table) into a set of new relations (tables) based on the identified dependencies. Now, the objective is to express fully functional dependencies but other dependencies are such types. Transitive dependencies are important to review, because sometimes both attributes used in a relation may not be a part of the primary key. In other words a transitive dependency is a dependency of one nonprime attribute on another nonprime attribute. Transitive dependencies do lead to data anomalies. Normalization focuses on the characteristics of specific entities; that is, normalizations represent a micro view of the entities within an ERD. Now remember the ERD gives us the macro view or big picture, while the E-R modeling gives us the micro view of the entities contained within the ERD. The normalization process involved with relational

11 modeling helps with distinguishing between these important differences. b. When is a table in 1NF? To begin, a table under evaluation in normalization begins with a three-step process. First, evaluate the table and make sure each cell has a single value and there are no repeating groups (i.e. eliminate repeating groups by making sure that each row defines a single entity). Second, identify the primary key. A proper primary key will uniquely identify any attribute value; therefore if the primary key does not maintain uniqueness, a new key must be created that is composed of a combination of attributes that will become the new (composite) primary key. The third step will be to identify all the dependencies within the relationship. The designer would ask questions about the dependencies, such as, are they fully functional, are there partial dependencies or transitive dependencies? Now remember all attributes must be dependent on the primary key. Overall, a table within a relational model database is in normal form 1 (1NF) when all the key attributes are defined and when all the remaining attributes are dependent on the primary key. 1NF can contain partial and transitive dependencies, but a table with a single attribute primary key cannot exhibit partial dependencies, therefore the composite primary key must be created. A designer using this normalization process can only continue when the table used in a relation has properly complied to all 1NF functions. c. When is a table in 2NF? Normalization is a process, one could think of it in terms of building blocks. If a table met the 1NF characteristics, you may proceed in establishing that table to meet 2NF characteristics. A table that is in 2NF is done only when the 1NF table has a composite primary key. Now remember if one is working at the 1NF stage, and the table has a single primary attribute key, the table is automatically in 2NF, but working in the 1NF stage with a composite key that was created, transforming the 1NF table into 2NF would proceed as follows: Using table one (1NF), write each key component (all the composite keys) out, that were identified, along with the original key listed on the last line. These components will all become the new key in a new table. Now step two in this conversion would be to identify all the corresponding attributes that are dependant. We can identify these dependant attributes by showing the relational schemas for each new key component. Once this stage has been achieved, a designer may notice that some transitive dependencies still exist, but NO partial

12 dependencies exist (that being a dependencies that is based on only a part of a composite primary key). In essence, at the 2NF stage a table will be in that state if it has achieved 1NF and no partial dependencies exist. d. When is a table in 3NF? Notice how transitive dependencies were found in the 2NF stage. To start the conversion from 2NF to 3NF, every transitive dependency identified write it new determinant as a primary key for a new table (NOTE* a determinate is described as any attributes whose value determines other values within a row). For example, if two transitive dependencies were found, two different determinants will need to be created. Next identify the dependant attributes. Write out the dependant attributes based on the new determinant that was created and identify what the dependency is. Once this stage has been done, remove all the dependant attributes from the original transitive dependency. That is, simply remove the dependant attribute and draw a new dependency diagram to show all the tables you have identified in the previous 3 steps within the procedure for 3NF. Make sure to check each table for its determinant, and make sure each table contains no inappropriate dependencies. Once this has been achieved a new table has been created. Now remember, this normalization process is about cleaning up the structures within the database. Each stage of normalization (1NF, 2NF, & 3NF) all are working as building blocks to eliminate the partial and transitive dependencies. Overall the process of normalization assists the designer in eliminating data redundancies that can lead to major problems if not address in the initial stages of creation. So, a table that has been properly conversed into 3NF has met 2NF status, and it now contains no transitive dependencies. e. When is a table in BCNF? Boyce-Codd Normal Form or BCNF, is a higher-level form within the 3NF normalization process that typically is used in special cases. A table will be in BCNF when every determinant in the table is a candidate key. Remember from chapter 3 that a candidate key has the same characteristics as a primary key, but it was not chosen yet it still exists. Now when a table contains only one candidate key, the 3NF and the BCNF are equivalent, in other words it is possible for a table to conform to 3NF standards but not be BCNF. In order for a table to be both 3NF and BCNF, requires that the primary key for the original 3NF form needs to be changed in order for the dependency to work. Now changing the primary key will take a designer back to the beginning

13 steps of 1NF because a new partial dependency has been identified. Which means we are back to the initial stages of 1NF, meaning that now we have to work up again through the normalization process. Once the table has been through 1NF, 2NF, and 3NF, can we then determine the table being in a state of both 3NF and BCNF. 7. Using the following INVOICE table structure, draw its dependency diagram and identify all dependencies (including all partial and transitive dependencies). You can assume that the table does not contain repeating groups and that any invoice number may reference more than one product. Attribute name Sample value INV_NUM PROD_NUM AA_E3422QW SALE_DATE 06/25/1999 PROD_DESCRIPTION BJRotary sander, 6 in. disk VEND_CODE 211 VEND_NAME NeverFail, Inc. NUMBER_SOLD 2 PROD_PRICE $49.95 The dependency diagram above shows thus: Identification of the composite primary keys: INV_NUM & PROD_NUM Desirable dependencies show above the diagram with arrows, show all the desirable dependencies based of the combination of both primary keys. The schema as follows: 1NF (INV_NUM, PROD_NUM = SALE_DATE, PROD_DESCRIPTION, VEND_CODE, VEND_NAME, NUM_SOLD, PROD_PRICE)

14 Partial dependencies are show below the diagram attributes with lines/arrows, and show the dependencies that are based on part of the composite PK, in other words, dependencies using one of the two PK s. They include the schemas: PROD_NUM = (PROD_DESCRIPTION, VEND_CODE, PROD_PRICE) INV_NUM = (SALE_DATE) Transitive dependencies have been identified as well. They are: (VEND_CODE = VEND_NAME) 8. Using the initial dependency diagram drawn in problem 7, remove all partial dependencies, draw the new dependency diagrams, and identify the normal forms for each table structure you created. The diagrams below represent the new dependencies we have identified in problem 7. We have identified the three new tables: the INVOICE, PRODUCT, and the SALES. Because we have identified new dependencies using the composite key, we need to give this new table a name. It seems appropriate due to the contents of this schema that it should be called Sales (this is where we got the name for the table left to the designers discretion). The relational schemas would be followed as such: INVOICE (INV_NUM, SALE_DATE) PRODUCT (PROD_NUM, PROD_DESCRIPTION, VEND_CODE, VEND_NAME, PROD_PRICE,) SALES (INV_NUM, PROD_NUM, NUM_SOLD)

15 *Note that a transitive dependency still exist in the PRODUCT table. Take a look at the diagram: (this will be dealt with in problem 9 to conform to 3NF)

16 9. Using the table structures you have created in problem 8, remove all transitive dependencies, draw the new dependency diagrams, and identify the normal forms for each table structure you created. Now we are working toward the 3NF Normalization. We know we have a transitive dependency in the Product identified as VEND_CODE & VEND_NAME. Earlier we learned that a determinant is an attribute whose value determines another attributes value in a transitive dependency. Therefore, we know that the determinant in our example is VEND_CODE. Take a look at the schema: VEND_CODE = VEND_NAME VENDOR *NOTE: We will call this new table We will then eliminate the dependant attributes from the transitive dependencies by taking out VEND_NAME from the PRODUCT table. The PRODUCT table schema will change, although it could be left to be used as a foreign key. Here is what all the new table relational schemas will look like after we have completed the 1NF, 2NF, and 3NF normalization process. Schemas: INVOICE TABLE (INV_NUM, SALE_DATE) PRODUCT TABLE (PROD-NUM, PROD_DESCRIPTION, PROD_PRICE, VEND_CODE) SALES TABLE (INV_NUM, PROD_NUM, NUM_SOLD)

17 VENDOR TABLE (VEND_CODE, VEND_NAME) Now the dependency diagrams would appear as follows: We should have four new tables now:

18 10. Using the results of problem 9, draw the ERD. Below:

Chapter 6. Database Tables & Normalization. The Need for Normalization. Database Tables & Normalization

Chapter 6. Database Tables & Normalization. The Need for Normalization. Database Tables & Normalization Chapter 6 Database Tables & Normalization Objectives: to learn What normalization is and what role it plays in the database design process About the normal forms 1NF, 2NF, 3NF, BCNF, and 4NF How normal

More information

DATABASE SYSTEMS. Chapter 7 Normalisation

DATABASE SYSTEMS. Chapter 7 Normalisation DATABASE SYSTEMS DESIGN IMPLEMENTATION AND MANAGEMENT INTERNATIONAL EDITION ROB CORONEL CROCKETT Chapter 7 Normalisation 1 (Rob, Coronel & Crockett 978184480731) In this chapter, you will learn: What normalization

More information

7.1 The Information system

7.1 The Information system Chapter 7. Database Planning, Design and Administration Last few decades have seen proliferation of software applications, many requiring constant maintenance involving: correcting faults, implementing

More information

not necessarily strictly sequential feedback loops exist, i.e. may need to revisit earlier stages during a later stage

not necessarily strictly sequential feedback loops exist, i.e. may need to revisit earlier stages during a later stage Database Design Process there are six stages in the design of a database: 1. requirement analysis 2. conceptual database design 3. choice of the DBMS 4. data model mapping 5. physical design 6. implementation

More information

Module 5: Normalization of database tables

Module 5: Normalization of database tables Module 5: Normalization of database tables Normalization is a process for evaluating and correcting table structures to minimize data redundancies, thereby reducing the likelihood of data anomalies. The

More information

Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations

Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations 1 Topics for this week: 1. Good Design 2. Functional Dependencies 3. Normalization Readings for this week: 1. E&N, Ch. 10.1-10.6; 12.2 2. Quickstart, Ch. 3 3. Complete the tutorial at http://sqlcourse2.com/

More information

Database Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB

Database Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB Outline Database concepts Conceptual Design Logical Design Communicating with the RDBMS 2 Some concepts Database: an

More information

RELATIONSHIP STRENGTH

RELATIONSHIP STRENGTH Connectivity and Cardinality The term connectivity is used to describe the relationship classification. Cardinality expresses the minimum and maximum number of entity occurrences associated with one occurrence

More information

Topic 5.1: Database Tables and Normalization

Topic 5.1: Database Tables and Normalization Topic 5.1: Database Tables and Normalization What is Normalization? Normalization is a process for evaluating and correcting table structures to minimize data redundancies, thereby helping to eliminate

More information

COMP 378 Database Systems Notes for Chapter 7 of Database System Concepts Database Design and the Entity-Relationship Model

COMP 378 Database Systems Notes for Chapter 7 of Database System Concepts Database Design and the Entity-Relationship Model COMP 378 Database Systems Notes for Chapter 7 of Database System Concepts Database Design and the Entity-Relationship Model The entity-relationship (E-R) model is a a data model in which information stored

More information

Lecture 12: Entity Relationship Modelling

Lecture 12: Entity Relationship Modelling Lecture 12: Entity Relationship Modelling The Entity-Relationship Model Entities Relationships Attributes Constraining the instances Cardinalities Identifiers Generalization 2004-5 Steve Easterbrook. This

More information

Unit 2.1. Data Analysis 1 - V2.0 1. Data Analysis 1. Dr Gordon Russell, Copyright @ Napier University

Unit 2.1. Data Analysis 1 - V2.0 1. Data Analysis 1. Dr Gordon Russell, Copyright @ Napier University Data Analysis 1 Unit 2.1 Data Analysis 1 - V2.0 1 Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is a relationship? Entities, attributes,

More information

Database Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys

Database Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys Database Design Overview Conceptual Design. The Entity-Relationship (ER) Model CS430/630 Lecture 12 Conceptual design The Entity-Relationship (ER) Model, UML High-level, close to human thinking Semantic

More information

Database Design Methodology

Database Design Methodology Database Design Methodology Three phases Database Design Methodology Logical database Physical database Constructing a model of the information used in an enterprise on a specific data model but independent

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 The

More information

Entity-Relationship Model

Entity-Relationship Model UNIT -2 Entity-Relationship Model Introduction to ER Model ER model is represents real world situations using concepts, which are commonly used by people. It allows defining a representation of the real

More information

Data Modeling: Part 1. Entity Relationship (ER) Model

Data Modeling: Part 1. Entity Relationship (ER) Model Data Modeling: Part 1 Entity Relationship (ER) Model MBA 8473 1 Cognitive Objectives (Module 2) 32. Explain the three-step process of data-driven information system (IS) development 33. Examine the purpose

More information

Answers to Selected Questions and Problems

Answers to Selected Questions and Problems Answers to Selected Questions and Problems-Edition8 Page 1 of 64 Answers to Selected Questions and Problems Chapter 1 Database Systems Answers to Selected Review Questions 2. Data redundancy exists when

More information

How To Write A Diagram

How To Write A Diagram Data Model ing Essentials Third Edition Graeme C. Simsion and Graham C. Witt MORGAN KAUFMANN PUBLISHERS AN IMPRINT OF ELSEVIER AMSTERDAM BOSTON LONDON NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO SINGAPORE

More information

DATABASE MANAGEMENT SYSTEMS. Question Bank:

DATABASE MANAGEMENT SYSTEMS. Question Bank: DATABASE MANAGEMENT SYSTEMS Question Bank: UNIT 1 1. Define Database? 2. What is a DBMS? 3. What is the need for database systems? 4. Define tupule? 5. What are the responsibilities of DBA? 6. Define schema?

More information

Data Analysis 1. SET08104 Database Systems. Copyright @ Napier University

Data Analysis 1. SET08104 Database Systems. Copyright @ Napier University Data Analysis 1 SET08104 Database Systems Copyright @ Napier University Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is a relationship?

More information

Chapter 2: Entity-Relationship Model. E-R R Diagrams

Chapter 2: Entity-Relationship Model. E-R R Diagrams Chapter 2: Entity-Relationship Model What s the use of the E-R model? Entity Sets Relationship Sets Design Issues Mapping Constraints Keys E-R Diagram Extended E-R Features Design of an E-R Database Schema

More information

Chapter 2: Entity-Relationship Model. Entity Sets. " Example: specific person, company, event, plant

Chapter 2: Entity-Relationship Model. Entity Sets.  Example: specific person, company, event, plant 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

CSC 742 Database Management Systems

CSC 742 Database Management Systems CSC 742 Database Management Systems Topic #4: Data Modeling Spring 2002 CSC 742: DBMS by Dr. Peng Ning 1 Phases of Database Design Requirement Collection/Analysis Functional Requirements Functional Analysis

More information

A. TRUE-FALSE: GROUP 2 PRACTICE EXAMPLES FOR THE REVIEW QUIZ:

A. TRUE-FALSE: GROUP 2 PRACTICE EXAMPLES FOR THE REVIEW QUIZ: GROUP 2 PRACTICE EXAMPLES FOR THE REVIEW QUIZ: Review Quiz will contain very similar question as below. Some questions may even be repeated. The order of the questions are random and are not in order of

More information

DATABASE NORMALIZATION

DATABASE NORMALIZATION DATABASE NORMALIZATION Normalization: process of efficiently organizing data in the DB. RELATIONS (attributes grouped together) Accurate representation of data, relationships and constraints. Goal: - Eliminate

More information

The Entity-Relationship Model

The Entity-Relationship Model The Entity-Relationship Model 221 After completing this chapter, you should be able to explain the three phases of database design, Why are multiple phases useful? evaluate the significance of the Entity-Relationship

More information

Chapter 2. Data Model. Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel

Chapter 2. Data Model. Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel Chapter 2 Data Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel 1 In this chapter, you will learn: Why data models are important About the basic data-modeling

More information

Data Modeling Basics

Data Modeling Basics Information Technology Standard Commonwealth of Pennsylvania Governor's Office of Administration/Office for Information Technology STD Number: STD-INF003B STD Title: Data Modeling Basics Issued by: Deputy

More information

Introduction to Computing. Lectured by: Dr. Pham Tran Vu t.v.pham@cse.hcmut.edu.vn

Introduction to Computing. Lectured by: Dr. Pham Tran Vu t.v.pham@cse.hcmut.edu.vn Introduction to Computing Lectured by: Dr. Pham Tran Vu t.v.pham@cse.hcmut.edu.vn Databases The Hierarchy of Data Keys and Attributes The Traditional Approach To Data Management Database A collection of

More information

Designing Databases. Introduction

Designing Databases. Introduction Designing Databases C Introduction Businesses rely on databases for accurate, up-to-date information. Without access to mission critical data, most businesses are unable to perform their normal daily functions,

More information

Databases Model the Real World. The Entity- Relationship Model. Conceptual Design. Steps in Database Design. ER Model Basics. ER Model Basics (Contd.

Databases Model the Real World. The Entity- Relationship Model. Conceptual Design. Steps in Database Design. ER Model Basics. ER Model Basics (Contd. The Entity- Relationship Model R &G - Chapter 2 A relationship, I think, is like a shark, you know? It has to constantly move forward or it dies. And I think what we got on our hands is a dead shark. Woody

More information

Chapter 3. Data Modeling Using the Entity-Relationship (ER) Model

Chapter 3. Data Modeling Using the Entity-Relationship (ER) Model Chapter 3 Data Modeling Using the Entity-Relationship (ER) Model Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity

More information

Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model

Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Outline Using High-Level Conceptual Data Models for

More information

Introduction to normalization. Introduction to normalization

Introduction to normalization. Introduction to normalization Introduction to normalization Lecture 4 Instructor Anna Sidorova Agenda Presentation Review of relational models, in class exersise Introduction to normalization In-class exercises Discussion of HW2 1

More information

Designing a Database Schema

Designing a Database Schema Week 10: Database Design Database Design From an ER Schema to a Relational One Restructuring an ER schema Performance Analysis Analysis of Redundancies, Removing Generalizations Translation into a Relational

More information

Chapter 5: Logical Database Design and the Relational Model Part 2: Normalization. Introduction to Normalization. Normal Forms.

Chapter 5: Logical Database Design and the Relational Model Part 2: Normalization. Introduction to Normalization. Normal Forms. Chapter 5: Logical Database Design and the Relational Model Part 2: Normalization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred R. McFadden Robert C. Nickerson ISYS

More information

Modern Systems Analysis and Design

Modern Systems Analysis and Design Modern Systems Analysis and Design Prof. David Gadish Structuring System Data Requirements Learning Objectives Concisely define each of the following key data modeling terms: entity type, attribute, multivalued

More information

Fundamentals of Database Design

Fundamentals of Database Design Fundamentals of Database Design Zornitsa Zaharieva CERN Data Management Section - Controls Group Accelerators and Beams Department /AB-CO-DM/ 23-FEB-2005 Contents : Introduction to Databases : Main Database

More information

Database Design Process

Database Design Process Entity-Relationship Model Chapter 3, Part 1 Database Design Process Requirements analysis Conceptual design data model Logical design Schema refinement: Normalization Physical tuning 1 Problem: University

More information

IV. The (Extended) Entity-Relationship Model

IV. The (Extended) Entity-Relationship Model IV. The (Extended) Entity-Relationship Model The Extended Entity-Relationship (EER) Model Entities, Relationships and Attributes Cardinalities, Identifiers and Generalization Documentation of EER Diagrams

More information

Data Modelling and E-R Diagrams

Data Modelling and E-R Diagrams Data Modelling and E-R Diagrams So far we have considered some of the basic ideas behind relational theory, and we will continue with this in subsequent sections. In this section we look at the processes

More information

Fundamentals of Database System

Fundamentals of Database System Fundamentals of Database System Chapter 4 Normalization Fundamentals of Database Systems (Chapter 4) Page 1 Introduction To Normalization In general, the goal of a relational database design is to generate

More information

Foundations of Information Management

Foundations of Information Management Foundations of Information Management - WS 2012/13 - Juniorprofessor Alexander Markowetz Bonn Aachen International Center for Information Technology (B-IT) Data & Databases Data: Simple information Database:

More information

Answers to Review Questions

Answers to Review Questions Tutorial 2 The Database Design Life Cycle Reference: MONASH UNIVERSITY AUSTRALIA Faculty of Information Technology FIT1004 Database Rob, P. & Coronel, C. Database Systems: Design, Implementation & Management,

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 LECTURE 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 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 Schema to

More information

Preview DESIGNING DATABASES WITH VISIO PROFESSIONAL: A TUTORIAL

Preview DESIGNING DATABASES WITH VISIO PROFESSIONAL: A TUTORIAL DESIGNING DATABASES WITH VISIO PROFESSIONAL: A TUTORIAL A Microsoft Visio Professional is a powerful database design and modeling tool. The Visio software has so many features that it is impossible to

More information

DATABASE DESIGN. - Developing database and information systems is performed using a development lifecycle, which consists of a series of steps.

DATABASE DESIGN. - Developing database and information systems is performed using a development lifecycle, which consists of a series of steps. DATABASE DESIGN - The ability to design databases and associated applications is critical to the success of the modern enterprise. - Database design requires understanding both the operational and business

More information

DATABASE DESIGN: NORMALIZATION NOTE & EXERCISES (Up to 3NF)

DATABASE DESIGN: NORMALIZATION NOTE & EXERCISES (Up to 3NF) DATABASE DESIGN: NORMALIZATION NOTE & EXERCISES (Up to 3NF) Tables that contain redundant data can suffer from update anomalies, which can introduce inconsistencies into a database. The rules associated

More information

A brief overview of developing a conceptual data model as the first step in creating a relational database.

A brief overview of developing a conceptual data model as the first step in creating a relational database. Data Modeling Windows Enterprise Support Database Services provides the following documentation about relational database design, the relational database model, and relational database software. Introduction

More information

three Entity-Relationship Modeling chapter OVERVIEW CHAPTER

three Entity-Relationship Modeling chapter OVERVIEW CHAPTER three Entity-Relationship Modeling CHAPTER chapter OVERVIEW 3.1 Introduction 3.2 The Entity-Relationship Model 3.3 Entity 3.4 Attributes 3.5 Relationships 3.6 Degree of a Relationship 3.7 Cardinality of

More information

CIS 631 Database Management Systems Sample Final Exam

CIS 631 Database Management Systems Sample Final Exam CIS 631 Database Management Systems Sample Final Exam 1. (25 points) Match the items from the left column with those in the right and place the letters in the empty slots. k 1. Single-level index files

More information

Database Management Systems

Database Management Systems Database Management Systems Database Design (1) 1 Topics Information Systems Life Cycle Data Base Design Logical Design Physical Design Entity Relationship (ER) Model Entity Relationship Attributes Cardinality

More information

Relational Data Analysis I

Relational Data Analysis I Relational Data Analysis I Relational Data Analysis Prepares Business data for representation using the relational model The relational model is implemented in a number of popular database systems Access

More information

Database Design. Adrienne Watt. Port Moody

Database Design. Adrienne Watt. Port Moody Database Design Database Design Adrienne Watt Port Moody Except for third party materials and otherwise stated, content on this site is made available under a Creative Commons Attribution 2.5 Canada License.

More information

We know how to query a database using SQL. A set of tables and their schemas are given Data are properly loaded

We know how to query a database using SQL. A set of tables and their schemas are given Data are properly loaded E-R Diagram Database Development We know how to query a database using SQL A set of tables and their schemas are given Data are properly loaded But, how can we develop appropriate tables and their schema

More information

2. Conceptual Modeling using the Entity-Relationship Model

2. Conceptual Modeling using the Entity-Relationship Model ECS-165A WQ 11 15 Contents 2. Conceptual Modeling using the Entity-Relationship Model Basic concepts: entities and entity types, attributes and keys, relationships and relationship types Entity-Relationship

More information

Database IST400/600. Jian Qin. A collection of data? A computer system? Everything you collected for your group project?

Database IST400/600. Jian Qin. A collection of data? A computer system? Everything you collected for your group project? Relational Databases IST400/600 Jian Qin Database A collection of data? Everything you collected for your group project? A computer system? File? Spreadsheet? Information system? Date s criteria: Integration

More information

Select the Crow s Foot entity relationship diagram (ERD) option. Create the entities and define their components.

Select the Crow s Foot entity relationship diagram (ERD) option. Create the entities and define their components. Α DESIGNING DATABASES WITH VISIO PROFESSIONAL: A TUTORIAL Microsoft Visio Professional is a powerful database design and modeling tool. The Visio software has so many features that we can t possibly demonstrate

More information

CS 377 Database Systems. Database Design Theory and Normalization. Li Xiong Department of Mathematics and Computer Science Emory University

CS 377 Database Systems. Database Design Theory and Normalization. Li Xiong Department of Mathematics and Computer Science Emory University CS 377 Database Systems Database Design Theory and Normalization Li Xiong Department of Mathematics and Computer Science Emory University 1 Relational database design So far Conceptual database design

More information

Chapter 10 Functional Dependencies and Normalization for Relational Databases

Chapter 10 Functional Dependencies and Normalization for Relational Databases Chapter 10 Functional Dependencies and Normalization for Relational Databases Copyright 2004 Pearson Education, Inc. Chapter Outline 1 Informal Design Guidelines for Relational Databases 1.1Semantics of

More information

14 Databases. Source: Foundations of Computer Science Cengage Learning. Objectives After studying this chapter, the student should be able to:

14 Databases. Source: Foundations of Computer Science Cengage Learning. Objectives After studying this chapter, the student should be able to: 14 Databases 14.1 Source: Foundations of Computer Science Cengage Learning Objectives After studying this chapter, the student should be able to: Define a database and a database management system (DBMS)

More information

Normalization of Database

Normalization of Database Normalization of Database UNIT-4 Database Normalisation is a technique of organizing the data in the database. Normalization is a systematic approach of decomposing tables to eliminate data redundancy

More information

DATABASE INTRODUCTION

DATABASE INTRODUCTION Introduction The history of database system research is one of exceptional productivity and startling economic impact. We have learnt that from the days of file-based systems there are better ways to handle

More information

Entity - Relationship Modelling

Entity - Relationship Modelling Topic 5 Entity - Relationship Modelling LEARNING OUTCOMES When you have completed this Topic you should be able to: 1. Acquire the basic concepts of the Entity-Relationship (ER) model. 2. Discuss how to

More information

MCQs~Databases~Relational Model and Normalization http://en.wikipedia.org/wiki/database_normalization

MCQs~Databases~Relational Model and Normalization http://en.wikipedia.org/wiki/database_normalization http://en.wikipedia.org/wiki/database_normalization Database normalization is the process of organizing the fields and tables of a relational database to minimize redundancy. Normalization usually involves

More information

Chapter 9: Normalization

Chapter 9: Normalization Chapter 9: Normalization Part 1: A Simple Example Part 2: Another Example & The Formal Stuff A Problem: Keeping Track of Invoices (cont d) Suppose we have some invoices that we may or may not want to refer

More information

ER modelling, Weak Entities, Class Hierarchies, Aggregation

ER modelling, Weak Entities, Class Hierarchies, Aggregation CS344 Database Management Systems ER modelling, Weak Entities, Class Hierarchies, Aggregation Aug 2 nd - Lecture Notes (Summary) Submitted by - N. Vishnu Teja Saurabh Saxena 09010125 09010145 (Most the

More information

Databases -Normalization III. (N Spadaccini 2010 and W Liu 2012) Databases - Normalization III 1 / 31

Databases -Normalization III. (N Spadaccini 2010 and W Liu 2012) Databases - Normalization III 1 / 31 Databases -Normalization III (N Spadaccini 2010 and W Liu 2012) Databases - Normalization III 1 / 31 This lecture This lecture describes 3rd normal form. (N Spadaccini 2010 and W Liu 2012) Databases -

More information

The E-R èentity-relationshipè data model views the real world as a set of basic objects èentitiesè and

The E-R èentity-relationshipè data model views the real world as a set of basic objects èentitiesè and CMPT-354-Han-95.3 Lecture Notes September 20, 1995 Chapter 2 The Entity-Relationship Model The E-R èentity-relationshipè data model views the real world as a set of basic objects èentitiesè and relationships

More information

Database Design Process

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

More information

Automated Inventory System

Automated Inventory System Automated Inventory System User Manual Developed by USDA Food and Nutrition Service June 2009 (Incomplete) Table of Contents Welcome Menu Client Services Report System Inventory System Operations Tailgate

More information

IT2305 Database Systems I (Compulsory)

IT2305 Database Systems I (Compulsory) Database Systems I (Compulsory) INTRODUCTION This is one of the 4 modules designed for Semester 2 of Bachelor of Information Technology Degree program. CREDITS: 04 LEARNING OUTCOMES On completion of this

More information

Data Modeling. Database Systems: The Complete Book Ch. 4.1-4.5, 7.1-7.4

Data Modeling. Database Systems: The Complete Book Ch. 4.1-4.5, 7.1-7.4 Data Modeling Database Systems: The Complete Book Ch. 4.1-4.5, 7.1-7.4 Data Modeling Schema: The structure of the data Structured Data: Relational, XML-DTD, etc Unstructured Data: CSV, JSON But where does

More information

Lecture Notes INFORMATION RESOURCES

Lecture Notes INFORMATION RESOURCES Vilnius Gediminas Technical University Jelena Mamčenko Lecture Notes on INFORMATION RESOURCES Part I Introduction to Dta Modeling and MSAccess Code FMITB02004 Course title Information Resourses Course

More information

Database Design Methodology

Database Design Methodology Topic 7 Database Design Methodology LEARNING OUTCOMES When you have completed this Topic you should be able to: 1. Discuss the purpose of a design methodology. 2. Explain three main phases of design methodology.

More information

Announcements. SQL is hot! Facebook. Goal. Database Design Process. IT420: Database Management and Organization. Normalization (Chapter 3)

Announcements. SQL is hot! Facebook. Goal. Database Design Process. IT420: Database Management and Organization. Normalization (Chapter 3) Announcements IT0: Database Management and Organization Normalization (Chapter 3) Department coin design contest deadline - February -week exam Monday, February 1 Lab SQL SQL Server: ALTER TABLE tname

More information

Chapter 10. Functional Dependencies and Normalization for Relational Databases

Chapter 10. Functional Dependencies and Normalization for Relational Databases Chapter 10 Functional Dependencies and Normalization for Relational Databases Chapter Outline 1 Informal Design Guidelines for Relational Databases 1.1Semantics of the Relation Attributes 1.2 Redundant

More information

ISM 318: Database Systems. Objectives. Database. Dr. Hamid R. Nemati

ISM 318: Database Systems. Objectives. Database. Dr. Hamid R. Nemati ISM 318: Database Systems Dr. Hamid R. Nemati Department of Information Systems Operations Management Bryan School of Business Economics Objectives Underst the basics of data databases Underst characteristics

More information

Functional Dependency and Normalization for Relational Databases

Functional Dependency and Normalization for Relational Databases Functional Dependency and Normalization for Relational Databases Introduction: Relational database design ultimately produces a set of relations. The implicit goals of the design activity are: information

More information

CHAPTER 6 DATABASE MANAGEMENT SYSTEMS. Learning Objectives

CHAPTER 6 DATABASE MANAGEMENT SYSTEMS. Learning Objectives CHAPTER 6 DATABASE MANAGEMENT SYSTEMS Management Information Systems, 10 th edition, By Raymond McLeod, Jr. and George P. Schell 2007, Prentice Hall, Inc. 1 Learning Objectives Understand the hierarchy

More information

Lesson 8: Introduction to Databases E-R Data Modeling

Lesson 8: Introduction to Databases E-R Data Modeling Lesson 8: Introduction to Databases E-R Data Modeling Contents Introduction to Databases Abstraction, Schemas, and Views Data Models Database Management System (DBMS) Components Entity Relationship Data

More information

Normal forms and normalization

Normal forms and normalization Normal forms and normalization An example of normalization using normal forms We assume we have an enterprise that buys products from different supplying companies, and we would like to keep track of our

More information

Normalization in Database Design

Normalization in Database Design in Database Design Marek Rychly mrychly@strathmore.edu Strathmore University, @ilabafrica & Brno University of Technology, Faculty of Information Technology Advanced Databases and Enterprise Systems 14

More information

C# Cname Ccity.. P1# Date1 Qnt1 P2# Date2 P9# Date9 1 Codd London.. 1 21.01 20 2 23.01 2 Martin Paris.. 1 26.10 25 3 Deen London.. 2 29.

C# Cname Ccity.. P1# Date1 Qnt1 P2# Date2 P9# Date9 1 Codd London.. 1 21.01 20 2 23.01 2 Martin Paris.. 1 26.10 25 3 Deen London.. 2 29. 4. Normalisation 4.1 Introduction Suppose we are now given the task of designing and creating a database. How do we produce a good design? What relations should we have in the database? What attributes

More information

Why & How: Business Data Modelling. It should be a requirement of the job that business analysts document process AND data requirements

Why & How: Business Data Modelling. It should be a requirement of the job that business analysts document process AND data requirements Introduction It should be a requirement of the job that business analysts document process AND data requirements Process create, read, update and delete data they manipulate data. Process that aren t manipulating

More information

Normalization. Reduces the liklihood of anomolies

Normalization. Reduces the liklihood of anomolies Normalization Normalization Tables are important, but properly designing them is even more important so the DBMS can do its job Normalization the process for evaluating and correcting table structures

More information

Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases

Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Outline Informal Design Guidelines

More information

Database Normalization. Mohua Sarkar, Ph.D Software Engineer California Pacific Medical Center 415-600-7003 sarkarm@sutterhealth.

Database Normalization. Mohua Sarkar, Ph.D Software Engineer California Pacific Medical Center 415-600-7003 sarkarm@sutterhealth. Database Normalization Mohua Sarkar, Ph.D Software Engineer California Pacific Medical Center 415-600-7003 sarkarm@sutterhealth.org Definition A database is an organized collection of data whose content

More information

Entity Relationship Diagram

Entity Relationship Diagram Yufei Tao Department of Computer Science and Engineering Chinese University of Hong Kong A primary goal of database design is to decide what tables to create. Usually, there are two principles: 1 Capture

More information

1 Class Diagrams and Entity Relationship Diagrams (ERD)

1 Class Diagrams and Entity Relationship Diagrams (ERD) 1 Class Diagrams and Entity Relationship Diagrams (ERD) Class diagrams and ERDs both model the structure of a system. Class diagrams represent the dynamic aspects of a system: both the structural and behavioural

More information

Database design 1 The Database Design Process: Before you build the tables and other objects that will make up your system, it is important to take time to design it. A good design is the keystone to creating

More information

COSC344 Database Theory and Applications. Lecture 9 Normalisation. COSC344 Lecture 9 1

COSC344 Database Theory and Applications. Lecture 9 Normalisation. COSC344 Lecture 9 1 COSC344 Database Theory and Applications Lecture 9 Normalisation COSC344 Lecture 9 1 Overview Last Lecture Functional Dependencies This Lecture Normalisation Introduction 1NF 2NF 3NF BCNF Source: Section

More information

MODULE 8 LOGICAL DATABASE DESIGN. Contents. 2. LEARNING UNIT 1 Entity-relationship(E-R) modelling of data elements of an application.

MODULE 8 LOGICAL DATABASE DESIGN. Contents. 2. LEARNING UNIT 1 Entity-relationship(E-R) modelling of data elements of an application. MODULE 8 LOGICAL DATABASE DESIGN Contents 1. MOTIVATION AND LEARNING GOALS 2. LEARNING UNIT 1 Entity-relationship(E-R) modelling of data elements of an application. 3. LEARNING UNIT 2 Organization of data

More information

Database Design and Normalization

Database Design and Normalization Database Design and Normalization CPS352: Database Systems Simon Miner Gordon College Last Revised: 9/27/12 Agenda Check-in Functional Dependencies (continued) Design Project E-R Diagram Presentations

More information

Databases What the Specification Says

Databases What the Specification Says Databases What the Specification Says Describe flat files and relational databases, explaining the differences between them; Design a simple relational database to the third normal form (3NF), using entityrelationship

More information

Conceptual Design: Entity Relationship Models. Objectives. Overview

Conceptual Design: Entity Relationship Models. Objectives. Overview Conceptual Design: Entity Relationship Models Craig Van Slyke, University of Central Florida cvanslyke@bus.ucf.edu John Day, Ohio University Objectives Define terms related to entity relationship modeling,

More information

BCA. Database Management System

BCA. Database Management System BCA IV Sem Database Management System Multiple choice questions 1. A Database Management System (DBMS) is A. Collection of interrelated data B. Collection of programs to access data C. Collection of data

More information

Conceptual Design Using the Entity-Relationship (ER) Model

Conceptual Design Using the Entity-Relationship (ER) Model Conceptual Design Using the Entity-Relationship (ER) Model Module 5, Lectures 1 and 2 Database Management Systems, R. Ramakrishnan 1 Overview of Database Design Conceptual design: (ER Model is used at

More information