Our world depends on databases

Slides:



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

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.
Normalization Queries (contd)
ISP 121 Week 1 Introduction to Databases. ISP 121, Winter Why a database and not a spreadsheet? You have too many separate files or too much data.
Week 2 Normalization and Queries
LSP 121 Week 2 Normalization and Queries. Normalization The Old Car Club database presented a problem – what if one person owns multiple cars? (One owner.
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?
2.3 Organising Data for Effective Retrieval
Unit 18: Database Modelling
WJEC Applied ICT Databases – Terminology and Notation DEFINITION A database is a collection of data or information which is held together in an organised.
LSP 121 Week 2 Normalization and Advanced Queries.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
Starter. Designing a table Learning Objectives: Can you create a table of information? Steps to Success Can create the fields in a table Can sort information.
Here are the main points:  use the words SEARCH, SORT and REPORT (report = a print out, sometimes called a hard copy)  mention the names of the fields.
Normalisation. NoKats Dog Club A club formed since Keeps records of members and their dogs on index cards. Cards are managed by the secretary and.
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.
Surname:Brown Forename:James Form:7B Date of Birth: Telephone:
Information & Communications Technology An Introduction to Databases.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Version: 2.0. Forenam e of parent Surname of parent Address 1 Address 2 Name of child Age of child School database example. Try adding a few rows for.
Databases.
Database revision.
Lesson 2: Designing a Database and Creating Tables.
Planning & Creating a Database By Ms. Naira Microsoft Access.
Flat Files Relational Databases
6.1 © 2007 by Prentice Hall Chapter 6 (Laudon & Laudon) Foundations of Business Intelligence: Databases and Information Management.
NORMALIZATION: ‘1NF’ The general rule: ‘’Any field which can have many, must have its own table’’ By Sam Beaumont.
Howard Paul. Sequential Access Index Files and Data File Random Access.
Copyright © it’sLearning 365. All rights reserved. DATABASE CONCEPTS Understanding Databases Start …
Week 1 Intro to the Course Intro to Databases.  Formerly ISP 121  “Continuation” of LSP 120 concepts  Topics include: ◦ Databases ◦ Basic statistics.
28 Database Theory 28. Database Theory We have looked at the basics of how databases work: Database Tables A A Relational Databases C C Types of Data.
DATABASE’S Dave McDonald Student No /05/2016 Unit 10 task 1.
Lesson Objectives By the end of this lesson you will be able to: 1.Assign appropriate primary keys/key fields 2.Identify foreign keys in different tables/files.
N5 Databases Notes Information Systems Design & Development: Structures and links.
VCE IT Theory Slideshows
Database Relationships
Component 2 5A-F.
IGCSE 4 Cambridge Designing a database table Computer Science
Lesson 10 Databases.
Prepared By: Bobby Wan Microsoft Access Prepared By: Bobby Wan
Databases Chapter 9 Asfia Rahman.
Databases Key Revision Points.
Database Normalization
Database Concepts Relational Databases Start ….
Databases Explained Tables © Dolinski 2007.
Database Relationships
Database Management  .
Databases A brief introduction….
Databases.
What is a Database and Why Use One?
Data Modelling Introduction
Case Study Creating a Database
Database Design ERD and Normalisation
Database.
INFO/CSE 100, Spring 2006 Fluency in Information Technology
Database Relationships
Database Theory.
Databases.
Spreadsheets, Modelling & Databases
Relational Databases.
19 – Databases: Multiple Tables
The intended use and features of Room Four Database
DATABASES Surname: Brown Forename: James Form: 7B
Microsoft Office Access is the best –selling personal computer database management system. What is Access?
DATABASE TECHNOLOGIES
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.
Databases and Information Management
Nagendra Vemulapalli Access chapters 1&2 Nagendra Vemulapalli
Information system analysis and design
Presentation transcript:

Our world depends on databases Google basically IS a database (index) Facebook is build around databases So is e-Bay & Netflix and X-Box Live Travel agents, schools, doctors and hospitals all rely on them You get the idea!

Databases are so useful because they’re so good at storing info But they do it in a very structured way That’s so the data can also be sorted And so the data can also be searched So overall, what makes databases so special is how they store, sort & search Let’s look at some examples…

Store Search Sort

We’re actually going to look at databases into two stages.

Database Tables Types of Data Relational Databases First, we’ll learn the basics of how databases work: A Database Tables B Types of Data C Relational Databases

A Database Tables So we’ve said what makes databases so special is how they store, sort & search But how can they do that? The secret is that they work in a very structured or organised way This starts with the way that all data is stored in what are called tables…

Database Tables A Here’s a database table for members of a club... Field name Record Field

Database Tables A Here’s a database table for members of a club... Field name Record Field

Database Tables A Here’s a database table for members of a club... Field name Record Primary Key Field

Database Tables Recap A Databases store info in a structured way Data in a database is stored in a table Each row is called a record Each column is called a field A special field called the primary key holds a unique identifier for each record

‘Unique identifiers’ are everywhere!

Database Tables Recap A Table Field name Recordl Primary Key Field All this data is stored in a ?? Table This is a ?? Field name This is a ?? Recordl This is the ?? This is a ?? Primary Key Field

Database Tables Recap A This table has ____ records 4 There are ____ fields 4 The primary key is called _______ LessonID

A Database Tables B Types of Data C Relational Databases

B Types of Data A second secret to how databases work is the way they handle different types of data Let’s look at an example…

Types of Data B Can you spot the different types of data? We call these ‘data types’ Text Numbers Dates

B Types of Data Database tables can store different data types, such as... Text Numbers Dates When building a database, you say what type of data can go in each field This can help prevent errors, such as checking that dates are DD/MM/YY

A Database Tables B Types of Data C Relational Databases

Relational Databases C Simple databases with just one data table are called flat file databases. But using only one table creates BIG problems for larger systems because lots of data can be duplicated and the database becomes very inefficient. So advanced databases use multiple tables They are called relational databases Let’s look at why they are needed…

Relational Databases C Notice that several patients see Dr Brown So her details are duplicated. This is called redundant data because copies are inefficient & cause inconsistencies Can you spot one?

Relational Databases C PatientID DocID Primary Key Foreign Key DocID

Relational Databases We show this relationship in a diagram C Relational Databases We show this relationship in a diagram Doctors DocID Surname Department Mobile Patients Patient ID Forename Surname DocID It’s a ‘One To Many’ relationship One doctor can treat many patients

Relational Databases C Car Club Again, data is duplicated or redundant Redundant data causes inconsistencies Can you spot one?

Relational Databases C Car Club SupplierID SupplierID 1 2 3 1 1 2 1 2

Relational Databases We show this relationship in a diagram C Relational Databases We show this relationship in a diagram Supplier SupplierID CarSupplier Address1 Town Postcode Member MemberID Forename Surname Car Reg Car Supplier It’s a ‘One To Many’ relationship One Car Supplier can supply many members

Relational Databases C Dog Kennel Business Again, data is duplicated or redundant Redundant data causes inconsistencies Can you spot any?

Relational Databases C Dog Kennel Business VetID VetID 3 1 2 2 3 2 1 Betta Vetz 2 Top Vets 3 West Vets

Relational Databases We show this relationship in a diagram C Relational Databases We show this relationship in a diagram Vet VetID VetName Address1 Town Postcode Pets PetID Name Owner Name Owner Mobile Vet ID It’s a ‘One To Many’ relationship One Car Supplier can supply many members