2.1 Data Input and Sources of Error

Slides:



Advertisements
Similar presentations
Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
Advertisements

CC SQL Utilities.
Benchmark Series Microsoft Access 2010 Level 1
3.1 Data and Information –The rapid development of technology exposes us to a lot of facts and figures every day. –Some of these facts are not very meaningful.
Introduction to Structured Query Language (SQL)
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 11 1 Microsoft Office Excel 2003 Tutorial 11 – Importing Data Into Excel.
Concepts of Database Management Sixth Edition
Access Tutorial 3 Maintaining and Querying a Database
Database Design IST 7-10 Presented by Miss Egan and Miss Richards.
Chapter 9 Database Management
Software Development Unit 2 Databases What is a database? A collection of data organised in a manner that allows access, retrieval and use of that data.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
Topics Covered: Data preparation Data preparation Data capturing Data capturing Data verification and validation Data verification and validation Data.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
Database Lecture # 1 By Ubaid Ullah.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
1 Chapter 1: Finding Your Way Through a Database Exploring Microsoft Office Access 2010.
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
ASP.NET Programming with C# and SQL Server First Edition
Encoding, Validation and Verification Chapter 1. Introduction This presentation covers the following: – Data encoding – Data validation – Data verification.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Excel Project 5 Creating, Sorting, and Querying a List.
Chapter 4 The Relational Model 3: Advanced Topics Concepts of Database Management Seventh Edition.
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
Database Management.
Lesson 2.  To help ensure accurate data, rules that check entries against specified values can be applied to a field. A validation rule is applied to.
Data entry: Validation
Checking data Chapter 7 Prepared by:Sir Mazhar Javed.
WEEK 11 Database Design. TABLE INSTANCE CHARTS Create Tables.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Professor Michael J. Losacco CIS 1110 – Using Computers Database Management Chapter 9.
Creating a Database Designing Structure, Capturing and Presenting Data.
System Development Lifecycle Verification and Validation.
Chapter 9 Database Management. Chapter 9 Objectives Discuss the functions common to most DBMSs Identify the qualities of valuable information Discuss.
Chapter 17 Creating a Database.
11 3 / 12 CHAPTER Databases MIS105 Lec15 Irfan Ahmed Ilyas.
Presented By: Gail Rose-Innes Camps Bay High School ICT & CAT Department Microsoft Access 2010.
1 Chapter 1: Finding Your Way Through a Database Exploring Microsoft Office Access 2007.
Enhancing Forms with OLE Fields, Hyperlinks, and Subforms – Project 5.
Database Management Systems.  Database management system (DBMS)  Store large collections of data  Organize the data  Becomes a data storage system.
FIX Eye FIX Eye Getting started: The guide EPAM Systems B2BITS.
ITGS Databases.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 3 BACKNEXTEND 3-1 LINKS TO OBJECTIVES Modify a Table – Add, Delete, Move Fields Modify a Table.
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.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
Verification & Validation. Batch processing In a batch processing system, documents such as sales orders are collected into batches of typically 50 documents.
Use of ICT in Data Management AS Applied ICT. Back to Contents Back to Contents.
1 3 Computing System Fundamentals 3.6 Errors Prevention and Recovery.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
0 / Database Management. 1 / Identify file maintenance techniques Discuss the terms character, field, record, and table Describe characteristics.
IST 220 – Intro to Databases Lecture 2 Touring Microsoft Access.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
Presentation on Database management Submitted To: Prof: Rutvi Sarang Submitted By: Dharmishtha A. Baria Roll:No:1(sem-3)
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
Input, Output and Processing.. What data needs to be input into the system? Identify the sources – i.e. where does the data come from? What is the volume.
( ) 1 Chapter # 8 How Data is stored DATABASE.
Excel Tutorial 8 Developing an Excel Application
GO! with Microsoft Office 2016
Microsoft Office Access 2010 Lab 2
Data and Information.
Ch2 Data Organization and Data Control
Week 12 Option 3: Database Design
OPERATE A WORD PROCESSING APPLICATION (BASIC)
Objectives TO UNDERSTAND THAT CAPTURING DATA IS VALIDATED AND VERIFIED TO CHECK THAT IT IS REASONABLE AND CORRECT.
DATA RECORDS & FILES By Sinkala.
DATABASES WHAT IS A DATABASE?
The ultimate in data organization
Grauer and Barber Series Microsoft Access Chapter One
Presentation transcript:

