DATA TYPES.

Slides:



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

2.2 Validation & Verification
DATA TYPES ICT DATATYPES. DATA TYPES ICT Numeric Data Numeric data simply means numbers. But, numbers come in a variety of different types... Integers.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
Validation and Verification
Microsoft Access 2000 Creating Tables and Relationships.
 By the end of this, you should be able to state the difference between DATE and INFORMAITON.
Information and Data What’s the difference between two? Information systems = hardware and software working together… It will take DATA that has been put.
Chapter 8: Systems analysis and design
 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. Computer-based filing systems Information in computer-based filing systems are stored in DATA FILES. A FILE is a collection of RELATED RECORDS.
Logical or Boolean Data stored in Boolean form can only be one of two available values. Think of a light switch – it’s on or off. Examples include: YES.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
Chapter 5: Data Types (2013) Revision Candidates should be able to know: Identify different data types? Key terms: File, record, field and key field Database.
5 5 Data types Logical/Boolean Has only two alternatives: Yes or no, on or off true or false Text/Alphanumeric Refers to all letters and numbers and other.
System Development Lifecycle Verification and Validation.
Data and information. Information and data By the end of this, you should be able to state the difference between DATE and INFORMAITON.
Systems Life Cycle. Know the elements of the system that are created Understand the need for thorough testing Be able to describe the different tests.
AS computing Validation and verification. Introduction It is important to maintain the integrity of any database of information. Any data item must always.
 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.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
Verification & Validation. Batch processing In a batch processing system, documents such as sales orders are collected into batches of typically 50 documents.
Databases 101 © Dolinski What you will learn How relational databases work What are the components that make up a database How to create each component.
Data Verification and Validation
Data Validation.
Mr C Johnston ICT Teacher
FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5.
Microsoft Access Prepared by the Academic Faculty Members of IT.
Software. Because databases can get very big, it is important to decide exactly what is going to be stored in each field. Fields can be text, number,
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.
Data Types Mr Tottman Link. Data Types Programs need to use data for calculations and for output to various devices The best programs will always use.
Data Capture Forms What are they?. Example 1 Example 2.
The purpose of a CPU is to process data Custom written software is created for a user to meet exact purpose Off the shelf software is developed by a software.
GCSE ICT LESSON 5 Booklet Sections: 6 & 7 Data Capture & Checking Data.
BTEC NCF IT Unit 02 Creating Systems to Manage Information Lesson 05 – Data Types Mr C Johnston.
N5 Databases Notes Information Systems Design & Development: Structures and links.
Validation and verification 1.2
DATABASE.
IGCSE 4 Cambridge Designing a database table Computer Science
Lesson 10 Databases.
Creating a database table
Data Types and Structures
Databases.
Databases Chapter 9 Asfia Rahman.
Building Tables & Defining Relationships
Databases.
GO! with Microsoft Office 2016
Data Types Variables are used in programs to store items of data e.g a name, a high score, an exam mark. The data stored in a variable is entered from.
DATA INPUT AND OUTPUT.
Data Types and Structures
Unit 16 – Database Systems
Types of data This presentation differentiates between ICT professional and end users.
GO! with Microsoft Access 2016
Validation Bury College.
IT Applications Theory Slideshows
Data Types Quiz.
Objectives TO UNDERSTAND THAT CAPTURING DATA IS VALIDATED AND VERIFIED TO CHECK THAT IT IS REASONABLE AND CORRECT.
Databases Software This icon indicates the slide contains activities created in Flash. These activities are not editable. For more detailed instructions,
Designing data capture forms
Creating Tables & Inserting Values Using SQL
Database Theory.
Spreadsheets, Modelling & Databases
The ultimate in data organization
Nagendra Vemulapalli Exam2 Overview Nagendra Vemulapalli
ICT Database Lesson 2 Designing a Database.
Databases This topic looks at the basic concept of a database, the key features and benefits of a Database Management System (DBMS) and the basic theory.
Introduction to MS ACCESS
Presentation transcript:

DATA TYPES

INTRODUCTION Before we enter data into a computer system, we usually need to tell the computer what type of data it is. This is because the computer stores and processes different types of data in different ways...

TYPES OF DATA There are several types of data types found in most computer systems: logical/Boolean Alphanumeric Numeric Date.

Boolean (Logical) Data Boolean data is sometimes called 'logical' data (or in some software, 'yes/no' data). Boolean data can only have two values: TRUE or FALSE Examples TRUE ON YES FALSE OFF NO

AND (GENDER = MALE) AND (HEIGHT > 1.6 ) THE LOGICAL OPERATOR LOOKS FOR THE SITUATION WHERE BOTH THE CONDITIONS ARE TRUE. A B 0UTPUT 1

OR ( GENDER = FEMALE) OR (HEIGHT < 1.6) THE LOGICAL OPERATOR LOOKS FOR THE SITUATION WHERE ANYONE IS TRUE. A B OUTPUT 1

ALPHANUMERIC Alphanumeric (often simply called 'text') data refers to data made up of letters (alphabet) and numbers (numeric). Usually symbols($%^+@, etc.) and spaces are also allowed. Examples DOG “A little mouse” ABC123 enquiries@bbc.co.uk

NUMERIC DATA Numeric data simply means numbers. But, just to complicate things for you, numbers come in a variety of different types... Integer Real number Currency Percentage

Integer An integer is a whole number - it has no decimal or fractional parts. Integers can be either positive or negative. Examples 12 45 1274 1000000 -3 -5735

