Flat file and relational databases 3.3.9. Flat file database In a flat file database information is held in a single table. Student IDStudent name GenderDOBCourse.

Slides:



Advertisements
Similar presentations
Normalisation.
Advertisements

Relational Terminology. Normalization A method where data items are grouped together to better accommodate business changes Provides a method for representing.
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.
Athabasca University Under Development for COMP 200 Gary Novokowsky
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Boyce-Codd Normal Form Kelvin Nishikawa SE157a-03 Fall 2006 Kelvin Nishikawa SE157a-03 Fall 2006.
1 5 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 5 Database Design: Normalization.
Designing a Database Unleashing the Power of Relational Database Design.
1 NORMALISATION. 2 Introduction Overview Objectives Intro. to Subject Why we normalise 1, 2 & 3 NF Normalisation Process Example Summary.
Relational Data Analysis II. Plan Introduction Structured Methods –Data Flow Modelling –Data Modelling –Relational Data Analysis Feasibility Maintenance.
Project and Data Management Software
Normalization A337. A337 - Reed Smith2 Structure What is a database? ◦ Tables of information  Rows are referred to as records  Columns are referred.
1 5 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 5 Database Design 1: Normalization.
Database – Part 2a Dr. V.T. Raja Oregon State University.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
VCE IT Theory Slideshows
CREATE THE DIFFERENCE Normalisation (special thanks to Janet Francis for this presentation)
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Concepts and Terminology Introduction to Database.
Relational databases and third normal form As always click on speaker notes under view when executing to get more information!
Avoiding Database Anomalies
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
Concepts of Database Management, Fifth Edition
A Normalisation Example Mark Kelly McKinnon Secondary College Vceit.com Based on work by Robert Timmer-Arends.
Normalization Are we Normal. Normalization Normalization is the process of converting complex data structures into simple, stable data structures It also.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
Copyright Ó Oracle Corporation, All rights reserved. Normalization Use the student note section below for further explanation of the slide content.Use.
Normalisation Rules and Practical Application Geoff Leese January 2010.
Logical Database Design Relational Model. Logical Database Design Logical database design: process of transforming conceptual data model into a logical.
CORE 2: Information systems and Databases NORMALISING DATABASES.
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.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Grade 11 Computer Science. Relational Databases  Using the link below, answer questions in your notebooks  Look at Kites.accdb database to refresh your.
Database Design – Lecture 8
Quiz questions. 1 A data structure that is made up of fields and records? Table.
Database Design Normalisation. Last Session Looked at: –What databases were –Where they are used –How they are used.
A337 - Reed Smith1 Structure What is a database? –Table of information Rows are referred to as records Columns are referred to as fields Record identifier.
Normalization MIS335 Database Systems. Why Normalization? Optimizing database structure Removing duplications Accelerating the instructions Data integrity!
Chapter 56 Relational Database Design Compiled by Eddie Moorcroft.
Normalisation RELATIONAL DATABASES.  Last week we looked at elements of designing a database and the generation of an ERD  As part of the design and.
Data modeling Process. Copyright © CIST 2 Definition What is data modeling? –Identify the real world data that must be stored on the database –Design.
* 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.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Sample Table Standard Notation Entity name in uppercase
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.
Normalisation 1NF to 3NF Ashima Wadhwa. In This Lecture Normalisation to 3NF Data redundancy Functional dependencies Normal forms First, Second, and Third.
Microsoft Access 2010 Chapter 11 Database Design.
Databases Database Normalisation. Learning Objectives Design simple relational databases to the third normal form (3NF).
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
Logical Database Design and Relational Data Model Muhammad Nasir
What Is Normalization  In relational database design, the process of organizing data to minimize redundancy  Usually involves dividing a database into.
Starter Draw a mind map for topic 6 Databases. Objectives Revise topic CG3.6 Databases using various activities and ensure that topics covered are understood.
Normalisation FORM RULES 1NF 2NF 3NF. What is normalisation of data? The process of Normalisation organises your database to: Reduce or minimise redundant.
Normalisation Worked example for an Order Remember : The data should depend upon the key, the whole key and nothing but the key.
NORMALISATION OF DATABASES. WHAT IS NORMALISATION? Normalisation is used because Databases need to avoid have redundant data, which makes it inefficient.
Relational Databases – Further Study I think we’ve covered all you need to know for GCSE about relational databases I’m not aware of any practical coursework.
Lesson Objectives Aims You should know about: 1.3.2: (a) Relational database, flat file, primary key, foreign key, secondary key, entity relationship modelling,
Databases A brief introduction….
Entity relationship diagrams
Normalization A337.
Normalization and Databases
PHP and MySQL.
Database Normalisation
Lesson Objectives Aims You should know about: 1.3.2:
Lesson Objectives Aims You should know about: 1.3.2:
Databases 1.
BTEC ICT – Unit 18 With Mr Griffiths.
Normalisation Un-normalised Data (UNF or 0NF) Data Attributes:
Presentation transcript:

Flat file and relational databases 3.3.9

Flat file database In a flat file database information is held in a single table. Student IDStudent name GenderDOBCourse IDCourse nameTeacher IDTeacher name 67678Jim SmithM30/01/20F451Computer fundamentals 4445Mr Surrall 67677Jane JonesF02/01/20F451Computer fundamentals 4445Mr Surrall 67678Jim SmithM30/01/20F452Programming & logic 4433Mr Surrall 67222Lucy KidF08/03/20F452Programming & logic 4445Mr Surrall

Flat file databases This presents three main problems: ● Lots of data is duplicated wasting memory. ● The same changes need to be made in lots of places if data needs updating. ● Very inefficient if you want to add new data ie a teachers address

Relational databases Relational databases were created to remove the problems with flat file databases. Relational databases are made up of lots of smaller tables linked together using Primary & Foreign keys.

Studen t ID Studen t name GenderDOBCourse numbe r 67678Jim Smith M30/01/ 20 F Jane Jones F02/01/ 20 F Jim Smith M30/01/ 20 F Lucy Kid F08/03/ 20 F452 Course IDCourse name Teacher ID Teacher name F451Computer fundament als 4445Mr Surrall F452Programmi ng & logic 4445Mr Surrall The Primary Key is a unique identifier. The Foreign key is the field that links to the Primary key in another table Students Course

Normalisation The process of converting a flat file database into a relational one is called normalisation. There are three stages in this normalisation called normal forms.

First normal form (1NF) A table is in first normal form if it contains no repeating attributes or groups of attributes.

Studen t ID Studen t name GenderDOBCourse numbe r 67678Jim Smith M30/01/ 20 F Jane Jones F02/01/ 20 F Jim Smith M30/01/ 20 F Lucy Kid F08/03/ 20 F452 Course IDCourse name Teacher ID F451Computer fundament als 4445 F452Programmi ng & logic 4445 Teacher ID Teacher name 4445Mr Surrall Students CourseTeacher

Second normal form (2NF) A table is in second normal form if it is in first normal form and no column which is not part of the primary key is dependant on only a portion of the primary key.

Studen t ID Studen t name GenderDOB 67678Jim Smith M30/01/ Jane Jones F02/01/ Lucy Kid F08/03/ 20 Course IDCourse name Teacher ID F451Computer fundament als 4445 F452Programmi ng & logic 4445 Teacher ID Teacher name 4445Mr Surrall Student ID Course number 67678F F F F452 StudentsEnrollment Course Teacher

Third normal form A table is in third normal form if it is in second normal form and contains no column that is not directly related to the primary key. A table is in third normal form if it contains no ‘non-key dependencies’

Studen t ID Studen t name GenderDOB 67678Jim Smith M30/01/ Jane Jones F02/01/ Lucy Kid F08/03/ 20 Course IDCourse name F451Computer fundament als F452Programmi ng & logic Teacher ID Teacher name 4445Mr Surrall Student ID Course number 67678F F F F452 Course ID Teacher ID F F StudentsEnrollment CourseStaff Teacher