Preview

Database Models: Entity Relationship Modeling

Satisfactory Essays
Open Document
Open Document
735 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Database Models: Entity Relationship Modeling
Database Models s L11: ER Diagrams
Kieran Herley
Summary The database design process and the role of ER modelling in same. Basic constituents of ER diagrams: entities, relationships and attributes.

While designing database it’s handy to have notation to “sketch” schema s Two common diagrammatic notations: x x s UML diagrams (Universal Modelling Language) ER diagrams (Entity Relationship) → cs1106 choice

Captures the information requirements of our database: what data it con and how these interrelate

[TOC]

ER Di

Database Development Process
1. Requirements analysis: figure out what is required of our database 2. Design: s s s s

Entities

Develop an ER diagram to sketch a design that meets these requirements “Translate” ER diagram into detailed DB schema

An entity is a “thing” e.g. a person An entity set is a collection of similar entities e.g. a collection of persons s An attribute is some property of the entities in an entity set e.g. the dat birth of each person

3. Implementation: Generate SQL code for design

[TOC]

ER Diagrams – 3 / 18

[TOC]

ER Di

Entities in ER Diagrams s Relationships
Relationship captures a connection between two or more entity sets s Example: s Will represent entity sets using rectangles, attributes as ovals

x x

Entity sets: students, modules Relationships: s s

is taking: Alice is taking cs1106 loves: Bob loves cs1109

s

Entity set eaters has attributes name and address; each entity with this set has a value for each attribute

[TOC]

ER Diagrams – 5 / 18

[TOC]

ER Di

Relationships in ER Diagrams s A More Complex Example
Key:
s s s

We use diamonds to depict relationships

Restaurants serve some foods Eaters like some foods Eaters frequent some restaur

s

Connect diamond to entity sets involved in relationship

[TOC]

ER Diagrams – 7 / 18

[TOC]

ER Di

Relationship Sets
The “value” of an entity set is the set of entities that

