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.

Slides:



Advertisements
Similar presentations
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.
Advertisements

Normalisation Ensuring data integrity in database design 1.
Athabasca University Under Development for COMP 200 Gary Novokowsky
The Relational Database Model:
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.
Project and Data Management Software
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Terms - data,information, file record, table, row, column, transaction, concurrency Concepts - data integrity, data redundancy, Type of databases – single-user,
Database Design Concepts Info1408
July 14, 2015ICS 424: recap1 Relational Database Design: Recap of ICS 324.
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Databases Tom Morgan.
Copyright © 2016 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Database Design Concepts
DATA MODELLING TOOLS FOR ORGANISING DATABASES. For a database to be organised and logical, it must be well-designed and set out. In such cases, the databases.
Modelling Techniques - Normalisation Description and exemplification of normalisation.Description and exemplification of normalisation. Creation of un-normalised.
CREATE THE DIFFERENCE Normalisation (special thanks to Janet Francis for this presentation)
MICROSOFT ACCESS 2007 BTA – Spring What is Access?  Microsoft Access is a database management system…this means that it contains database information.
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.
HNDComputing – DeMontfort University  DeMontfort University 2011 Database Fundamentals wk2 Database Design ConceptsDatabase Design Concepts Database Design.
CSC 240 (Blum)1 Introduction to Database. CSC 240 (Blum)2 Data versus Information When people distinguish between data and information, –Data is simply.
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
Module Title? DBMS Normalization. Module Title? DBMS Normalization  Normalization is the process of removing redundant data from tables in order to improve.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
Database Normalization Lynne Weldon July 17, 2000.
M Taimoor Khan Course Objectives 1) Basic Concepts 2) Tools 3) Database architecture and design 4) Flow of data (DFDs)
CORE 2: Information systems and Databases NORMALISING DATABASES.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
What's a Database A Database Primer Let’s discuss databases n Why they are hard n Why we need them.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
Lecture 5 Normalization. Objectives The purpose of normalization. How normalization can be used when designing a relational database. The potential problems.
+ Information Systems and Databases 2.2 Organisation.
Chapter 13 Designing Databases Systems Analysis and Design Kendall & Kendall Sixth Edition.
©NIIT Normalizing and Denormalizing Data Lesson 2B / Slide 1 of 18 Objectives In this section, you will learn to: Describe the Top-down and Bottom-up approach.
Database Design Normalisation. Last Session Looked at: –What databases were –Where they are used –How they are used.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Chapter 56 Relational Database Design Compiled by Eddie Moorcroft.
Lection №4 Development of the Relational Databases.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
IS 320 Notes for April 15, Learning Objectives Understand database concepts. Use normalization to efficiently store data in a database. Use.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Flat Files Relational Databases
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Plan the progression for the databases topic.
Sample Table Standard Notation Entity name in uppercase
Howard Paul. Sequential Access Index Files and Data File Random Access.
Lesson 13 Databases Lesson Objective: Understand the main features of database software Learning Outcome: Clearly identify the uses of database software.
What Is Normalization  In relational database design, the process of organizing data to minimize redundancy  Usually involves dividing a database into.
MS Access. Most A2 projects use MS Access Has sufficient depth to support a significant project. Relational Databases. Fairly easy to develop a good user.
Lecture # 17 Chapter # 10 Normalization Database Systems.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
NORMALISATION OF DATABASES. WHAT IS NORMALISATION? Normalisation is used because Databases need to avoid have redundant data, which makes it inefficient.
Decision Analysis Fall Term 2015 Marymount University School of Business Administration Professor Suydam Week 10 Access Basics – Tutorial B; Introduction.
Flat file and relational databases Flat file database In a flat file database information is held in a single table. Student IDStudent name GenderDOBCourse.
Understanding Data Storage
Databases – Exam questions
Chapter 4 Relational Databases
Databases A brief introduction….
Normalization Referential Integrity
Entity relationship diagrams
Lesson Objectives Aims You should know about: 1.3.2:
Chapter 17 Designing Databases
Lesson Objectives Aims You should know about: 1.3.2:
Databases 1.
BTEC ICT – Unit 18 With Mr Griffiths.
Presentation transcript:

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 in order to fully answer exam questions based upon this topic.

Activity 1 – Paired work 1)What is meant by data consistency? 2)What is meant by data redundancy? 3)What is data independence? 4)What is meant by a flat file database? 5)What is meant by a relational database?

