Lesson 10 Databases.

Slides:



Advertisements
Similar presentations
Organisation Of Data (1) Database Theory
Advertisements

Chapter 10: Designing Databases
GCSE Computing#BristolMet Session Objectives# 21 MUST describe methods of validating data as it is input. SHOULD explain the use of key fields to connect.
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
Business Driven Technology Unit 2 Exploring Business Intelligence Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution.
Database Systems. What is a database? A database is an organised store of data items.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Databases and Database Management Systems
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?
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
GCSE Computing: A451 Computer Systems & Programming Relational Databases Databases.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Concepts and Terminology Introduction to Database.
HNDComputing – DeMontfort University  DeMontfort University 2011 Database Fundamentals wk2 Database Design ConceptsDatabase Design Concepts Database Design.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
1 Database Concepts 2 Definition of a Database An organized Collection Of related records.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Databases.
3 / 12 Databases MIS105 Lec13 Irfan Ahmed Ilyas CHAPTER Prepared By:
ITGS Databases.
 So far in ICT we’ve covered how data is entered into computers (data capture) and how it’s checked (validation and verification).  In this section.
Database Management Systems (DBMS)
Flat Files Relational Databases
Instructor: Pavlos Pavlikas1 How Data is Stored Chapter 8.
FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5.
The Database Concept and the Database Management System (DBMS) Databases.
The purpose of a CPU is to process data Custom written software is created for a user to meet exact purpose Off the shelf software is developed by a software.
N5 Databases Notes Information Systems Design & Development: Structures and links.
DATA TYPES.
Databases and DBMSs Todd S. Bacastow January
Chapter 1 Introduction.
Database Management.
Databases Chapter 9 Asfia Rahman.
Databases Key Revision Points.
Databases.
Outline Types of Databases and Database Applications Basic Definitions
Databases Chapter 16.
Introduction to Computing
Database Management:.
DESIGNING DATABASE APPLICATIONS
and Defining Table Relationships
CIS 155 Table Relationship
Chapter 4 Relational Databases
Database Management  .
Databases A brief introduction….
Databases.
What is a Database and Why Use One?
Introduction to Database Management System
Basic Concepts in Data Management
Database Management Concepts
Flat Files & Relational Databases
Test Your Tech Blogging is: Someone's online journal.
Database Design Hacettepe University
Spreadsheets, Modelling & Databases
DATABASES WHAT IS A DATABASE?
The ultimate in data organization
Chapter 17 Designing Databases
DATABASE TECHNOLOGIES
OCR GCSE Computing © Hodder Education 2013 Slide 1
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.
Database management systems
Presentation transcript:

Lesson 10 Databases

We Are Learning Today Describe a database as a persistent organised store of data Explain the use of data handling software to create, maintain and interrogate a database

What is a database? Go and list 5 databases that we use in our everyday lives..... 1 2 3 4 5

What is a database? A database is a store of data that is persistent – it is held on some form of permanent medium such as a disk or flash memory related – the data in a database is not just a haphazard collection of facts organised – the data is stored in a structured predictable way so that it can be more easily processed usually held for the benefit of some organisation – all businesses and other organisations depend on their stored data

Database levels A database can be viewed at three levels: The external view The conceptual view The physical view

The external view This is what the user sees. It is a view that is designed to be useful for a particular job.

The conceptual view This is concerned with how the data is organised. It has to do with the design of the tables and how they are linked.

The physical view This is concerned with how the data is actually stored on the storage medium. The designers and the users of the database are not concerned with this detail. It is looked after by the database software.

Types of databases Flat file – we will look at one.... Relational – Used in the main by most businesses Hierarchical – not really used now, but do exist!!!

Elements of a database Entity Attributes Record Field Note down the following in your books!!!

Learning Activity Produce a mind map of the previous terms and explain them in more detail. Entity Attributes Record Field HINT: Use the emindmaps software to produce this.

Learning Activity Take the file out of the shared files.... You will complete the presentation on Database Concepts

