GCSE Computing: A451 Computer Systems & Programming www.computerscienceuk.com Relational Databases Databases.

Slides:



Advertisements
Similar presentations
MICROSOFT OFFICE ACCESS 2007.
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.
Normalisation Ensuring data integrity in database design 1.
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.
Database Design Concepts Info1408
Databases and Processing Modes. Fundamental Data Storage Concepts and Definitions What is an entity? An entity is something about which information is.
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
Week 2 Normalization and Queries
1004INT Information Systems Week 11 Databases as Business Tools.
WELL-DESIGNED DATABASES Process faster Easy to develop and maintain Easy to read and write code.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
Database Systems. What is a database? A database is an organised store of data items.
Prevalent Database Models (Advantages of a database over flat files)
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?
Database Software Application
Databases. Objectives Define what a database is. Understand the difference between a flat and relational database Design and create a relational database.
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA.
Relational Database Need to Knows. What is a database? Data - is just a pile of numbers or stats. A business "organises" the data to be meaningful and.
What is a database? An organized collection of data. This can be in an electronic, paper, or other format. Types of databases Operational -constantly changing.
Module 3: Table Selection
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
2.3 Organising Data for Effective Retrieval
Database Tables two order-entry scenarios: A customer wants to cancel an order that she's placed. If her address is in a separate table from her.
LSP 121 Week 1 Intro to Databases. Welcome to LSP 121 Quantitative Reasoning and Technological Literacy II Continuation of quantitative data concepts.
ITOM 2308 Introduction to Databases Review Access Database Corporate Case Study ITOM 2308 Class 81.
MICROSOFT ACCESS 2007 BTA – Spring What is Access?  Microsoft Access is a database management system…this means that it contains database information.
DATABASE. A database is collection of information that is organized so that it can easily be accessed, managed and updated. It is also the collection.
BUS1MIS Management Information Systems Semester 1, 2012 Access: Creating a Database Week 6 Lecture 2.
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.
Relational Databases (MS Access)
GCSE Computing#BristolMet Session Objectives# 20 MUST describe a database and discuss the legal implications of storing personal information SHOULD explain.
1 n 1 n 1 1 n n Schema for part of a business application relational database.
Session 8: Databases Teaching Computing to GCSE Level with Python.
Information Systems & Databases 2.2) Organisation methods.
Chapter 17 Creating a Database.
Database What is a database? A database is a collection of information that is typically organized so that it can easily be storing, managing and retrieving.
DATABASE What exactly is a database How do databases work? What's the difference between a spreadsheet database and a "real" database?
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Databases.
What have we learned?. What is a database? An organized collection of related data.
1 Database Systems Introduction to Microsoft Access Part 2.
Database revision.
IT Applications Theory Slideshows Databases II: Structure, Naming, data types, data formats.
Database Management Systems (DBMS)
Lesson 2: Designing a Database and Creating Tables.
Database Objective Demonstrate basic database concepts and functions.
Databases 101 © Dolinski What you will learn How relational databases work What are the components that make up a database How to create each component.
Flat Files Relational Databases
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
Connecting (relating) Data Tables to get Custom Records (Queries) Database Basics.
Alighieri: Introduction to MS Access 1 What is a Database? RELATIONAL DATABASE A database is an organized collection of information. A database is designed.
CSCI 6962: Server-side Design and Programming Shopping Carts and Databases.
Databases Flat Files & Relational Databases. Learning Objectives Describe flat files and databases. Explain the advantages that using a relational database.
3.1 CSC 102 Introduction to Information Systems Databases.
ACCESS LESSON 1 DATABASE BASICS VOCABULARY. BACKSTAGE VIEW A menu of options and commands that allows you to access various screens to perform common.
Lesson 10 Databases.
Chapter 5 UNDERSTANDING AND DESIGNING ACCOUNTING DATA
Northern College Diploma Philip Bird
Databases.
Information Systems Today: Managing in the Digital World
Week 12 Option 3: Database Design
GCSE COMPUTER SCIENCE Topic 3 - Data 3.5 Databases.
Databases A brief introduction….
What is a Database and Why Use One?
GCSE Computing Databases.
Flat Files & Relational Databases
Spreadsheets, Modelling & Databases
GCSE COMPUTER SCIENCE Topic 3 - Data 3.11 Databases.
Presentation transcript:

