Organisation Of Data (1) Database Theory www.ICT-Teacher.com.

Slides:



Advertisements
Similar presentations
How data is stored. Data can be stored in paper-based systems including: Reference books Dictionaries Encyclopaedias Directories Index Files Filing systems.
Advertisements

Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
BASIC SKILLS AND TOOLS USING ACCESS
Relational Database Systems Higher Information Systems Advanced Implementation in MySQL/PHP.
Relational Database Systems Higher Information Systems Advanced Implementation in Microsoft Access.
Content 15.1 Basic features Types of database Data structures 15.2 Creating a database Screen layout Entering data Editing data 15.3 Displaying data Searching.
Relational Database Systems Higher Information Systems Advanced Implementation in Filemaker Pro.
Chapter 2.7 Data management.
Start First step Create a new blank database Create a database using the option that will enable you to build your database using pre-set options. Save.
Create a new blank database First step SUBMITTry again.
Computer Concepts 5th Edition Parsons/Oja Page 492 CHAPTER 10 File And Database Concepts Section A PARSONS/OJA Databases.
Database Management: Getting Data Together Chapter 14.
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.
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.
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?
CORE 2: Information systems and Databases STORAGE & RETRIEVAL 2 : SEARCHING, SELECTING & SORTING.
Software Development Unit 2 Databases What is a database? A collection of data organised in a manner that allows access, retrieval and use of that data.
Databases. Objectives Define what a database is. Understand the difference between a flat and relational database Design and create a relational database.
Introduction to Database Systems
2.3 Organising Data for Effective Retrieval
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Introduction to Microsoft Access 2003 Mr. A. Craig Dixon CIS 100: Introduction to Computers Spring 2006.
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
Database Management. ICT5 Database Administration (DBA) The DBA’s tasks will include the following: 1. The design of the database. After the initial design,
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
Complete theory from last lesson… Put today’s date in the front of your book Read pages 46 and 47 of the textbook…
Professor Michael J. Losacco CIS 1110 – Using Computers Database Management Chapter 9.
DAY 12: DATABASE CONCEPT Tazin Afrin September 26,
Session 8: Databases Teaching Computing to GCSE Level with Python.
Information Systems & Databases 2.2) Organisation methods.
Chapter 17 Creating a Database.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New 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.
1 Database Concepts 2 Definition of a Database An organized Collection Of related records.
Databases. What is a database?  A database is used to store data. The word DATA is actually Latin for FACTS. A database is, therefore, a place, or thing.
Module 2: Information Technology Infrastructure Chapter 5: Databases and Information Management.
Now, please open your book to page 60, and let’s talk about chapter 9: How Data is Stored.
Database Management Systems.  Database management system (DBMS)  Store large collections of data  Organize the data  Becomes a data storage system.
ITGS Databases.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
Database Management Systems (DBMS)
Database Objective Demonstrate basic database concepts and functions.
Use of ICT in Data Management AS Applied ICT. Back to Contents Back to Contents.
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.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
0 / Database Management. 1 / Identify file maintenance techniques Discuss the terms character, field, record, and table Describe characteristics.
Flat Files Relational Databases
Instructor: Pavlos Pavlikas1 How Data is Stored Chapter 8.
FILE ORGANIZATION.
Sample Table Standard Notation Entity name in uppercase
Description and exemplification use of a Data Dictionary. A data dictionary is a catalogue of all data items in a system. The data dictionary stores details.
Databases Flat Files & Relational Databases. Learning Objectives Describe flat files and databases. Explain the advantages that using a relational database.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
Course Contents Overview: Database basics Lesson 1: Benefits of using a database Lesson 2: Table that data Lesson 3: Analyzing, viewing, and reporting.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
GCSE ICT How data is stored. How is data stored? Data can be stored in paper-based systems including: –Reference books –Dictionaries –Encyclopaedias –Directories.
Database (Microsoft Access). Database A database is an organized collection of related data about a specific topic or purpose. Examples of databases include:
( ) 1 Chapter # 8 How Data is stored DATABASE.
N5 Databases Notes Information Systems Design & Development: Structures and links.
Databases Key Revision Points.
GO! with Microsoft Office 2016
GO! with Microsoft Access 2016
FILE ORGANIZATION.
Flat Files & Relational Databases
Database Fundamentals
Spreadsheets, Modelling & Databases
The ultimate in data organization
Database management systems
Presentation transcript:

Organisation Of Data (1) Database Theory

11.3 Organisation of Data for Effective Retrieval Describe the nature and purpose of a relational database and how it works. Understand that data needs to be organised in a relational database to allow for effective updating and retrieval. Understand how data can be retrieved to produce meaningful information. Recall the relevant advantages of relational databases over flat file information storage and retrieval systems. Select and justify appropriate file and relational database structures for particular applications.

What Is A Database? An organised collection of data / information. Not necessarily stored on a computer. A computerised database gives: –flexibility in organising, displaying, and printing –much faster than a manual system.

Data Field: data held on a person can be split into a number of fields; these could be: –ID; first name; second name; address; town; post code; date-of-birth; etc. Record: a collection of all the fields above on one person. File: a collection of records; a payroll file will contain a record for each person on the payroll. Database: may contain many different files, structured in such a way that information can be obtained from one or all of them at once.