Flat File Databases Consist of only table Example would be a personal address book: fairly small Stores few items Fields could be: First_name Address_1 Telephone_No Record is when we have a full set of data about that person Could be set up easily in a spreadsheet

Example Flat File First Name Last Name Telephone Street City Postcode DOB Claire Pate 02380451784 404 Morbi Road Southampton SO528GD 28/06/1999 Susan Landry 02380985621 32 Nullam Road SO555GF 05/04/1978 Brian Hodge 02380221548 541 Sed Avenue SO123YW 26/01/1999 Noelle Hewitt 02380232541 704 Varius Street SO10 7NJ 04/08/1994 David Goff 02320777542 97 Primrose Close SO552AW 30/01/1998

Task Possibly a definition of what a flat file database is List the advantages and disadvantages of using flat file databases Set up an example mark book for this class – either in Access or Excel

Data Redundancy What is it? What can this cause? Examples… The unnecessary repetition of data What can this cause? Complex processing problems because each time a piece of data is repeated each instance has to be updated. Examples… Come up with one!

Data Integrity, validation and verification Data Integrity is – the state of data being as it should be, it is what it should be! Validation is – the process of checking data as it is input to ensure that it is reasonable Verification is – the process of checking that data is true or correct

Validation This type of checking is carried out by data handling software It is useful for when data is copied into the computer systems by human operators It does not prevent all errors, just the breaking of the rules!

Verification Verification quite often can only be performed by human inspection It can be as simple as just carefully comparing what is entered in the database with the source material. Humans make errors too easily – so is slower more reliable method is to enter the data twice using two operators It compares then highlights any differences

Task Using the worksheet on Validation and Verification complete the following: Research the different types of validation checks explaining what each is and how it works Explain what each machine used to enter data is and a benefit and limitation of it

Lesson 12 Relational Databases

We Are Learning Today Understand the relationship between entities and tables. Understand the components of a relational database, such as; tables, forms, queries, reports and modules. Understand the use of logical operators in a database.

What is a relational database? Stores data in tables Each table contains data about one entity A table is called a relation

How are tables linked? Primary keys – we will look at what they are Foreign keys – we will look at what these are

The Employee Table Which columns acts as primary and which as foreign keys?

Example of a Relational Database Diagram pub_id job_id Publishers -- pub_id Jobs -- job_id Highlight the primary and foreign keys emp_id Employee -- emp_id pub_id job_id pub_id job_id

Entity Relationships Data about different entities needs to be kept separate Tables are linked together to keep data duplication at a minimum Linking tables in a ONE –TO-MANY way avoids data redundancy Cats and fleas (example from book!) Cat Flea

Entity Relations Cat Flea A cat has many fleas, but a flea can only have one cat. Think of three more examples of this. Get ready to feedback to the class.

Entity Relationship Diagram Connections with “crows feet” Three prongs means MANY One prong means ONE Cat Flea

The DBMS The DBMS must allow data sharing allow multiple user access allow multiple applications to work on them hold just one copy of data that everyone can access – this prevents inconsistent updates make it possible to change the data in a database without having to change the applications.

Referential integrity Different applications must not cause conflicts. Records must be locked while one application is performing an update so that another application cannot produce an inconsistent result. Inconsistent changes must be prevented – for example , an exam subject must not be deleted if there are students connected to it. This is called maintaining referential integrity.

Realistic Example – Hotel Booking What needs to be included? What would the relationships be? Tables we will have: Room Booking Client

Task Make a list of field names we will need in each table: Room Booking Client Field Datatype Room_number Integer (number) Room_type Text View Boolean Bath TV

Relational Databases Stores data in tables Each table has data about ONE entity A table is called a RELATION Table has attributes, as fields Rows which are records Each table has to have a primary key Tables are LINKED using PRIMARY and FOREIGN keys

Concurrency Locking of a file Where might you use this? Note down in books Read through this on page 103