Databases and E-R Diagrams Access/IPS Walsall College of Arts & Technology.

Slides:



Advertisements
Similar presentations
Banking Business Scenario
Advertisements

ER Model For a college DB
WHAT D IS RAW, UNPROCESSED FACTS AND FIGURES COLLECTED, STORED AND PROCESSED BY COMPUTERS.
Database Basics Alan B. Marr, M.D., F.A.C.S. Associate Professor of Clinical Surgery.
ENTITY RELATIONSHIP MODELLING
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Database BA471 – Fall 2007 Dr. V.T. Raja Oregon State University.
From Class Diagrams to Databases. So far we have considered “objects” Objects have attributes Objects have operations Attributes are the things you record.
Lecture Eleven Entity-Relationship Modelling
Data Modeling with ERD ISYS 363. Entity-Relationship Diagram An entity is a “thing” in the real world, such as a person, place, event for which we intend.
Entity Relationship Diagrams
Entity-Relationship Model and Diagrams (continued)
Database design concepts info1408 Lecture 8 Worked example of E:R Modelling.
Entity-Relationship Modelling Introduced by Chen in 1976 The ER Model is used to construct the conceptual data model – independent of DBMS Most widely.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
1 Database Design Victor Matos. 2 Phases of Database Design u Conceptual design begins with the collection of requirements and results needed from the.
8/28/97Information Organization and Retrieval Files and Databases University of California, Berkeley School of Information Management and Systems SIMS.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
Database Design Concepts Lecture 7 Introduction to E:R Modelling Identifying Entities.
Databases Dr. V.T. Raja Oregon State University. Databases – Part 1: Outline Introduction Data Hierarchy Traditional file management Terminology Database.
Announcements Reading for Wednesday Homework 2 - Due 9/22
WJEC Applied ICT Databases – Attributes & Entities Entities A database contains one or more related tables. Each table holds all of the information.
Computer Science & Engineering 2111 Introduction to Database Management Systems Relationships and Database Creation 1 CSE 2111 Introduction to Database.
Things are bad. Children no longer obey their parents and everyone is writing a book. -- Marcus Tillius Cicero.
CS411 Database Systems Kazuhiro Minami
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,
LIS512 lecture 1 the entity-relationship model Thomas Krichel
Data Modeling Using the Entity-Relationship Model
ACS1803 Lecture Outline 2 DATA MANAGEMENT CONCEPTS Text, Ch. 3 How do we store data (numeric and character records) in a computer so that we can optimize.
Dr. Mohamed Osman Hegaz1 Conceptual data base design: The conceptual models: The Entity Relationship Model.
1 C omputer information systems Design Instructor: Mr. Ahmed Al Astal IGGC1202 College Requirement University Of Palestine.
Web-Enabled Decision Support Systems
Principles of Database Design, Part II AIMS 2710 R. Nakatsu.
ER Diagrams, Data Structure Diagrams and Relationship Types using the Footy Tips Database.
Bruno Oluka Tel: Technical Director, Ubunifu Systems Microsoft Access Database Lecture 1 – Introduction To Microsoft.
CSC 240 (Blum)1 Introduction to Database. CSC 240 (Blum)2 Data versus Information When people distinguish between data and information, –Data is simply.
Data Modelling. ICT5 Introduction Historical development with most organisations Small-scale origins Individual computers bought for particular applications.
Session 8: Databases Teaching Computing to GCSE Level with Python.
Information Systems & Databases 2.2) Organisation methods.
Databases ©
What we’ve learnt Doc 5.69 Doc 5.70 Section 1-3. A simple database Related objects Tables hold the data Forms, reports, queries to access the data.
Lecture 7 of Advanced Databases
Database Beginnings. Scenario so far In our scenario we have people registering for training sessions. –The data about the training sessions was placed.
Data modeling using the entity-relationship model Chapter 3 Objectives How entities, tuples, attributes and relationships among entities are represented.
 Entity-relationship models (ERM) Entity-relationship models (ERM)  Simple E-R Diagram Simple E-R Diagram  Weak Entity Weak Entity  Strong Entity.
PTADipMgt17 Assignment 1 Group 8 Session 3 Member 1 Entity Relationship Diagrams by Ms Esha Batish.
Quiz questions. 1 A data structure that is made up of fields and records? Table.
Concepts of Database Management Seventh Edition Chapter 1 Introduction to Database Management.
5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.
Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Link tables and keys Access/IPS Walsall College of Arts & Technology.
Lecture 91 Introduction to Data Analysis and Logic Specification Objectives l Draw an entity-relationship diagram, and explain the types of entity relationships.
Database Design Process For many businesses, the database is the most important set of computer files they have. For some, like EBay or Facebook, the database.
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.
Sample Table Standard Notation Entity name in uppercase
Family What is a family? There is no fixed recipe for a family; just a group of people who love and care for one another. Love and care are the most.
Database Design. Database Design Process Data Model Requirements Application 1 Database Requirements Application 2 Requirements Application 4 Requirements.
BIS 360 – Lecture Six (Part 1) Conceptual Data Modeling (Chapter 10 and partial Chapter 12)
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 340 Introduction to Database Systems.
Modeling Data in the Organization Muhammad Nasir
Moya messam.  Definition: An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a.
Entity Relationship Diagram ERD. Background Peter Chen developed ERDs in Charles Bachman and James Martin have added some slight refinements to.
CSCI-100 Introduction to Computing
Entity-Relationship Model and Diagrams (continued)
Order Database – ER Diagram
INTRODUCING DATABASES
Database Design and Development
MIS2502: Data Analytics Relational Data Modeling
Database Management system
Presentation transcript:

Databases and E-R Diagrams Access/IPS Walsall College of Arts & Technology

November 2002Walsall College of Arts & Technology 2 What we are going to cover: What is a database and why do we use them? What is a database and why do we use them? What are Entities, Attributes & Relationships (in terms of databases)? What are Entities, Attributes & Relationships (in terms of databases)? What is an Entity-Relationship diagram and why are they used? What is an Entity-Relationship diagram and why are they used? Anything else we feel like discussing Anything else we feel like discussing

November 2002Walsall College of Arts & Technology 3 What is a database? Technical version: Technical version: “A collection of persistent data in a fixed store” “A collection of persistent data in a fixed store” What? What? English version: English version: Information held about something that can be looked at more than once Information held about something that can be looked at more than once Clear as mud, eh? Clear as mud, eh?

November 2002Walsall College of Arts & Technology 4 What makes up a database? A database is made up of: A database is made up of: Tables Tables Attributes Attributes Relationships Relationships More about these in a bit More about these in a bit

November 2002Walsall College of Arts & Technology 5 Why use Databases? Quicker reference Quicker reference Take up less space – no filing cabinets Take up less space – no filing cabinets Hold more information in a smaller space Hold more information in a smaller space Information remains indexed with new entries Information remains indexed with new entries Less paper = less risk of fire! Less paper = less risk of fire! And finally….. And finally….. Because they’re really good! Because they’re really good!

November 2002Walsall College of Arts & Technology 6 What are Entities, Attributes and Relationships? Entities are things we hold information about Entities are things we hold information about Eg. A Student or a Course Eg. A Student or a Course Attributes are the different categories of information for each entity, also known as Fields. Attributes are the different categories of information for each entity, also known as Fields. Eg. Student Name, Number, etc Eg. Student Name, Number, etc A collection of Attributes is known as a Record A collection of Attributes is known as a Record Relationships are the connections between Entities Relationships are the connections between Entities Eg. A Student enrols in a Course Eg. A Student enrols in a Course

November 2002Walsall College of Arts & Technology 7 E-R Diagrams Entity-Relationship Diagrams Entity-Relationship Diagrams What are they? What are they? Diagrams to show how Entities are related to each other Diagrams to show how Entities are related to each other This may seem too easy, but it really is that simple! This may seem too easy, but it really is that simple! What does one look like? What does one look like? We’ll see in a moment We’ll see in a moment

November 2002Walsall College of Arts & Technology 8 3 of a kind There are 3 kinds of Relationship There are 3 kinds of Relationship One to One One to One One to Many One to Many Many to Many Many to Many More explanation is required….. More explanation is required….. The best way to explain these, is through examples The best way to explain these, is through examples

November 2002Walsall College of Arts & Technology 9 One to One We’ll use Husbands and Wives We’ll use Husbands and Wives If we have an entity “Husband” and an entity “Wife” If we have an entity “Husband” and an entity “Wife” In English Law, One Husband can have One Wife and vice-versa In English Law, One Husband can have One Wife and vice-versa HUSBANDWIFE

November 2002Walsall College of Arts & Technology 10 One to Many We’ll use Football Teams and Players We’ll use Football Teams and Players If we have an Entity “Team” and an Entity “Player” If we have an Entity “Team” and an Entity “Player” A Team can have many Players, but a Player can only play for one Team A Team can have many Players, but a Player can only play for one Team TEAMPLAYER

November 2002Walsall College of Arts & Technology 11 Many to Many We’ll use Films and Filmstars We’ll use Films and Filmstars If we have an entity “Film” and an entity “Filmstar” If we have an entity “Film” and an entity “Filmstar” A Film has many Filmstars and a Filmstar can be in many Films. A Film has many Filmstars and a Filmstar can be in many Films. FILMFILMSTAR

November 2002Walsall College of Arts & Technology 12 Exercise Work out the relationships between, and draw a diagram for the following entities Work out the relationships between, and draw a diagram for the following entities Computer and Computer Game Computer and Computer Game Company and Branch Office Company and Branch Office Veterinary Surgeon & Practice Veterinary Surgeon & Practice Customer Car & Registered Owner Customer Car & Registered Owner

November 2002Walsall College of Arts & Technology 13 Acknowledgement Some of the material in this presentation was taken from a presentation by Janet Hardy, Lecturer in Computer Science dept, University of Wales, Aberystwyth Some of the material in this presentation was taken from a presentation by Janet Hardy, Lecturer in Computer Science dept, University of Wales, Aberystwyth Thanks Janet! Thanks Janet!