You May Also Find These Documents Helpful

  • Good Essays

    An entity relationship diagram (ERD) is a graphical documentation technique used in the designing of database within organizations to describe the entities and their direct relationships (Bagranoff, Simkin, & Strand, 2008). The ERD diagram consists of entities, attributes, and relationship. The entity represents a rectangular; the diamond is symbolized by describing the relationship of the entities, oval shape describes the attributes, and the lines connect all three to describe their relationship. Attached is an ERD of Kudler Fine Foods showing their existing data tables.…

    • 496 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    3. (2 pts) Draw the ERD for the following scenario. Include all the attributes. Note that one of your tables will have a composite identifier.…

    • 298 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Kroenke, D. M., & Auer, D. J. (2010). Database Concepts (4th ed.). Retrieved from https://ecampus.phoenix.edu/content/eBookLibrary2.…

    • 553 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Acme Global Consulting

    • 678 Words
    • 3 Pages

    Another advantage of having an E-R model DBMS is the components of this model. This will allow your different employee groups to distinguish the differences between these different components in the model. Some of the components are entities that represent a person, place event or an object in the real world that is modeled in the DBMS. Another component is attributes; this represents the defining qualities or properties of the entity type. One more entity is called a…

    • 678 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Unit 3 research

    • 383 Words
    • 2 Pages

    An entity-relationship diagram is a specialized graphic that illustrates the relationships between entities in a database. ER diagrams often use symbols to represent three different types of information. Boxes are commonly used to represent entities. Diamonds are normally used to represent relationships and ovals are used to represent attributes…

    • 383 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    IST223 Crib sheet

    • 3425 Words
    • 7 Pages

    rectangles, and relationships are shown by lines between the rectangles. Attributes are generally listed within the rectangle. The many side of many relationships is represented by a crows footentity-relationship (E-R) modelA set of constructs and conventions used to create data models. The things in the users world are represented by entities, and the associations among those things are represented by relationships. The results are usually documented in an entity-relationship (E-R) diagramID-dependent entityan entity whose identifier includes the identifier of another entityidentifierwhich are attributes that name, or identify, entity instancesidentifying relationshipIn such relationships, the parent is always required, but the child (the ID-dependent entity) may or may not be required, depending on application requirements. Identifying relationships are shown with solid lines in E-R diagrams.is-aRelationships among supertype/subtype entitiesmandatoryat least one entity instance must participate in the relationshipmaximum cardinalityThe maximum cardinality is the maximum number of entity instances that can participate in a relationship instance.minimum cardinalityThe minimum cardinality is the minimum number of entity instances that must participate in a relationship instance.nonidentifying relationshiprelationship drawn with a dashed line (refer to Figure 5-7) is used between strong entities and is called a nonidentifying relationship because there are no ID-dependent entities in the relationship.null valueare a problem because they are ambiguous. They can mean that a value is inappropriate, unknown, or known, but not yet been entered into the databaseparentAn entity or row on the one side of a one-to-many relationshiprecursive relationshipoccurs when an entity type has a relationship to itself.relationship classAssociations among entity classesrelationship instanceassociations among entity instances.strong entityan entity that represents something that can exist…

    • 3425 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    As part of this proposal, the below charts will diagram the database. It is to be used as a reference to the purposed database. Tables have been diagramed along with the proper schema, data types, and primary/secondary keys.…

    • 515 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Bis245 Ilab

    • 2683 Words
    • 11 Pages

    A. Lab # : BSBA BIS245A-1 B. Lab 1 of 7 : Introduction to MS Visio and MS Access C. Lab Overview--Scenario/Summary TCOs: 1. Given a business situation in which managers require information from a database, determine, analyze and classify that information so that reports can be designed to meet the requirements. 2. Given a situation containing entities, business rules, and data requirements, create the conceptual model of the database using a database modeling tool. Scenario: You have been asked to create two conceptual database models using MS Visio Database Model Diagram Template. The purpose of this lab is to have you gain familiarity with the various modeling tools needed to create a conceptual model (entity relationship diagram) of a database. You will create two conceptual models. You will then open an existing Access database to explore database objects and to experiment with simple data manipulation using filters and sorts and to begin elementary work with relationships. Upon completing this lab, you will be able to 1. relying on detailed instructions, create a simple conceptual model for a two-table database using MS Visio; 2. use experience gained in creating the first model to construct a similar conceptual model without the instructions; and 3. download an existing Microsoft Access database file. Open the database; find and identify different database objects in this database.…

    • 2683 Words
    • 11 Pages
    Satisfactory Essays
  • Better Essays

    In the following paragraphs LTA will discuss the database architecture briefly and primary keys, which play a vital role in an Entity-Relational Database. The discussions of the different types of mistakes that are made in the design phase that led to a poor database design are also discussed. Mistakes include the lack of careful planning, proper normalization of data, poor naming conventions, lack of sufficient documentation and extensive testing. The ERD for the database will be revealed along with the choice of the program to manage the database and allow for versatility for various platforms, applications, and features.…

    • 2033 Words
    • 9 Pages
    Better Essays
  • Good Essays

    Cis 111

    • 790 Words
    • 4 Pages

    o Attribute – Is a property or characteristic of an entity type that is of interest to an organization.…

    • 790 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Gavin Menzies' Voyages

    • 542 Words
    • 3 Pages

    Gavin Menzies was a royal navy submarine captain that worked for the British government and now is trying to let the world know his opinion on the discovery of the Americas: did the Chinese discover the Americas before Columbus? Menzies takes on a voyage where he tries to find evidence to support his thesis and comes up with several different theories; his first stop: Calicut.…

    • 542 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Attributes describes one aspect of an entity type. Entity type is described by set of attributes. An entity is a real-world item or concept that exists on its own (Shiflet, 2002). The set of all possible values for an entity is the entity type. Each entity has attributes, or particular properties that describe the entity. For example student Indra Paudel has properties of his own studentID, StudentName and StudentGrade.…

    • 688 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Dbm380 Course Syllabus

    • 2296 Words
    • 10 Pages

    Course Description This course covers database concepts. Topics include data analysis, the principal data models with emphasis on the relational model, entity-relationship diagrams, database design, normalization, and database administration. Policies Faculty and students will be held responsible for understanding and adhering to all policies contained within the following two documents: • • University policies: You must be logged into the student website to view this document. Instructor policies: This document is posted in the Course Materials forum.…

    • 2296 Words
    • 10 Pages
    Satisfactory Essays
  • Better Essays

    CIS 515 Assignment 3

    • 1079 Words
    • 5 Pages

    Provide an Entity Relationship Model (ERM) that will describe the data structure that will store all data elements.…

    • 1079 Words
    • 5 Pages
    Better Essays
  • Powerful Essays

    Bank Management System

    • 12668 Words
    • 51 Pages

    Ali Ahmad, 2006, Policies & Regulations for Expanding e-banking to the poor, The First Microfinance Bank Ltd, Pakistan, 5…

    • 12668 Words
    • 51 Pages
    Powerful Essays