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.

Slides:



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

C6 Databases.
By RUPESH KUMAR.  Database? Types? Abstraction?  Database Models?  Database Integrity?  ACID?  RDBMS?  Normalization?  Data Warehouse?  Database.
Unit 7: Store and Retrieve it Database Management Systems (DBMS)
Managing Data Resources
Database Management: Getting Data Together Chapter 14.
Organizing Data & Information
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
WFM-6103: Hydrologic Information System (HIS) Akm Saiful Islam Lecture-5: Database Management System April-October, 2006 Institute of Water and Flood Management.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Databases Chapter 11.
Databases and Database Management Systems
Managing Data Resources. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits that represents a single.
Professor Michael J. Losacco CIS 1150 – Introduction to Computer Information Systems Databases Chapter 11.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
DBS201: Introduction to Database Design
5.1 © 2007 by Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
DBMS By Narinder Singh Computer Sc. Deptt. Topics What is DBMS What is DBMS File System Approach: its limitations File System Approach: its limitations.
Database Design - Lecture 1
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
Objectives Overview Define the term, database, and explain how a database interacts with data and information Define the term, data integrity, and describe.
The McGraw-Hill Companies, Inc Information Technology & Management Thompson Cats-Baril Chapter 3 Content Management.
2005 SPRING CSMUIntroduction to Information Management1 Organizing Data John Sum Institute of Technology Management National Chung Hsing University.
Chapter 7: Database Systems Succeeding with Technology: Second Edition.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Database Management. ICT5 Database Administration (DBA) The DBA’s tasks will include the following: 1. The design of the database. After the initial design,
311: Management Information Systems Database Systems Chapter 3.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
Lecturer: Gareth Jones. How does a relational database organise data? What are the principles of a database management system? What are the principal.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Professor Michael J. Losacco CIS 1110 – Using Computers Database Management Chapter 9.
DAY 12: DATABASE CONCEPT Tazin Afrin September 26,
Information: Policy, Strategy and Systems Module Overview
Database A database is a collection of data organized to meet users’ needs. In this section: Database Structure Database Tools Industrial Databases Concepts.
1.file. 2.database. 3.entity. 4.record. 5.attribute. When working with a database, a group of related fields comprises a(n)…
Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Announcements. Data Management Chapter 12 Traditional File Approach  Structure Field  Record  File  Fixed All records have common fields, and a field.
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.
What's a Database A Database Primer Let’s discuss databases n Why they are hard n Why we need them.
Technology In Action Chapter 11 1 Databases and… Databases and their uses Database components Types of databases Database management systems Relational.
5 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
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.
ITGS Databases.
Database Systems Basic Data Management Concepts
Data resource management
1 Technology in Action Chapter 11 Behind the Scenes: Databases and Information Systems Copyright © 2010 Pearson Education, Inc. Publishing as Prentice.
Advanced Accounting Information Systems Day 10 answers Organizing and Manipulating Data September 16, 2009.
Management Information Systems, 4 th Edition 1 Chapter 8 Data and Knowledge Management.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Managing Data Resources. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits that represents a single.
Database Management Systems (DBMS)
Database and Information Management Chapter 9 – Computers: Understanding Technology, 3 rd edition.
Foundations of Business Intelligence: Databases and Information Management.
0 / Database Management. 1 / Identify file maintenance techniques Discuss the terms character, field, record, and table Describe characteristics.
Flat Files Relational Databases
CIS 250 Advanced Computer Applications Database Management Systems.
GCSE ICT How data is stored. How is data stored? Data can be stored in paper-based systems including: –Reference books –Dictionaries –Encyclopaedias –Directories.
11 Database The ultimate in data organization. 2 Database Management Systems (DBMS)  Application software designed to capture and analyze data  Four.
Databases.
Database Management  .
Basic Concepts in Data Management
Relational Database Model
MANAGING DATA RESOURCES
Database Management Concepts
Presentation transcript:

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 redundancy) Data consistency Data integrity Very quick to set up Really only useful for small amounts of data

Relational Database Two or more linked tables Related data in each table Much more complicated to set up

Terms Data consistency Data redundancy Data integrity Data independence

Consistency Because the database is using the same piece of data in different contexts – e.g. customers name in invoice or order, the data is the same i.e. consistent

Redundancy In a relational database data is entered once and used by the whole system. This means that data is only stored ONCE, reducing data redundancy.

Integrity Data is correct (GIGO, validation, verification)

Independence Data can be changed without having to change the applications which process it. In other words the data and the applications using it are independent.

Primary & Foreign Keys Primary key (key field) is a unique identifier for a record. Tables can be linked by associating a primary key with a field in another table, this new field is called the foreign key.

Normalisation Minimises the duplication of data Eliminates redundant data Ensures data integrity Allows flexible extraction of information

1NF Think of one table containing the customer data, their orders and the product information. This will clearly mean that there is repeated (redundant data). Removing the fields into their own customer, order and product tables reduces the redundancy – 1NF

2NF In the last example I deliberately left the orders in one table. Clearly this means having to create a new order for each product ordered by the customer – in other words some of the data in the order form is dependant on only one of the key fields (product name for example). In order to make this database more efficient we need to create a new table – order details table and link the order and product tables.

3NF We check to see that there are no fields that are independent of the key fields, in this example there are none, but in the example below you could leave fields in the wrong table and they would repeat (only if you were really dozy though!)

Example Reduce this list of fields into 3NF: Ward_number Ward_name Number_of_beds Nurse_name Nurse_staff_no Patient_number Patient_name Patient_address Patient_tel_no Patient_DOB Consultant_number Consultant _name Consultant_specialism

Security Flat file databases mean that you can’t lock off any data to anyone Relational databases mean that restrictions can be imposed upon certain users

Data Warehouse This is the term for a VERY large database. Consider all of the information being stored on a loyalty card….

Data Mining This is the process of extracting information from a data warehouse to discover: Patterns in data Associations in the data Trends over time Lists of customers likely to buy a product Comparisons with competitors Modelling Predictions Location information Sale patterns Customer buying patterns loyalty

Applications of Data Mining Helping against terrorism (pattern tracking) Preventing Shopifting Identification of custimer needs

DBMS Database management systems A Database Management System (DBMS) is a set of computer programs that controls the creation, maintenance, and the use of a database. Allows data to be independent of the programs that analyse the data

DBMS Allow database to be defined Allows queries Allows data to be appended Allows modification of the database Provides security Allows import and export

DBMS - Advantages Data is stored in a structured and logical way Data independence Avoids data redundancy Used by many users Data integrity is maintained Increased security Data definitions are standardised

DBMS - Disadvantages Difficult to use Costs can be high Centralisation – could lead to problems

Queries Structured Query Language (SQL) Uses a list of commands to select data e.g. SELECT Surname FROM Tbl_personnel WHERE Pers_Dept = ‘Production’ AND per_salary => 30000

Using SQL you can: Combine data Select fields Specify criteria Select field for a report Specify ordering or groups Re-use the query Save the results

Data Dictionary Details of tables Field names field types Field length validation

Distributed Databases Does exactly what it says on the tin, a database that acts as one system, but is in fact spread into different locations. Advantages Not in single location Improved performance Disaster proof (!?) Local access means less traffic

Disadvantages Much more complex Increased security risk If one server fails may experience loss of access Relies on communications Inconsistencies may occur