Mr C Johnston ICT Teacher

Slides:



Advertisements
Similar presentations
Chapter 2 The Relational Database Model
Advertisements

The Relational Database Model
DATA MODELING AND DATABASE DESIGN DATA MODELING AND DATABASE DESIGN Part 1.
Module Title? Data Base Design 30/6/2007 Entity Relationship Diagrams (ERDs)
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
Data Modelling. ICT5 Introduction Historical development with most organisations Small-scale origins Individual computers bought for particular applications.
G045 Lecture 09 ERD Diagrams (Entity Relationship Diagrams) Mr C Johnston ICT Teacher
Next Back A-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All rights.
C-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
1 IRU – database design part one Geoff Leese September 2009.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
Description and exemplification of entity-relationship modelling.
ERD ( Conceptual data model From the statement of data requirements a conceptual data model is produced. This describes.
INTRODUCTION TO DATABASE DESIGN. Definitions Database Models: Conceptual, Logical, Physical Conceptual: “big picture” overview of data and relationships.
Lecture 5 Entity Relationship Modeling
Data Modeling and Entity-Relationship Model I
G057 - Lecture 05 From Scenario To Design Mr C Johnston ICT Teacher
Year 12 > 13 Applied GCE ICT Unit 7 Using Database Software.
C_ITIP211 LECTURER: E.DONDO. Unit 4 : DATA MODELING.
COP Introduction to Database Structures
DATA MODELING AND DATABASE DESIGN
©2005 The McGraw-Hill Companies, All rights reserved McGraw-Hill/Irwin
Business System Development
Database Development Lifecycle
Databases Chapter 9 Asfia Rahman.
Database Management Systems II
Databases Chapter 16.
© 2014 by McGraw-Hill Education. This is proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
© The McGraw-Hill Companies, All Rights Reserved APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
DESIGNING DATABASE APPLICATIONS
CIS 336 Slingshot Academy / cis336study.com
Entity-Relationship Modelling
Outline of the ER Model By S.Saha
CIS 207 The Relational Database Model
Database Relationships
Introduction to Database Systems
Lecture 2 The Relational Model
CSCI-100 Introduction to Computing
Chapter 4 Relational Databases
Mr C Johnston Sidney Stringer Academy
Databases A brief introduction….
CIS 336 Competitive Success/snaptutorial.com
CIS 336 Education for Service-- snaptutorial.com.
CIS 336 Teaching Effectively-- snaptutorial.com
Entity-Relationship Model and Diagrams (continued)
Order Database – ER Diagram
The 1:M Relationship (continued)
Database Fundamentals
Entity relationship diagrams
Entity-Relationship Modelling
Databases and Information Management
Database Modeling using Entity Relationship Model (E-R Model)
Review of Week 1 Database DBMS File systems vs. database systems
Chapter 3: Modeling Data in the Organization
DCT 2053 DATABASE CONCEPT Chapter 2.2 CONTINUE
logical design for relational database
Do it now – PAGE 3 You will find your do it now task in your workbook – look for the start button! Tuesday, 09 April 2019.
Lesson Objectives Aims You should know about: 1.3.2:
MIS2502: Data Analytics Relational Data Modeling 2
Databases This topic looks at the basic concept of a database, the key features and benefits of a Database Management System (DBMS) and the basic theory.
Conceptual modeling of databases
Database Management system
Entity Relationship Model
ER MODELING Instructor: SAMIA ARSHAD
DATA MODELING AND DATABASE DESIGN
Legacy Databases.
Lecture 10 Structuring System Requirements: Conceptual Data Modeling
Information system analysis and design
Presentation transcript:

Mr C Johnston ICT Teacher www.computechedu.co.uk G057 - Lecture 02 Introduction To Database System Concepts Mr C Johnston ICT Teacher www.computechedu.co.uk

Session Objectives Learn about database terminology. To learn the basic relational database components and concepts To become familiar with the relational tables components and characteristics To learn how keys are used in the relational database environment To examine basic entity relationships To draw basic entity relationships

Databases and DBMS A database is a collection of data Databases need to be managed by computer software known as a Database Management System (DBMS) The DBMS is responsible for allowing you to CRUD (Create Read Update Delete) the data Microsoft Access is an example of a DBMS - not a database.

A Logical View Of Data An entity is a person, place, event, or thing for which we intend to collect data Within a university entities could be – A Student, Faculty Member, Course or module An airline may have these entities – A Passenger, Pilot, Aircraft, Route or Supplier Each entity has a number of characteristics which are known as attributes A Student could have – A Student ID, Name, DOB, Home Address, An Aircraft could have – An Aircraft ID Number, hours flown, last maintenance date, Notice that entities are singular as they represent ONE item of data

A Logical View Of Data Entities normally have a number of instances or occurrences which makes sense as lots of students make up a school, This is know as an entity set. The STUDENT entity set contains all the student entities The FACULTY entity set contains all the faculty entities The AIRCRAFT entity set contains all the aircraft entities An entity set is known when we design databases as a table.

Summary of A Relational Table

Database Keys Each entity needs a primary key, This is an attribute which can be used as a unique identifier for a single entity occurrence, studentID could be a primary key for a STUDENT entity Entities can also have secondary keys, A secondary key is used to make an index of attributes which are commonly searched or sorted on, studentName could be a secondary key for the STUDENT set of entities keys also help define relationships between entities, When a relationship is formed between entities the primary key of one will appear as a foreign key in another to create a link.

Database Keys Example relationship using a primary key and a foreign key

Entity Relationships A relationship is a link or association between entities. Normally one dentist has many patients There are three types of relationships: One – to – One A car has one engine size One – to – Many A landlord has many houses Many – to – Many A chocolate bas has many ingredients BUT An ingredient can be used in many different chocolate bars Due to database rules however we only use One – to – many when designing databases. One – to – One relationships are pointless and attributes get collapsed into one entity, Many – to – Many relationships cant exist as the data cant be linked properly and makes no sense which instance relates to which

Entity Relationships Diagrams This is a way of showing relationships between entities, Entity names are always written in capitals and appear in rectangles, Lines join entities together and have: Symbol to show the degree of the relationship, A description to show the name of the relationship,

Entity Relationships Diagrams EMPLOYEE COMPANY CAR drives WARD PATIENT holds ALBUM SINGERS features

Many – To – Many Resolve Many - to – Many relationships are not allowed so we have to resolve them some how. To do this we introduce an additional entity between them Thus creating 2 one - to – many relationships.

Exercises Make a brief description (1/2 page) about the role of the DBMS Write down 3 examples along with a description of uses a company could have for a database Draw an entity relationship diagram to show the relationship between Product and Component House and Street Pet Owner and Pet Draw an entity relationship diagram providing a many – to – many resolve to show the relationship between Customer and Video in a rental shop Student and Course in a school Patients and Medicine in a hospital