GCSE Computing: A451 Computer Systems & Programming Relational Databases Databases

GCSE Computing: A451 Computer Systems & Programming Activity 1 1 minutes to discuss and feedback on the following: What is a Database?

GCSE Computing: A451 Computer Systems & Programming Relational Databases Introduction Learning Objectives: (e)Understand the relationship between entities and tables (f)Understand the components of relational databases, such as tables, forms, queries, reports and modules (g)Understand the use of logical operators in framing database queries (h)Explain the use of key fields to connect tables and avoid data redundancy (i)Describe methods of validating data as it is input. Order No. First Name SurnameHouseAddressTownPost Code ItemPriceDate 1DaveJones12Jubilee Rd ExeterEX2 5FD Monitor MandyWilliams63Fore Street TauntonTA8 9GH Keyboa rd SamSmith233Grange Rd TorquayTQ1 9DR PC HollyMoon15House Lane ExmouthEX9 7HG Monitor AlfredRichie7Good Street ExeterEX1 6GF Games Pad “A database is a persistent organised store of related data” Learn this definition! Persistent – Permanent Organised – Data stored in records and fields Here is an example of a computer shop sales FLAT FILE database:

GCSE Computing: A451 Computer Systems & Programming Relational Databases Data Redundancy Learning Objectives: (e)Understand the relationship between entities and tables (f)Understand the components of relational databases, such as tables, forms, queries, reports and modules (g)Understand the use of logical operators in framing database queries (h)Explain the use of key fields to connect tables and avoid data redundancy (i)Describe methods of validating data as it is input. Order No. First Name SurnameHouseStreetTownPost Code ItemPriceDate 1DaveJones12Jubilee Rd ExeterEX2 5FD Monitor MandyWilliams63Fore Street TauntonTA8 9GH Keyboa rd SamSmith233Grange Rd TorquayTQ1 9DR PC HollyMoon15House Lane ExmouthEX9 7HG Monitor AlfredRichie7Good Street ExeterEX1 6GF Games Pad DaveJones12Jubilee Rd ExeterEX2 5FD Monitor In this FLAT FILE database (which means the database consists of only one table), if another sale occurred, a new record would be added to the table. And in this record, ALL the data about the person and sale item, would have to be added.

GCSE Computing: A451 Computer Systems & Programming Relational Databases Data Redundancy The Entities in this database have a many to many relationship, which means: A Customer can buy many items. An item, can have many different customers. Because of this, if we had just one table (flat file) in our database we would potentially be forever adding the same information into our table for each sale: -If in one day, 10 keyboards got sold, we would be adding ‘keyboard’ and ‘£22’, into 10 separate records of our database. -If over the course of a week, one customer bought 5 different items (e.g. monitor, gamespad, PC etc), we would have to add the same customer details (name, address etc) into 5 separate records of our database. Learning Objectives: (e)Understand the relationship between entities and tables (f)Understand the components of relational databases, such as tables, forms, queries, reports and modules (g)Understand the use of logical operators in framing database queries (h)Explain the use of key fields to connect tables and avoid data redundancy (i)Describe methods of validating data as it is input. Customers Item

