Data modelling uses two main techniques Entity relationship (E-R) modelling: a top- down approach Normalisation: a bottom-up approach.

Slides:



Advertisements
Similar presentations
Entities and Relationships
Advertisements

CSCI3170 Introduction to Database Systems
Data Modeling and the Entity-Relationship Model
--The Entity Relationship Model(3)--1 Outline  ER model  Overview  Entity types Attributes, keys  Relationship types  Weak entity types  Uses Crows.
Entity Relationship (ER) Modeling
Data Modeling and the Entity-Relationship Model
Library & Information Services Using the Library Catalogue Part 1: Searching the Catalogue Rachael Hartiss 2008.
Agenda for Week 1/31 & 2/2 Learn about database design
Database design concepts info1408 Lecture 8 Worked example of E:R Modelling.
Database design concepts info1408 Lecture 8 Worked example of E:R Modelling.
Further Data Modelling …and the effect of time. Plan Introduction Structured Methods –Data Flow Modelling –Data Modelling –Relational Data Analysis –Further.
FIS 431/631 Financial Information Systems: Analysis and Design ERD & Normalization Joe Callaghan Oakland University Department of Accounting & Finance.
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Library & Information Services Using the Library Catalogue Part 2: My Account Reserving Items Reading lists Rachael Hartiss 2008.
Relational Databases What is a relational database? What would we use one for? What do they look like? How can we describe them? How can you create one?
Case study Lisa’s Bookstore IST210.
Electronic Library Management System (ELiMS). Content Overview on ELiMS Key Fact on National Library Board Entities, Key Attributes Entities – Relationship.
Mapping ERM to relational database
Web Database Design Session 6 and 7 Matakuliah: Web Database Tahun: 2008.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
ZEIT2301 – Database Design Entity-Relationship Diagrams
Entity Relationship Diagrams
2.3 Organising Data for Effective Retrieval
Business Process Modeling
School library systems 3.2 Education. Libraries often contain many thousands of books, magazines, CD- ROMs, etc. In fact, some of the largest libraries.
Relational Database Concepts. Let’s start with a simple example of a database application Assume that you want to keep track of your clients’ names, addresses,
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
Practice of ER modeling
CSCI3170 Introduction to Database Systems
Introduction to Sequence Diagrams
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
Concepts and Terminology Introduction to Database.
ICT IGCSE.  Understand a wide range of work-related ICT applications and their effects, including applications in libraries (such as records of books.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping.
Jan 21, Ron McFadyen1 Ch 10. Domain Model: Visualizing Concepts Domain model illustrated with a class diagram (with no operations defined)
An Introduction to Data Modelling Entity Relationship Modelling Avin Mathew Nov 2010.
Data Modeling IST210 Class Lecture.
1. Objectives At the end of this chapter you should be able to:  Discuss the use and features of a data model  Define the terms entity and attribute.
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
Database Design. The process of developing database structures from user requirements for data a structured methodology Structured Methodology - a number.
advanced data modeling
Copyright Ó Oracle Corporation, All rights reserved. Assign Unique Identifiers A Unique Identifier (UID) is any combination of attributes and/or.
Tutorial 2 Data Modelling. 3 Terminology & Notation(1) An entity is an object about which the system needs to hold information –Customer, Student, Course.
Sample Table Standard Notation Entity name in uppercase
Systems Analysis & Design
COMP 430 Intro. to Database Systems Entity-Relationship Diagram Basics Slides use ideas from Chris Ré.
©Silberschatz, Korth and Sudarshan2.1Database System Concepts Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Mapping Constraints Keys.
Normalisation Unit 6: Databases. Just to recap  What is an Entity  What is an Attribute?
1 Entity Relationship Approach u Top-down approach to data modeling u Uses diagrams u Normalization - confirms technical soundness u Entity Relationship.
G057 - Lecture 05 From Scenario To Design Mr C Johnston ICT Teacher
Year 12 > 13 Applied GCE ICT Unit 7 Using Database Software.
The Athens Regional Library System is proud to introduce the new statewide online public access catalog Developed and maintained by the: Georgia Public.
Week 03 – ER Diagram INFOSYS 222.
VCE IT Theory Slideshows – ITI Updated for 2016
Requirements Become the E-R Data Model
Database Design – Lecture 4
Start at 17th March 2012 end at 31th March 2012
ER MODEL Lecture 3.
ER Models ISSUES and Examples CS263 Lecture 9
Overview of Entity‐Relationship Model
Entity – Relationship Model
MIS2502: Data Analytics Relational Data Modeling
Databases.
To view, Enable Editing, select Slide Show, select From Beginning
Chapter 7: Entity-Relationship Model
MIS2502: Data Analytics Relational Data Modeling 2
Presentation transcript:

Data modelling uses two main techniques Entity relationship (E-R) modelling: a top- down approach Normalisation: a bottom-up approach

E-R modelling: looks for the data objects in the system is a useful first attempt to organize the data results in a data model which may be incomplete is based on common sense rather than mathematical rigour

Normalization processes the data items collected during fact-finding follows well-defined rules structures the data items into a related set of entities

Named relationship

The degree of a relationship Customer to Order is one to many any one customer places many (one or more) orders any one order is placed by just one customer. A relationship indicated by a line between entities The degree of the relationship indicated by a crow’s foot on the many end of the line.

Relationships between entities can be: One to one One to many Many to many The terms multiplicity and cardinality are sometimes used

Optional and mandatory relationships Optional if an occurrence of one entity to can exist without being associated with an occurrence of the other entity. The relationship between the entity Mother and the entity Son: mandatory for Son (must have (had) a mother) optional for Mother (all her children may be daughters) optional relationships shown by dashed lines mandatory relationships by solid lines

Optional relationship for Mother, mandatory relationship for Son

Mandatory relationship for both Student and Course

Summary of notation for data modelling

Enterprise rules rules that govern the data in the system i.e.what data the system requires and how the data items relate to each

Redundant data Data is deemed to be redundant in the following situations: The data is never used by the system. The same data items (e.g. customerName, customerAddress) are stored in more than one place in the system. Data in one place can be derived from data held in another place in the system (e.g. the total order price can be derived from the individual item prices and ordered quantities).

The library system A library keeps records of loans, books and members. It stores members’ names, addresses, status (junior or senior), loan limit (number of books a member may borrow) and date of birth; members are given individual member numbers when they join the library. The library also stores information about its books: title, authors, publishers, publication date, ISBN and purchase price. As some books are very popular, the library often buys several copies of the same book. All loans are for three weeks. The library needs to be able to record, edit and delete member details; record, edit and delete book details; record loans and returns, and reserve books. Overdue notices are to be sent when books are overdue. It also wants its library system to automatically update member status. The system must also record the current price of a book.

Enterprise rules: library data Individual copies of books are identified by library ID number; loans: the library needs to be able to identify which copy of the book has been borrowed - use library ID number; The book itself, i.e. a specific title/author combination, is identified by its ISBN;

Enterprise rules Members are identified by member number; Member status determines how many books a member may borrow – the ‘loan limit’. To keep the example simple, we are ignoring issues relating to fines for overdue books. Do this example in the class