Databases.

Slides:



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

Business Driven Technology Unit 2 Exploring Business Intelligence Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution.
BUSINESS DRIVEN TECHNOLOGY
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?
Validation and Verification
GCSE Computing: A451 Computer Systems & Programming Relational Databases Databases.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
AS Module 2 Information; Management and Management and Manipulation or what to do with data, how to do it, and……... ensure it provides useful information.
CDP Standard Grade1 Commercial Data Processing Standard Grade Computing Studies.
GCSE Computing#BristolMet Session Objectives# 20 MUST describe a database and discuss the legal implications of storing personal information SHOULD explain.
Storing Organizational Information - Databases
1 Database Concepts 2 Definition of a Database An organized Collection Of related records.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 7 Storing Organizational Information - Databases.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 7 Storing Organizational Information - Databases.
Databases Unit 3_6. Flat File Databases One table containing data Data must be entered as a whole each time e.g. customer name and address each time (data.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
ITGS Databases.
What have we learned?. What is a database? An organized collection of related data.
Database revision.
Verification & Validation. Batch processing In a batch processing system, documents such as sales orders are collected into batches of typically 50 documents.
Database Management Systems (DBMS)
Use of ICT in Data Management AS Applied ICT. Back to Contents Back to Contents.
Flat Files Relational Databases
UNIVERSITI TENAGA NASIONAL “Generates Professionals” MODULE 5 : Part 1 INTRODUCTION TO DATABASE.
Software. Because databases can get very big, it is important to decide exactly what is going to be stored in each field. Fields can be text, number,
Input, Output and Processing.. What data needs to be input into the system? Identify the sources – i.e. where does the data come from? What is the volume.
DATABASE’S Dave McDonald Student No /05/2016 Unit 10 task 1.
Data Capture Forms What are they?. Example 1 Example 2.
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.
Validation and verification 1.2
Database Relationships
DATA TYPES.
Databases and DBMSs Todd S. Bacastow January
DBMS and SQL.
IGCSE 4 Cambridge Designing a database table Computer Science
Lesson 10 Databases.
Databases.
Databases Chapter 9 Asfia Rahman.
GO! with Microsoft Office 2016
DATA INPUT AND OUTPUT.
Microsoft Office Access 2010 Lab 2
Practical Office 2007 Chapter 10
Introduction to Computing
Information Systems Today: Managing in the Digital World
System Design Ashima Wadhwa.
Database Systems Unit 16.
CIS 155 Table Relationship
GO! with Microsoft Access 2016
Chapter Ten Managing a Database.
Week 12 Option 3: Database Design
RELATIONAL DATABASE MODEL
Databases.
What is a Database and Why Use One?
Databases.
Entity relationship diagrams
Databases Software This icon indicates the slide contains activities created in Flash. These activities are not editable. For more detailed instructions,
Database Relationships
Flat Files & Relational Databases
Database Design Hacettepe University
Spreadsheets, Modelling & Databases
DATABASES WHAT IS A DATABASE?
The ultimate in data organization
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.
Validation and Verification
Database management systems
Presentation transcript:

Databases

What is a Database? Somewhere that stores information and can be searched for using query's. The Key components of a database are tables, records, fields, data types and relationships Tables: where simple information can be stored e.g. name, address, age etc… Or At a school the class list of each community group. Record e.g. an individual persons record such as a students who has a name, address, parental details, behaviour details achievements and medical history all recorded in their own record. Fields is the individual titles where data is categorized or recorded. E.g name field, Address fields, Date of birth are individual fields. Data Types e.g. numerical e.g. age, number of house points or written e.g. name and address. You can even have different documents stored in a database such as word docs, power points etc… Relations: where two separate tables are merged to locate information. E.g students names are merged with another table called house points, this is also merged with a community group name e.g. LJS to form a table that consistent of LJS students, their names, their house point totals.

Advantages and disadvantages Easy to access information worldwide, working from home Secured via an encrypted password – security is better Can be accessed by multiple devices. Better monitoring Better data access – produce queries very quickly Disadvantages Can be hacked Have malicious malware placed on it to deleted items Can lead to fraud and loss of business if the database is hacked. Cost is expensive Maintenance costs can be high

Database Validation Validation and verification are useful to provide confidence in the data. It aims to make sure that the data is sensible, reasonable, complete and within acceptable limits. Check digit (number check, barcodes, ISBN numbers) Picture format check (Postcodes) Lookup (creating lists, dress sizes limited) Presence check (ensuring fields are not left blank) Length check (telephone numbers etc.) Range check (numbers upper limit <=100 or lower limit >=0, a range >=75 AND <=84 ) Type check (entering the correct type of data e.g. numbers)

SIMS

DBMS – Database Management System A computer software application that interacts with the user, other applications, and the database itself to capture and analyse data. My SQL is an example of DBMS

DBMS – Database Management System

DBMS – Database Management System

DBMS – Views

Exam Questions Describe how a DBMS allows the separation of data from applications and why this is desirable. Describe the principal features of a DBMS and how they can be used to create customised data handling applications.

Exam Questions Describe how a DBMS allows the separation of data from applications and why this is desirable. Describe the principal features of a DBMS and how they can be used to create customised data handling applications.

Relational Databases A database structured to recognise relations between stored items of information. More than one table of information which links fields using a primary key amongst the tables.

E.G Online shopping Amazon for example would have a table of all of the customers numbers, names and addresses. They would also have a table of all products bought by customers. With a relational database a sales manger can easily make a query about all customers that bought an iPad in March for example. A sales manager may like to do this to then offer those customers offers iPad cases. The query essentially links information between two different tables using the Primary Key.

Components Tables – tables of information stored Forms – Form capturing information from the user Queries – searching the relational database using key criteria's Reports – displaying the query results Modules – pre-written programs. Software and languages.

Logical operators When searching within a relational database criteria's are used from the fields of the tables. > greater than < less than >= greater than or equal too <= less than or equal too “” exact search AND OR NOT refining and extending searches

Primary key This is the most important function of a relational database. It has to be something unique on each table for example a customer number as this cannot occur more than once. This allows for accurate searches that does not allow data to be repeated on a query.

Relationships: One to one E.g. one customer has one address this is a one to one relationship in a database. E.g. John Doe has one address. It has to be something unique to that customer (Not a common relationship)

Relationships One to Many This could be where one customer makes many orders e.g. John Doe makes two orders. This relationship is one to many

Many to Many This is where many customers order the same item in different orders and is called many to many. A new table will be created to deal with this type of order.

A Foreign Key This is the key that points at the primary key in other tables to link them together.

Data redundancy Data redundancy – where data is partially duplicated across records

Task What is the function of a Primary Key ? What is an example of a one to one relationship? What is an example of a one to many relationship? What is an example of a many to many relationship? What is a relational Database?

The benefits of a relational database It means that new customer for example doesn't have to be entered ever time they buy a product. When searches/ queries are carried out the database won duplicate data that a single table would carryout.

Databases Exam (A) This is an example of a one to many relationship. Where one primary key in the hire table is linked to the two other primary keys in the table by a foreign key to provide the relevant data in a query.

Database exam (B) What is a relational database? The advantage of using relational databases that contains several tables rather then one table is that in a relational database the data is not duplicated (repeated). For example you wont have to keep writing in the customer ID each time the customer hires a car. This also means the less errors occur as the data is only entered once and accurately.

Exam Question What type of relational database is this? Where are the Primary keys and what is the role of the Foreign key