2.1 Data Input and Sources of Error Can be done through: Keyboards Sensors Scanners Sound recorders Digital video cameras

2.1 Data Input and Sources of Error Mistakes may be made during data entry. Three different sources of errors caused by manual input: Error Source of error Example Data source error Data source providers provide incorrect data. An interviewee reports an incorrect telephone number. Transcription error Data is read or typed in incorrectly. ‘1’ as ‘l’ or ‘o’ as ‘0’ Transposition error Two consecutive digits are swapped. Type 61 when you intend to type 16. Sources of error caused by manual input

2.1 Data Input and Sources of Error Garbage-in-garbage-out (GIGO) Erroneous data always produces inaccurate information. Waste human resources while producing useless information. Steps must be taken to identify inaccurate data during the process of data input.

2.1 Data Input and Sources of Error Garbage-in-garbage-out (GIGO) Garbage in Transcription error The position numbers in all exam reports are wrong. They are regarded as errors and they are garbage. Garbage out An example of garbage-in-garbage-out

2.1 Data Input and Sources of Error Garbage-in-garbage-out (GIGO) Garbage in Transcription error The position numbers in all exam reports are wrong. They are regarded as errors and they are garbage. Garbage out An example of garbage-in-garbage-out

2.2 Data Control Data Validation Data validation Data verification Two types of data control to reduce data errors: Data validation Data verification Data Validation The process of comparing data with a set of rules or values to make sure that the data is reasonable and valid Can detect some invalid data in the source documents

2.2 Data Control Data Validation Validity check Function Example Field presence check Ensure that all necessary fields are present. The student number must be included in the student record. Field length check Ensure that the data has the correct number of characters or digits. A domestic telephone number in Hong Kong must have 8 digits. Range check Ensure that the data value is within a pre-determined range. The mark of a test should range from 0 to 100. Fixed value check Ensure that the data conforms to be one of the values in a predefined list. The gender of a student must be either ‘Male’ or ‘Female’. Format check Ensure that the form of data follows some known patterns. The e-mail address must be a combination of a user name and a domain name with the symbol ‘@’ in between. Different types of validity checks and their uses

2.2 Data Control Data Validation Validity check Function Example Type check Ensure that the data types are correct. The students’ examination marks should be numbers but not characters, while their names should be characters but not numbers. Check digit It is used for self-checking. With numeric data, a check digit is calculated using a mathematical formula and this is then attached to the end of the number. When the check digit of the number matches the digit calculated from the number, the number is confirmed valid. Parity check is a common application of check digit in digital data transmission. The check digit of ISBN. Different types of validity checks and their uses

2.2 Data Control Data Verification Double data entry Input data twice A control used to check whether the inputted data matches that in the source document Two methods commonly used for data verification: Input data twice Double data entry

2.2 Data Control Input Data Twice An operator inputs the data twice and allows the computer system to check the second entry against the first one. It reports any discrepancies and the operator is required to correct the error manually. Example: When changing the password of your e-mail account, you have to re-enter the password for confirmation.

2.2 Data Control Input Data Twice Input data twice

2.2 Data Control Double Data Entry Two operators enter the same source document into two different files. The computer compares the two files and reports any discrepancies between them. The discrepancies must be checked and corrected manually.

2.2 Data Control Double Data Entry Double data entry 1st operator Check for discrepancies 2nd operator Double data entry

2.2 Data Control Double Data Entry Double data entry 1st operator Check for discrepancies 2nd operator Double data entry

2.3 Data Hierarchy The data hierarchy of a database system can be divided into 4 levels: Field Record Table Database

2.3 Data Hierarchy Database Hierarchy Level Description Example of usage Field It is the smallest unit of data that can be accessed by a user. Represent a specific fact of a record. Can be of type: numeric, text, date, Boolean, etc. Telephone number Mailing address Monthly income Marital status Record It is a collection of related fields. Contain information of one specific entity. The data in a key field can be used to uniquely identify one particular record from the others. Data hierarchy

2.3 Data Hierarchy Database Hierarchy Level Description Example of usage Table It is a collection of related records with identical record structures. Contain the information of all entities stored in specific record format. All records in a table have unique and different values in key field. Database It is a collection of related tables. May link records from different tables dynamically with one or more key fields. Two tables can be linked with a key field. Data hierarchy

