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
  • 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

    The Entity Relationship Diagram, also known as (ERD) demonstrates the relationship between data in the new database. ERD shows the logical path that the data follows. The data model gives one understanding and the visual representation to observe the different phases of the database and determine the path the information is pulled or stored from. Learning Team D demonstrate linking the different tables in the Fleet Truck Maintenance database. The creation of the logical path predicts the flow of the data entered and the tables relationship to other tables in the database.…

    • 553 Words
    • 3 Pages
    Satisfactory 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
  • 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
  • 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

    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

    Entity Relation Diagram

    • 3540 Words
    • 15 Pages

    An entity may be a physical object such as a house or a car, an ev ent such as a house sale or a car service, or a concept such as a customer transaction or order. Although the term entity is the one most commonly used, following Chen we should really distinguish between an entity and an entity-type. An entity-type is a category. An entity, strictly speaking, is an instance of a given entity-type. There are usually many instances of an entity-type. Because the term entity-type is somewhat cumbersome, most people tend to use the term entity as a synonym for this term. Entities can be thought of as nouns. Examples: a computer, an…

    • 3540 Words
    • 15 Pages
    Powerful Essays
  • Powerful Essays

    Tutorial Week 7 - Class and Entity-Relationship Diagrams 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 features. ERDs, depicting only structural features provide a static view of the system.…

    • 1815 Words
    • 8 Pages
    Powerful Essays
  • Satisfactory Essays

    Entity Relational Diagram

    • 2320 Words
    • 10 Pages

    Entity - a thing (animate or inanimate) of independent physical or conceptual existence and distinguishable. In the University database context, an individual student, faculty member, a class room, a course are entities. Entity Set or Entity TypeCollection of entities all having the same properties. Student entity set – collection of all student entities. Course entity set – collection of all course entities.…

    • 2320 Words
    • 10 Pages
    Satisfactory 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