Flat File And Relational A computerised database is one of two different types: –Flat-File which is only suitable for a few simple applications. –Relational which is much more comprehensive and flexible and suitable for most applications.

Advantages Of Computerised Databases Only have to enter the data once, all other applications can use this data. Files are linked so an update in one will affect the data in another. The structure can be changed. Access is very rapid. Complex searches can be saved and used over and over again or amended. Data remains consistent as the same data is accessed by everyone. Data can be validated upon entry protecting integrity.

Disadvantages Dependant on the technology, a break in service means no applications can be run. Centrally held data needs extra security than dispersed data. Users need to be trained which is costly.

Flat File Similar to a computerised card box of files. Only one file of records can be stored. Ok for i.e. a list of names and addresses such as what you would find in an address book. No good for businesses where data is more complex and flexibility is required.

Employee Number: 1Employee First name: FredEmployee Surname: Bassett Sex:MAge:21Position:Sales Assistant Salary:£15,000Cafe Address Bridge StreetNew- Cross London com

Relational Database These types are better than the flat-file as everything is not stored in one file, it is stored in several files with relationships between them. The relationship ensures the data contained in one file can be combined and used with data from any or all of the other files. Files in this type of database are known as tables, when designing we create tables containing the various Fields of data.

Advantages Data is not duplicated, less data stored. Time is saved entering data. Processing and searching time reduced.

Consider the flat file database of employee details. Much of the data appears in every record, the cafe details. Instead of repeating these in each record, a file would be created for the cafe details. One field will need to stay as the common link between files, i.e. the employee number. With more data than shown it may be possible to create more than two files.

Employees Employee Title Employee First Name Employee Surname Employee Number Address Road Address Town Post Code Employee Telephone Employee Salary Employee Sex Employee Age Employee Date of Birth Employee Position Cafe Name Cafe Address Road Cafe Address Town Cafe Address Post Code Cafe Telephone Cafe Employee Title First Name Surname Number Road Town Post Code Telephone Salary Sex Age DoB Position Cafe Cafe Name Road Town Post Code Telephone Employee Number = +

Instead of entering the cafe details every time data is entered for an employee, each cafe need only to be entered once. The cafe details are kept in the Cafe table and the Employee details are kept in the Employees table. One linking field needs to be present, in this example the employee number. Generally more data would be held in a database and consequently more tables may be required.

Searching The concept of storing data in a database is to retrieve bits of it when required. This is done by searching for data that satisfies a particular criteria, i.e. who are the employees who live in Greenwich. Searches in a database may be done by programming, called Structured Query Language (SQL), or in Access can be done by selecting criteria, called Query By Example (QBE). Access converts QBE into SQL.

Structured Query Language Query By Example (QBE) and Structured Query Language are both industry standard methods for extracting information from a database. The advantage of QBE is that it is graphical and simple to use, the advantage of SQL is that it is almost universally used in a relational database.

Query By Example

A Query A query may: combine the information from one or many related tables, select the fields to be shown, specify which criteria for each field to search for, save the query for repeated use, save the results of a query, or enter them on a report for printing off.

Using SQL SELECT TblEmployee.Title, TblEmployee.[First Name], TblEmployee.Surname, TblEmployee.Position FROM TblEmployee WHERE (((TblEmployee.Position)="manager")) ORDER BY TblEmployee.Surname;

Database Structure The building blocks are the tables and the relationships between the tables. A table is a collection of data arranged in rows and columns. Fields are the titles to the columns. Records are the rows, which contain the set of data for a single item.

Table (Data) Primary Key ColumnsRows Fields (title)

Table (Design) Field Names Data Types

Primary Key A field where the data entered is not duplicated in any other record for that field, (unique data). It is usually a numeric field, or a mix of text and numbers, i.e. National Insurance number. In some cases a surname could be used as a Primary key, depending upon the amount of data held, but a second person with the same surname cannot be entered. This could be overcome by having two fields entered as Primary key: First name and Surname. If no Primary key is entered then the database may create one by default: (an Auto-number).

Foreign Key This is a Field in a table, and this Field also exists in another table as the Primary key. This is the basis of a direct link between the two tables. It is the only Field where the data needs to be repeated. What would a suitable Primary key be for: –an employee in the payroll, –a hospital out-patient, –a catalogue of DVD films?

Field Data Types Data entered into a database may be of several types. This helps with the validation of data entered into the database and restricts the entering of erroneous data. Calculations can be performed on numeric data only. The length of text fields need to be regulated to free up allocated space and need to be similar for linking through relationships.

Indexing Important for sorting and searching. Data can be shown in i.e. alphabetical surname order, employee number order, or a combination of two or more Fields if indexed in the design. If there is a Primary key present the database will be sorted by that Field automatically. An index field is generally known as a Secondary key. Surname Indexed Only text, numeric, currency or date can be indexed.

Validation Is done to ensure (as far as possible) that every data entry is accurate. There are several types of validation check: Does it have to be there; Is it within a specified range; Is it one of a list of valid values; Is it in a specified format of numbers and letters?