Database Design and Development

Slides:



Advertisements
Similar presentations
Banking Business Scenario
Advertisements

ER Model For a college DB
Logical DB Design: ER to Relational Entity sets to tables. Employees ssn name lot CREATE TABLE Employees (ssn CHAR (11), name CHAR (20), lot INTEGER, PRIMARY.
Weak Entity Sets. Occasionally, entities of an entity set need “help” to identify them uniquely. Example. Crews might have a number and some description,
Weak Entity Sets. Occasionally, entities of an entity set need “help” to identify them uniquely. Entity set E is weak if in order to identify entities.
WELL-DESIGNED DATABASES Process faster Easy to develop and maintain Easy to read and write code.
Entity-Relationship Modelling Introduced by Chen in 1976 The ER Model is used to construct the conceptual data model – independent of DBMS Most widely.
Entity PrimaryKey Attribute relationship Cardinality: zero to many Cardinality: one and only one Cardinality: one to many Explanation Entity Relationship.
The Teacher Computing Database Design CP4 Revision.
Driving School Database
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
G057 - Lecture 02 Introduction To Database System Concepts Mr C Johnston ICT Teacher
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.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj InClass ER Examples.
Database Management Systems MIT Lesson 02 – Database Design (Entity Relationship Diagram) By S. Sabraz Nawaz.
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
Description and exemplification of entity-relationship modelling.
ENTITY RELATIONSHIP DIAGRAM ENTITY RELATIONSHIP DIAGRAM IS A SPECIALIZED GRAPHIC THAT ILLUSTRATES THE INTERRELATIONSHIPS BETWEEN ENTITIES IN A DATABASE.
Relational Theory and Design
Order Database – ER Diagram Prepared by Megan Foster Fall Semester 2014.
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
Conversion from ER diagram to relational model 1 ER is a visual model The relational model is a matemathical model.
A short revision on entity- relationship modelling.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Course Instructor: Kashif I hsan 1. Chapter # 6 2.
Normalisation Unit 6: Databases. Just to recap  What is an Entity  What is an Attribute?
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
Copyright © 2014 Pearson Canada Inc. 5-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5a Database Design Part 2: Using Information Technology.
Entity-Relationship Data Model
Database Design Chapters 17 and 18.
Order Database – ER Diagram
Let try to identify the conectivity of these entity relationship
Application Extension 5a
Database Development Lifecycle
Entity-Relationship Model
Some Simple Design Modeling Techniques
Semantic Object Modeling (SOM)
Entity Relationship Model
3.5 Databases Relationships.
University of Milano Bicocca, Italy Carlo Batini
Entity-Relationship Model
Database Concepts Relational Databases Start ….
The Jonesburgh County Basketball Conference (JCBC) is an amateur basketball  association. Each city in the county has one team that represents it.  Each.
Outline of the ER Model By S.Saha
Mr C Johnston ICT Teacher
Order Database – ER Diagram
CSCI-100 Introduction to Computing
Database Design and Development
Entity-Relationship Model and Diagrams (continued)
Order Database – ER Diagram
Entity relationship diagrams
5.02 Understand database queries, forms, and reports used in business.
Session 2 Welcome: The seventh learning sequence
Database Design and Development
Database Normalisation
Session 2 Welcome: The fifth learning sequence
Database Modeling using Entity Relationship Model (E-R Model)
Database Design and Development
Database Design and Development
Databases.
Chengyu Sun California State University, Los Angeles
MIS2502: Data Analytics Relational Data Modeling
Entity-Relationship Diagram (ERD)
Lesson Objectives Aims You should know about: 1.3.2:
Database Management system
Entity-Relationship Data Model
G061 - Data Dictionary.
Conceptual Data Modeling
Presentation transcript:

Database Design and Development Entity Relationships

Learning Intention I will learn about entity relationships.

Entity Relationships We have already seen a number of relationships between different entities: A vets customers and their pets PS teachers and their pupils Football players and their agents Airline customers and their flights

One customer can have many pets. Entity Relationships An entity-relationship diagram is a graphical representation of the entities in a system. Shows the relationship between two or more entities. e.g a vet surgeries customers and their pets: One customer can have many pets. Customer Pet is the owner of

Entity Relationships (cont) entities description of relationship looks after contracts of Agent Player one-to-many (cardinality) Each agent looks after many players.

Cardinality A relationship between two entities can be one of the following: one to one e.g. one jockey rides one horse in a race one to many e.g. one coach teaches many players many to many e.g. many school pupils learn many subjects

Entity Relationships (cont) Draw the entity relationship diagram for the relationship between the following entities. Include the entities, the description of the relationship and the cardinality. Personal Support Teachers and Pupils A Country and its Cities TIME UP 5min 4min 3min 2min 1min 0

PS Support Teachers and Pupils registers and teaches PS Teacher Pupil One PS Teacher registers and teaches many pupils.

Countries and cities Country City has within its borders Country City One country has many cities within its borders.

Entity Relationship with attributes Entity relationship diagrams can also be used to show the attributes of each entity: Pet ID Customer ID Forename Pet Name is the owner of Customer Pet Surname Type of Animal Customer ID*

Entity Relationship with attributes (cont) Primary Keys are underlined. Foreign Keys are marked with an asterisk *

Entity Relationships with attributes Draw the entity relationship diagram including attributes for the following entities. Include the entities, the attributes, the description of the relationship and the cardinality. Flights and Customers (see booklet) Footballers and Agents (see booklet) TIME UP 10min 8min 6min 4min 2min 0

Extension Task Complete the Entity Relationships Extension Task sheet.

Success Criteria I can describe and exemplify the entity-relationship diagram between two entities.