2.3 Data Hierarchy Hierarchical structure of data Database Record Field Hierarchical structure of data

2.3 Data Hierarchy Hierarchical structure of data Database Record Field Hierarchical structure of data

2.4 Database Management System (DBMS) DBMS is a computer program that provides functions to: manage the database structure store, organize and retrieve data in a database Application of DBMS Example Database server MySQL, Oracle Enterprise Manager, Microsoft SQL Server Small office and personal use Microsoft Access, Microsoft Visual FoxPro, FileMaker Pro Examples of DBMS

Oracle Enterprise Manager 2.4 Database Management System (DBMS) MySQL Oracle Enterprise Manager Examples of database server

2.4 Database Management System (DBMS) Microsoft Access Visual FoxPro Examples of DBMS for personal use

2.4 Database Management System (DBMS) Basic Functions to Organize Tables Function Description Example Create table Create a new table and specify the record structure. To create a table ‘student’ with fields ‘Name’, ‘ID’ and ‘Age’: SQL command CREATE TABLE student (Name char(24), ID char(8), Age decimal(3,0)) Microsoft Access (in Design View) Basic DBMS functions for organizing a table

2.4 Database Management System (DBMS) Basic Functions to Organize Tables Function Description Example Modify table Change the structure of an existing table. To remove the field ‘Age’ from table ‘student’: SQL command ALTER TABLE student DROP Age Microsoft Access (in Design View) Basic DBMS functions for organizing a table

2.4 Database Management System (DBMS) Basic Functions to Organize Tables Function Description Example Delete table Remove a table from a database. All records in the table will also be deleted permanently. To remove table ‘student’: SQL command DROP TABLE student Basic DBMS functions for organizing a table

2.4 Database Management System (DBMS) Basic Functions to Manage Records in a Table Function Description Example Add a new record Create a new record. Users are subsequently able to input information into it. To add a new record: SQL command INSERT TABLE student VALUES ("Ada Lee", "92001", 15) Visual FoxPro APPEND Basic DBMS functions for manipulating table records

2.4 Database Management System (DBMS) Basic Functions to Manage Records in a Table Function Description Example Delete existing records Remove unwanted records from a table. Users can issue a delete command with a condition statement such that all records matching the condition will be deleted at one time. To delete all records of students who are younger than 14-year old: SQL command DELETE FROM TABLE student WHERE Age < 14 Visual FoxPro USE student DELETE FOR Age < 14 Note: All the matched records are marked for deletion. They will be removed permanently by issuing the command PACK. Basic DBMS functions for manipulating table records

2.4 Database Management System (DBMS) Basic Functions to Manage Records in a Table Function Description Example Modify existing records Change the field values of selected records. Users can issue an update command with a condition statement such that all records matching the condition will be changed at one time. To add 1 to all records in the ‘Age’ column for students whose age are 16 or above: SQL command UPDATE TABLE student SET Age = Age + 1 WHERE Age >= 16 Visual FoxPro REPLACE Age WITH Age + 1 FOR Age >= 16 Basic DBMS functions for manipulating table records

2.4 Database Management System (DBMS) Basic Functions to Manage Records in a Table Function Description Example Browse records Display all or part of records of a table in a window. Users may also be allowed to add, modify or delete records in the browse window. To display all records in a browse window. Microsoft Access Visual FoxPro USE student BROWSE Double-click to open a browse window for the table ‘student’. Basic DBMS functions for manipulating table records

2.4 Database Management System (DBMS) Essential Features for Database Management Provides features to: facilitate the data input in data entry forms display results in query forms and generate reports Filter Allows users to specify a filtering condition Only the records that satisfy the condition are accessible in the database table. The unmatched records are hidden temporarily until the filter constraint is released.

2.4 Database Management System (DBMS) Essential Features for Database Management Filter Define a filter (e.g. logon is equal to "Y") on a table. Table containing all records Filtering records from a table

2.4 Database Management System (DBMS) Essential Features for Database Management Filter Table shows records that satisfy the filtering condition. Filtering records from a table

2.4 Database Management System (DBMS) Essential Features for Database Management Sort Change the order of records according to the value of one or more fields in a table. The sorted records are usually saved in a new table. Visual FoxPro command: Sort to sortedlist on fullname ascending Unsorted records in the table ‘Userlist’ Records are sorted by ‘Fullname’ and are stored in a new table ‘Sortedlist’. Sorting records in a table