Activity 1 – Paired work 1)What is meant by data consistency? – Data consistency refers to the concept that in databases all the data about a person or object would be the same in every instance of the data held about it. 2)What is meant by data redundancy? – Data redundancy is when the same data is repeated in a database system. 3)What is data independence? – Data independence is hiding the structural definition of data from the user of a database system 4)What is meant by a flat file database? – Flat file database system is one where all the data is stored together in one table. 5)What is meant by a relational database? – Relational database system is one where data is stored in two or more tables that are linked together

Activity 2 – Mind Map Complete this mind map! Advantages of relational databases over Flat file database

Activity 3 – Normalisation Normalisation is the name given to the process of turning a flat file database into a relational database. There are usually 3 stages known as: First Normal Form (1NF), Second Normal Form (2NF) and Third Normal Form (3NF). Using examples describe each of the above normalisation forms.

Activity 3 – Normalisation A table is in 1NF if it: 1)Contains no repeating attributes (fields) or groups attributes 2)Each group of related data is in its own table (Entity) 3) Contains a primary key that uniquely identifies each record (row) E.g. – Not in 1NF StudentTable (StudentNo, Student Name, DOB, Gender, Course No, CourseName, LecturerNo, Lecturer Name) In 1NF StudentTable (StudentNo, Student Name, DOB, Gender, Course No) CourseTable (Course No, CourseName, LecturerNo, Lecturer Name)

Activity 3 – Normalisation A table is in 2NF if it: 1) Is in 1NF 2) Contains no partial dependencies(Rows (records) of data should not be repeat) E.g. In 1NF StudentTable (StudentNo, Student Name, DOB, Gender, Course No) CourseTable (Course No, CourseName, LecturerNo, Lecturer Name) In the above example every time a student enrols on a new course their details would have to be repeated again with only the field CourseNo changing. This means data redundancy. CourseNo therefore is not related to the primary key field StudentNo. In 2NF StudentTable (StudentNo, Student Name, DOB, Gender) StudentTakes(StudentNo, Course No) CourseTable (Course No, CourseName, LecturerNo, Lecturer Name)

Activity 3 – Normalisation A table is in 3NF if it: 1) Is in 2NF 2) Contains no non-key dependencies(All columns depend on the primary key) E.g. In 2NF StudentTable (StudentNo, Student Name, DOB, Gender) StudentTakes(StudentNo, Course No) CourseTable (Course No, CourseName, LecturerNo, Lecturer Name) Look at the CourseTable. Lecturer Name is dependent on LecturerNo and not CourseNo. Hence this needs to separated into a table of its own. IN 3NF StudentTable (StudentNo, Student Name, DOB, Gender) StudentTakes(StudentNo, Course No) CourseTable (Course No, CourseName, LecturerNo) LecturerTable(LecturerNo, LecturerName)

Activity 4 – Normalisation 1)Describe what is meant by a primary key? 2)Describe what is meant by a foreign key? 3)Describe what is meant by a link? 4)Describe what is meant by a index?

Activity 4 – Relational Databases 1)Describe what is meant by a primary key? – A field that uniquely identifies a record (row) in a database table. 2)Describe what is meant by a foreign key? – A primary key field from one table that is repeated in another table to join the two tables together. 3)Describe what is meant by a link in a relational database? – This is the joining of 2 or more tables together by a foreign key. 4)Describe what is meant by an index in databases? – Data in a table is usually sorted in primary key order. Having an index on a field allows us to sort the data on another field besides the primary key field.

Activity 5 – Re-structuring data into third normal form For each of the following scenarios re-structure the data into third normal form: 1) 2) Student NumberStudent NameTutor NumberTutor Name Jaspreet Kaur6Helen Smith John Ingham6Helen Smith Lucy Smith7Graham Roseblade Remario Smyth6Helen Smith CompanyIDCompanyNameTelephonePackageNoPackagePrice RENTARent-A-Tool PowerPoint£80.00 SEYMOURSeymour Glass PowerPoint£80.00 RENTARent-A-Tool Excel£ RENTARent-A-Tool Access£150.00

Activity 6 – Exam Practise 1)Using the CG 3 Past Papers find exam questions relating to the aspects we have covered in todays revision session. Answer the questions and mark your answers using the appropriate mark scheme.

Plenary How many of the keywords can you remember from last weeks 30 seconds challenge?