Flat Files Relational Databases

Slides:



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

WHAT D IS RAW, UNPROCESSED FACTS AND FIGURES COLLECTED, STORED AND PROCESSED BY COMPUTERS.
C6 Databases.
Database Theory Why use database? Data is a valuable corporate resource which needs adequate accuracy, consistency and security controls. The centralized.
Normalisation Ensuring data integrity in database design 1.
Data - Information - Knowledge
Chapter 3 Database Management
1 Introduction The Database Environment. 2 Web Links Google General Database Search Database News Access Forums Google Database Books O’Reilly Books Oracle.
3-1 Chapter 3 Data and Knowledge Management
WFM-6103: Hydrologic Information System (HIS) Akm Saiful Islam Lecture-5: Database Management System April-October, 2006 Institute of Water and Flood Management.
Business Driven Technology Unit 2 Exploring Business Intelligence Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Databases and Database Management Systems
Professor Michael J. Losacco CIS 1150 – Introduction to Computer Information Systems Databases Chapter 11.
WHAT IS A DATABASE ? a collection of data organized to help easy retrieval & usage.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
It refers to the software used to manage the database.
IST Databases and DBMSs Todd S. Bacastow January 2005.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
Unit 18: Database Modelling
Computers Are Your Future Tenth Edition Chapter 12: Databases & Information Systems Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall1.
Unit 4 Normalisationand Relational Database Management Systems.
Database Management System (DBMS)
Organizing Data and Information AD660 – Databases, Security, and Web Technologies Marcus Goncalves Spring 2013.
Database Management. ICT5 Database Administration (DBA) The DBA’s tasks will include the following: 1. The design of the database. After the initial design,
Database Normalization Lynne Weldon July 17, 2000.
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.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Professor Michael J. Losacco CIS 1110 – Using Computers Database Management Chapter 9.
Storing Organizational Information - Databases
MIS 327 Database Management system 1 MIS 327: DBMS Dr. Monther Tarawneh Dr. Monther Tarawneh Week 2: Basic Concepts.
C6 Databases. 2 Traditional file environment Data Redundancy and Inconsistency: –Data redundancy: The presence of duplicate data in multiple data files.
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.
Module 2: Information Technology Infrastructure Chapter 5: Databases and Information Management.
Chapter 4c, Database H Definition H Structure H Parts H Types.
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
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.
Fanny Widadie, S.P, M.Agr 1 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.
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.
ITGS Databases.
 So far in ICT we’ve covered how data is entered into computers (data capture) and how it’s checked (validation and verification).  In this section.
Maintaining a Database Access Project 3. 2 What is Database Maintenance ?  Maintaining a database means modifying the data to keep it up-to-date. This.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
GIS Data Models GEOG 370 Christine Erlien, Instructor.
Database Management Systems (DBMS)
Lesson 2: Designing a Database and Creating Tables.
0 / Database Management. 1 / Identify file maintenance techniques Discuss the terms character, field, record, and table Describe characteristics.
CIS 250 Advanced Computer Applications Database Management Systems.
Instructor: Pavlos Pavlikas1 How Data is Stored Chapter 8.
Control of data redundancy Data consistency More information from the same amount of data Sharing of data Improved data integrity Improved security Enforcement.
6.1 © 2007 by Prentice Hall Chapter 6 (Laudon & Laudon) Foundations of Business Intelligence: Databases and Information Management.
FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5.
NORMALIZATION Handout - 4 DBMS. What is Normalization? The process of grouping data elements into tables in a way that simplifies retrieval, reduces data.
Database Planning Database Design Normalization.
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
1 Management Information Systems M Agung Ali Fikri, SE. MM.
Databases and DBMSs Todd S. Bacastow January
Lesson 10 Databases.
Databases.
Introduction to Computing
Information Systems Today: Managing in the Digital World
Databases A brief introduction….
Basic Concepts in Data Management
Relational Database Model
Database Management Concepts
Databases 1.
Database management systems
Presentation transcript:

Flat Files Relational Databases

Flat Files Databases which contain only 1 table of data. Advantages Simple & easy to use, can be set up quickly (good for novice users) Fine if only want to use for storage & retrieval of data (e.g. student records) Problems Data redundancy (duplication) Data integrity (correctness of data) Inefficient (may have to enter data twice – wastes time)

Relational Databases “A large collection of data items stored in tables containing links between the tables so that the data can be accessed in many different ways and by a range of different applications programs”. Data held in 2 or more tables Links between tables Advantages Data can extracted to give meaningful information (reports) Avoids problems of flat files (data consistency, redundancy, integrity & independence). Improves security Disadvantages Greater knowledge needed to set up Must be set up carefully to avoid errors

4 Data Key terms Data Consistency Data Redundancy Data Integrity Using relational database helps to ensure consistency across tables & files (e.g…) Data Redundancy Data which is repeated unnecessarily (far less in relational database) Data Integrity Correctness of the data. Steps should be taken to check data entry training, verification, validation, maintenance Data independence Data is independent of application used to process it. Can create new applications as necessary & still use data.

Primary & Foreign Keys Primary key Field used to uniquely define a particular record or line / row in table (normally numeric) E.g. Membership number, product number, employee number etc. Foreign key Field of one table also primary key of another Establish relationships between tables

Normalisation Improves design of database 3 stage process (1st, 2nd & 3rd normal form) Why normalise? Minimises duplication Eliminates redundancy Ensures data integrity Allows flexible extraction

Distributed Databases A single database under control of a DBMS (Database Management System) where storage devices are not attached to a common processor. Instead data is stored in storage devices attached to multiple computers located across network.

Distributed Databases Advantages Improved performance (complex data mining in less time) If local server fails, data remains accessible Disadvantages Complex to install & maintain Increased security risk (files transferred across networks) Relies on data communication Could get inconsistencies due to number of users

Questions Explain, using an example, why normalisation is used when designing a relational database. (4 marks) A hospital uses a relational database management system for storing patient records. Staff and patients are allocated to wards. (i) Explain what is meant by a relational database. [2] (ii) One table in this database could be WARD (WardId, NumofBeds, StaffId ) with WardId being the primary key and StaffId the foreign key. Give two other suitable tables you could expect to see in this database, identifying any primary or foreign keys. [6] (iii) Explain why relational databases are more secure than a flat file approach for storing patient records. [2] (b) Hospitals use distributed medical databases. Describe the problems that could arise when using such distributed medical databases. [4]