Unit 4 Normalisationand Relational Database Management Systems.

Slides:



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

CHAPTER OBJECTIVE: NORMALIZATION THE SNOWFLAKE SCHEMA.
Chapter 10: Designing Databases
Normalisation Ensuring data integrity in database design 1.
Athabasca University Under Development for COMP 200 Gary Novokowsky
NMED 3850 A Advanced Online Design February 25, 2010 V. Mahadevan.
Relational Data Analysis Learning outcomes  understand the process of normalisation;  perform Relational Data Analysis;  recognise the importance of.
Project and Data Management Software
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Databases and Database Management Systems
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?
Data at the Core of the Enterprise. Objectives  Define of database systems  Introduce data modeling and SQL  Discuss emerging requirements of database.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
2.3 Organising Data for Effective Retrieval
Data at the Core of the Enterprise. Objectives  Define of database systems.  Introduce data modeling and SQL.  Discuss emerging requirements of database.
Week 6 Lecture Normalization
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.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 3 Objectives: Identifying and Eliminating Database.
CREATE THE DIFFERENCE Normalisation (special thanks to Janet Francis for this presentation)
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
BUS1MIS Management Information Systems Semester 1, 2012 Access: Creating a Database Week 6 Lecture 2.
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!
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
Module III: The Normal Forms. Edgar F. Codd first proposed the process of normalization and what came to be known as the 1st normal form. The database.
CORE 2: Information systems and Databases NORMALISING DATABASES.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
Organizing Data and Information. What is Data?? Numbers, characters, images, or other method of recording, in a form which can be assessed by a human.
Chapter 12: Designing Databases
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Module 2: Information Technology Infrastructure Chapter 5: Databases and Information Management.
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.
DATABASE SYSTEMS. DATABASE u A filing system for holding data u Contains a set of similar files –Each file contains similar records Each record contains.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
FILES AND DATABASES. A FILE is a collection of records with similar characteristics, e.g: A Sales Ledger Stock Records A Price List Customer Records Files.
Unit 4 Normalisationand Relational Database Management Systems.
1 Introduction to Oracle Chapter 1. 2 Before Databases Information was kept in files: Each field describes one piece of information about student Fields.
Databases.
Handling Many to Many Relationships. 2 Handling Many:Many Relationships Aims: To explain why M:M relationships cannot be implemented in relational database.
Concepts of Database Management, Fifth Edition Chapter 6: Database Design 2: Design Methodology.
+ Information Systems and Databases 2.2 Organisation.
Unit 5 Advanced Databases The Purpose and features of a relational database.
Database Management Systems (DBMS)
Database Terms t DBMS –Database Management System. A software used to organise, analyse, store, retrieve, and edit information. –e.g., Visual FoxPro, Access.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Flat Files Relational Databases
NORMALIZATION. What is Normalization  The process of effectively organizing data in a database  Two goals  To eliminate redundant data  Ensure data.
Instructor: Pavlos Pavlikas1 How Data is Stored Chapter 8.
Chapter 13.3: Databases Invitation to Computer Science, Java Version, Second Edition.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
Sample Table Standard Notation Entity name in uppercase
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
What Is Normalization  In relational database design, the process of organizing data to minimize redundancy  Usually involves dividing a database into.
©G. Millbery 2005Relational and Online Database Management SystemsSlide 1 Module Relational and Online Database Management Systems Normalisation.
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 OF DATABASES. WHAT IS NORMALISATION? Normalisation is used because Databases need to avoid have redundant data, which makes it inefficient.
2b. Create an Access Database Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.
Relational and Online Database Management Systems Normalisation
Database Management  .
Databases A brief introduction….
Database Management Concepts
Databases 1.
Presentation transcript:

Unit 4 Normalisationand Relational Database Management Systems

Computerised Databases A database is a organised collection of data items and links between them structured in such a way that it allows it to be accessed by a number of different application programs. i.e. related tables of data which are linked together and many programs can use the data in the tables Use a database when you need to store lots of data

Members No ForenameSurnameAddress 1Address 2Tel NoVideo No 122EvansDaniel7 High StAberaeron LeesAnna2 Bridge St Lampeter EvansDaniel7 High StAberaeron Title Certificate Category Cost per day Date loaned Length of loan Date due Total cost Crash12 Comedy £3.0012/09/051 day13/09/05£3.00 Emma12Drama£3.0012/09/051 day13/09/05£3.00 War of the Worlds PGSci FI£3.5914/09/052 days16/09/05£3.50 Duplication in Flatfile

Linked data tables in a relational database Primary Key Foreign Key Primary Key Loans ID Primary Key

Normalisation

Terminology: Primary Key A primary key is a unique value which allows each record to be identified CustomerIDFirstNameLastName 1BrianSmith 2HarryAdams 3JoeJones 4HarrySmith  FirstName or LastName cannot be primary keys as they contain duplicate and un-unique data. CustomerID uniquely identifies a row and is therefore suitable

Sometimes there is no single field appropriate as a primary key. In these circumstances, it is possible to select two fields which, when taken together create a unique value: OrderNoItemNoEmployeeNoCustomerNoItemNameQuantity Nut Bolt Washer Bolt Washer4 There are no unique fields, so the Primary Key is best suited by OrderNo and ItemNo taken together

Foreign Key A Foreign key is a primary key of another table used to link the tables

Second Normal Form (2NF) To be in 2NF a table must: –Be in 1NF (obviously) –Have all non key fields fully functionally dependant on the primary key In English: –A non key field is one that is not part of the primary key –It means that you need to use the primary key to determine the value of the other fields in the table –If you can find the value of other fields without using the primary key, you should remove that field from the table and place it in a separate table

Third Normal Form (3NF) To be in 3NF a table must: –Fields which do not form part of the primary key must always be solely dependent on the primary key and not on anything else, such as another non key field

Third Normal Form (Cont.) Remove City from the table and create a new cities table Remove Salary from the table and create a job type table Staff EmployeeID* LastName FirstName CityID TypeID Cities CityID* City JobTypes TypeID* Salary

WardID # No of Beds Type of Ward DoctorID * PatientID#Name Illness Gender Address WardID * DoctorID# Name Specialism ContactNo DoctorTable (DoctorID#, Name, Specialism, Contact No, WardID,) WardTable (WardID#, No of Beds,Type of Ward, DoctorID) PatientTable (PatientID#, Name,Adress, Illness, Gender, DoctorID, WardID), # Primary Key * Foreign Key

Advantages of using databases (Advantages of normalisation) 1. Avoids data duplication -data stored once -linked by keyfields -all data available via relational links in keyfields 2. Controlled redundancy - Minimises data duplication 3. Ensures consistency of data - of data to all users 4. Data independence - data stored separately from programs so can add new fields because data is independent of the applications which use it 5. Increased security

What makes databases secure ? Hierarchy of passwords User access rights and privileges Data is stored separately from programs so different programs cannot overwrite data.

Disadvantages Complex to set up and maintain; needs team of programmers to maintain it. Database software is large complex expensive and requires powerful computers. All applications which access the data will be affected if database fails. As the DBMS is the only access to operational data a system failure can have serious consequences