Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Information Modelling and the logical data structure.

Slides:



Advertisements
Similar presentations
Entity Relationship Diagrams
Advertisements

Chapter 2.1 V3.1 Napier University Dr Gordon Russell
Ch5: ER Diagrams - Part 1 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
System Analysis - Data Modeling
Entity Relationship Diagrams Basic Elements and Rules.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Data.
Agenda for Week 1/31 & 2/2 Learn about database design
Modeling Data The Entity Relationship Model (ER) For Database Design.
Data Modeling Entity - Relationship Models. Models Used to represent unstructured problems A model is a representation of reality Logical models  show.
Slides adapted from A. Silberschatz et al. Database System Concepts, 5th Ed. Entity-Relationship Model Database Management Systems I Alex Coman, Winter.
Chapter 8 Structuring System Data Requirements
Database Design Concepts Info1408
Modern Systems Analysis and Design Third Edition
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
Entity-Relationship Design
Entity Relationship Model Chapter 6. Basic Elements of E-R Model Entity Object of the real world that stores data. Eg. Customer, State, Project, Supplier,
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
Ch5: ER Diagrams - Part 2 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
IT 244 Database Management System Data Modeling 1 Ref: A First Course in Database System Jeffrey D Ullman & Jennifer Widom.
Computer System Analysis Chapter 10 Structuring System Requirements: Conceptual Data Modeling Dr. Sana’a Wafa Al-Sayegh 1 st quadmaster University of Palestine.
Data Modeling ERM ERD.
1. 2 Data Modeling 3 Process of creating a logical representation of the structure of the database The most important task in database development E-R.
Entity-relationship Modeling Transparencies 1. ©Pearson Education 2009 Objectives How to use ER modeling in database design. The basic concepts of an.
DATA MODELLING TOOLS FOR ORGANISING DATABASES. For a database to be organised and logical, it must be well-designed and set out. In such cases, the databases.
CHAPTER 2. FUNDAMENTAL OF ENTITY RELATIONSHIP (ER)
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
CSCI 3140 Module 2 – Conceptual Database Design Theodore Chiasson Dalhousie University.
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
Conceptual Data Modeling. What Is a Conceptual Data Model? A detailed model that shows the overall structure of organizational data A detailed model.
IMS 6217: Relationships 1 Dr. Lawrence West, MIS Dept., University of Central Florida Database Design--Topics DB Design Steps Identify.
Database Design Principles – Lecture 3
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
Entity-Relationship (ER) Modelling ER modelling - Identify entities - Identify relationships - Construct ER diagram - Collect attributes for entities &
Initial Design of Entity Types for the COMPANY Database Schema Based on the requirements, we can identify four initial entity types in the COMPANY database:
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
1 A Demo of Logical Database Design. 2 Aim of the demo To develop an understanding of the logical view of data and the importance of the relational model.
Data modeling using the entity-relationship model Chapter 3 Objectives How entities, tuples, attributes and relationships among entities are represented.
ERD ( Conceptual data model From the statement of data requirements a conceptual data model is produced. This describes.
Part4 Methodology of Database Design Chapter 07- Overview of Conceptual Database Design Lu Wei College of Software and Microelectronics Northwestern Polytechnical.
Databases Illuminated Chapter 3 The Entity Relationship Model.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
Dr Gordon Russell, Napier University Data Analysis 1 - V2.0 1 Data Analysis 1 Unit 2.1.
Tutorial 2 Data Modelling. 3 Terminology & Notation(1) An entity is an object about which the system needs to hold information –Customer, Student, Course.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 10 Structuring.
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
COP Introduction to Database Structures
Database Design Chapters 17 and 18.
Entity Relationship Modeling
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Data Modeling Using the ERD
Entity-Relationship Model
Tables and Their Characteristics
Data Modelling Chapter 7
Entity Relationship Diagrams
IST 318 Database Administration
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
CHAPTER 2 - Database Requirements and ER Modeling
Chapter 10 Structuring System Requirements: Conceptual Data Modeling
Lecture 10 Structuring System Requirements: Conceptual Data Modeling
Entity-Relationship Design
Presentation transcript:

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Information Modelling and the logical data structure

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Information Modelling l What is an entity? l What do we mean by relationship ? l Why model the data in a system? l What is a logical data structure? l LDS notation

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing What is an entity? An entity is a ‘thing’ which can be distinctly identified some distinct identifiable thing for which the system must store data in order to perform its fundamental activities

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Attributes of an entity An entity (or object) will have certain features that can take different values. These features are called attributes. An attribute is an elementary data element that describes an object or a fact about an object

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Entity examples Entities can be described by: customer = customer number + customer name + customer address person = name + addr + NI# + occupation + DOB + height etc... Or customer (customer number, customer name, customer address)

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Entity guidelines l Entity names should be a noun or noun phrase l Names should represent the role or classification of the thing l Uniquely identifiable occurrences l Entities must have attributes l Should be of interest to the business

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Identifying entity occurrences (1) A means to identifiy one entity occurrence from another is needed. A candidate key is an attribute, or set of attributes, of an entity which uniquely identifies a single occurrence from all others

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Identifying entity occurrences (2) A primary key is A alternate key is the particular candidate key chosen to identify a single entry a candidate key not chosen to be the primary key

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing What do we mean by relationship? A relationship l represents a set of connections between objects l represents an association between objects in the real world l is an association between two (or more) entities

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Relationship guidelines l Occurrences of a relationship created when events occur l Regard as a sentence with place holders works in l Use active rather than passive names reports to rather than is reported to

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Why model data in a system? l The information model describes the information required to support the system l It helps to organise information and define what it means Examples attendee name public course and course full course

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing The information model (1) Carefully organised and defined info l helps info to be understood l avoids redundancy l ensures correctness, validity and completeness

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing The information model (2) The information model concerns: l entities - categories of things that information describes l relationships - associations between entities l attributes - qualities or properties of entities

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Information example Given the following statement of purpose of a system determine the entities, relationships between them and the attributes required. Trent College requires a new student record system to be set up. It must be able to show who is on which course and in which department it is run. It should hold student information for mail shots etc.

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing What is a logical data structure (LDS)? An LDS is a graphical representation which It is a semantic modelling tool which helps to clarify concept highlights important categories of information (entities) and relevant associations between them (relationships)

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing The LDS Used to identify and organise information used by the system (not just stored) AB C X Y

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing LDS notation (1) l The entity l The relationship LecturerCourse teaches taught by

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing LDS notation (2) l Connecting entities via relatioships LecturerCourse teaches taught by ProjectPart uses used by Supplier Supplies Supplied by

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Cardinality of a relationship l 1:1 l 1:N l M:N LecturerCourse teaches taught by LecturerCourse teaches taught by LecturerCourse teaches taught by

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Participation in a relationship OfficeEmployee occupied by occupies OfficeEmployee occupied by occupies OfficeEmployee occupied by occupies OfficeEmployee occupied by occupies

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Recursive relationships A relationship from one entity type to itself Eg, Employees may be managers too May also be 1:1, or M:N Employee managed by manages

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Sub-types/Supertypes Treatment In Patient Patient Out Patient Doctor Out-patient Treatment Out-patient Department Bed provides provided by given to given given to given given by gives occupies occupied by

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing LDS construction guidelines l Define the area for analysis l Determine entities and attributes l Determine key attributes of entities l Add remaining attributes to entities l Determine the relationships between the entities l Examine events and operations of system to ensure that the model supports them

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Data dictionary entries Entities l Definition of its role l Attributes that describe it Relationships l Reference to entities involved l Cardinality/Optionality

Dr. Andy Seddon Staffordshire UNIVERSITY School of Computing Summary l Entities l Attributes l Relationships l Logical data structure l Cardinality of relationships l Participation of relationships l Data dictionary