Real number Any number that you could place on a number line is a real number. Real numbers include whole numbers (integers) and numbers with decimal/fractional parts. Real numbers can be positive or negative. Examples 1 1.4534 946.5 -0.0003 3.142

Currency Currency refers to real numbers that are formatted in a specific way. Usually currency is shown with a currency symbol and (usually) two decimal places. Examples £12.45 -£0.01 €999.00 $5500

Percentage Percentage refers to fractional real numbers that are formatted in a specific way - out of 100, with a percent symbol. So, the real value 0.5 would be shown as 50%, the value 0.01 would be shown as 1% and the number 1.25 would be shown as 125% Examples 100% 25% 1200% -5%

Date Date (and time) data is usually formatted in a specific way. The format depends upon the setup of the computer, the software in use and the user’s preferences. Date Examples 25/10/2007 12 Mar 2008 10-06-08 Time Examples 11am 15:00 3:00pm 17:05:45

Database An organised set of data is usually referred to as a database. ID No.: 356 Name: Jess D.o.B.: 3 Mar 1995 Phone: 7564356 Class: 5B Tutor: Mr Noggin Room: 56 ID No.: 412 Name: Hamad D.o.B.: 12 Nov 1994 Phone: 7465846 Class: 5B Tutor: Mr Noggin Room: 56 ID No.: 459 Name: Sita D.o.B.: 9 Jan 1994 Phone: 8565634 Class: 6Y Tutor: Ms Take Room: 18 ID No.: 502 Name: Hamad D.o.B.: 3 Mar 1995 Phone: 6554546 Class: 5B Tutor: Mr Noggin Room: 56

Record The set of data associated with a single object or person is known as a record. The data in each record is different, but each record has the same structure. (each one has a name, d.o.b., phone, etc.)

Example

Field student's records contain the same items. These items are known as fields. 

Example The field is the box that you would write in The field name is the label next to the box The data is what you would write in the box

Example

Example

Example

Key field/primary key Every record in a database can be individually identified. We need to be sure that when we access a record, we are accessing the correct one. Take a look at our students - what item of data identifies them from all of the other students?

Continued Name? No - we have two Hamads Date of Birth? No - Jess and Hamad share the same birthday Phone? No - two or more students may live at the same address Class / Tutor / Room? No - each class has many students

Continued Because all of these fields might contain the same data for more than one record, we can't use them to identify each record. So... we have given each student an ID number. We can guarantee that this number will be unique for every student. The ID number is the ideal field to use to uniquely identify each individual record. We call this field the Key Field, or Primary Key.

Example

Uses of database They promote data consistency. When data is updated on a database it is up to date for any application uses the database. Data duplication is reduces to a minimum since only one copy of each data item needs to be kept. It is relatively easy to expand the database if some new application is being considered. Security of data to monitor and maintain. Data access can be controlled by database front ends, the actual database will be ‘invisible’ to all users except the database administrator.

Types of database flat-file database Relational database

Flat-file database A 'flat-file' database is one that only contains a single table of data.  All of the data in the database is stored in this one place. The student database example that we looked at in the previous section was a flat-file database...

Example

Relational Databases A 'relational' database is one that contains two or more tables of data, connected by links called relationships.

Validation When data is input to a computer, it is a good idea for the computer to check that the data is sensible (no dates of birth in the future, etc.) Checks like this are called validation checks (is the data valid?) Different validation checks can be used on different fields, depending on the type of data being entered...

Types of validation Presence Check Range Check Length Check Type Check / character check Format Check / picture check Limit check

Is data actually present in a field, or has it been missed out? Presence Check Is data actually present in a field, or has it been missed out?

Example In an electronic form, a person’s telephone number may be a required field and if no data is present this should give rise to an error message.

Range Check Is the data value within a set range?  (E.g. an exam mark should be between 0% and 100%, a month should be between 1 and 12)

A person’s age should be in the range >0 but <150. Example A person’s age should be in the range >0 but <150.

Is an item of text too short or too long? Length Check Is an item of text too short or too long?

Example If a field needs six digits then inputting a five or seven digit number, for example, should cause an error message.

Character check / Type Check Is the data the correct type? (E.g. the letter ‘A’ should not be allowed in a numeric field)

Example A person’s name should not contain any numbers but a person’s height should only contain digits.

Format Check / picture check Is the data in the correct format? (E.g. a date of birth should be entered as dd/mm/yyyy)

Date should be in the form dd/mm/yyyy. Example Date should be in the form dd/mm/yyyy.

Limit check Similar to range check except that only one of the limits(boundaries) is checked

Example Input data must be > 10

Verification Data validation only checks whether the data entered is sensible - it does not mean that the data is the right data. For example, if you are entering a date of birth and you mis-type it… Correct date of birth: 12/11/1982 Date of birth entered: 12/11/1928 . . . you would not see an error, since 12/11/1928 is a valid date of birth. To check that data is the correct value, we use a system called data verification.

Continued There are two methods of data verification... Proof Reading/ visual entry Double-Entry

Proof Reading / visual entry After the data has been entered a person compares the original data with the data in the computer (either on the screen or using a print-out).  If mistakes are spotted they can be corrected by the person. Proof-reading is quick and simple, but doesn’t catch every mistake.

Double-Entry The data is entered into the computer twice(preferably by two different people).  The computer compares the two sets of data to see if they match. If not it generates an error and a person will need to correct the mistake. Double-entry takes more time and effort, but it catches almost every mistake.