2.4 Database Management System (DBMS) Essential Features for Database Management Sort Allows records to be rearranged in a specific order permanently A slow process if the number of records is large Index A small file containing a number of index keys. The index keys are created and arranged according to the index expression. One index file refers to one instance of a specific table only. An index file must be re-indexed when values of the field involved in the index expression have been changed. The index files are usually small relative to the referred table. They can be loaded into the main memory for speeding up the access process.

2.4 Database Management System (DBMS) Essential Features for Database Management Index Create an index file: Index on Fullname to user_index ascending Unsorted records in the table ‘Userlist’ Fullname Rec. No. Joyce Wong 2 Ko Ko Lo 4 Mark White 3 Ricky Mok 1 Records are accessed according to the order specified the index file. A Visual FoxPro example showing how to access records by using an index file

2.4 Database Management System (DBMS) Essential Features for Database Management Index Stop using the index file: Set index to Records are accessed in the original order as stored in the table ‘Userlist’. A Visual FoxPro example showing how to access records by using an index file

2.4 Database Management System (DBMS) Essential Features for Database Management Data Entry Forms Can be treated as the interfaces for adding or modifying records Advantages: Provide a user-friendly environment for data entry Perform data validation such as range check and type check of test marks Perform data verification such as double data entry of renewal password Simplify data entry with features like pull down menu, check box and list box Modify related records from two or more tables in one form

2.4 Database Management System (DBMS) Essential Features for Database Management Data Entry Forms Data entry form of Microsoft Access

2.4 Database Management System (DBMS) Essential Features for Database Management Query Forms Provide an interface for users to extract and display records which match the specified conditions The extracted data can further be modified, deleted or stored in a new table. Display selected records in query window temporarily. Define queries with selection criteria in the Design View. Extracting data by using query form

2.4 Database Management System (DBMS) Essential Features for Database Management Query Forms Advantages: Can be stored and are reusable Able to show data from two or more tables Able to display calculated results using the extracted records Writing commands in Structured Query Language (SQL) is another way to enquire about results from a database. SELECT bookname, type, price FROM book WHERE ((type = 'IT') or (type = 'ENG'))

2.4 Database Management System (DBMS) Essential Features for Database Management Reports Used to display results on the computer screen or produce hard copies with a printer in the defined format Advantages: Can be stored and are reusable Able to display data and calculated results from two or more tables. Able to print results in specified locations, styles and formats accurately

2.4 Database Management System (DBMS) Essential Features for Database Management Reports Click the ‘Report’ button. Creating a report in Microsoft Access

2.4 Database Management System (DBMS) Essential Features for Database Management Reports Click the ‘Report’ button. Creating a report in Microsoft Access

2.5 File Access Modes The access mode used to access database records depends on which media the database resides in. Sequential access mode Hard disk Optical disk Floppy disk Direct access mode Magnetic tape

2.5 File Access Modes Using magnetic tapes to back up data in a large organization Using hard disks in a server room

2.5 File Access Modes Sequential Access Mode Magnetic tape Data records are stored one by one along the lengthy magnetic strip. Need to be rewound forward or backward until the desired record is just underneath the read/write head before the reading or writing operation can proceed The seek time is long and unpredictable when records are retrieved randomly. Not a common medium for storing frequently used data records Mainly used for backing up and recovering of database and data files in computer servers

2.5 File Access Modes Direct Access Mode Hard disk The most common storage medium for secondary storage due to its high reliability, speed and capacity. During read/write operations, the magnetic disk plate (platter) rotates and the read/write head moves across the platter surface at the same time to the location containing the data. Once the target location is moved under the read/write head, the read/write operations can proceed. The seek time is much shorter and predictable, ranging from 8 ms to 20 ms. The most essential secondary storage device for a computer system

2.5 File Access Modes Direct Access Mode Hard disk Read / write head moves across platter surface to the right track and waits for the arrival of target data. Target data Platter surface rotates to move the data to the read / write head. The working mechanism of a hard disk

2.5 File Access Modes Direct Access Mode Other examples: Floppy disks DVD-RAM CD-RW They are limited in capacity and speed of data access. They are rarely used as the storage media for database systems and frequently used data files.

2.5 File Access Modes Direct Access Mode Other examples: Floppy disks DVD-RAM CD-RW They are limited in capacity and speed of data access. They are rarely used as the storage media for database systems and frequently used data files.