GCSE Computing: A451 Computer Systems & Programming Relational Databases Data Redundancy This is known as data duplication : -It is not only inefficient… -…it is also potentially problematic – humans make errors, so we want to limit the data they write to a database. The way around this is to make three different tables of data: -A ‘Customers’ table -An ‘Items’ table -An ‘Orders’ table …and link them together. Each time an order occurs all we do is link the appropriate customer (from the customer table) and the appropriate item (from the items table) to a record in the orders table. If the same customer makes another order, their details are already stored and so by linking them to a new order record means that we don’t need to keep entering the same data about the customer for each sale. Learning Objectives: (e)Understand the relationship between entities and tables (f)Understand the components of relational databases, such as tables, forms, queries, reports and modules (g)Understand the use of logical operators in framing database queries (h)Explain the use of key fields to connect tables and avoid data redundancy (i)Describe methods of validating data as it is input.

GCSE Computing: A451 Computer Systems & Programming Relational Databases Relational Database Design Learning Objectives: (e)Understand the relationship between entities and tables (f)Understand the components of relational databases, such as tables, forms, queries, reports and modules (g)Understand the use of logical operators in framing database queries (h)Explain the use of key fields to connect tables and avoid data redundancy (i)Describe methods of validating data as it is input. Customer ID First Name SurnameHouseStreetTownPost Code 1DaveJones12Jubilee Rd ExeterEX2 5FD 2MandyWilliams63Fore Street TauntonTA8 9GH 3SamSmith233Grange Rd TorquayTQ1 9DR 4HollyMoon15House Lane ExmouthEX9 7HG 5AlfredRichie7Good Street ExeterEX1 6GF Item ID ItemPric e 1Monitor100 2Keyboard22 3PC500 4Game sPad12 Order No.DateCustomer IDItem ID Customers Table Items Table Orders Table

GCSE Computing: A451 Computer Systems & Programming Relational Databases Key Fields Learning Objectives: (e)Understand the relationship between entities and tables (f)Understand the components of relational databases, such as tables, forms, queries, reports and modules (g)Understand the use of logical operators in framing database queries (h)Explain the use of key fields to connect tables and avoid data redundancy (i)Describe methods of validating data as it is input. Customer ID First Name SurnameHouseAddressTownPost Code 1DaveJones12Jubilee Rd ExeterEX2 5FD 2MandyWilliams63Fore Street TauntonTA8 9GH 3SamSmith233Grange Rd TorquayTQ1 9DR 4HollyMoon15House Lane ExmouthEX9 7HG 5AlfredRichie7Good Street ExeterEX1 6GF Item ID ItemPric e 1Monitor100 2Keyboard22 3PC500 4Game sPad12 Order No.DateCustomer IDItem ID Customers Table Items Table Orders Table

GCSE Computing: A451 Computer Systems & Programming Relational Databases Queries Although, the data about a particular sale is stored in several tables, because they all have a relationship (are all ‘linked up’) it means that the computer treats it like one big table. Most of the time, a database isn’t just about storing data, it is instead about using the stored data to find things out. Searching for information from a database is called a Querying. Because of the relationships, we can easily run a query and find the related data as if it were one big table. Learning Objectives: (e)Understand the relationship between entities and tables (f)Understand the components of relational databases, such as tables, forms, queries, reports and modules (g)Understand the use of logical operators in framing database queries (h)Explain the use of key fields to connect tables and avoid data redundancy (i)Describe methods of validating data as it is input.

GCSE Computing: A451 Computer Systems & Programming Relational Databases Lets look at a Real Relational Database Demonstration! Learning Objectives: (e)Understand the relationship between entities and tables (f)Understand the components of relational databases, such as tables, forms, queries, reports and modules (g)Understand the use of logical operators in framing database queries (h)Explain the use of key fields to connect tables and avoid data redundancy (i)Describe methods of validating data as it is input.

GCSE Computing: A451 Computer Systems & Programming Activity 2 15 minutes: Complete the Relational Database worksheet

GCSE Computing: A451 Computer Systems & Programming Homework Research online to find out about data validation methods used with databases (search for “Access database validation”) Learning Objective: “Describe methods of validating data as it is input.” In a Word document, list and describe the various validation methods.