Data Types
	Data is processed by computers, the resulting information can then be used to make decisions. MANOJ KUMAR CVSLONAVALA2
Data	Data is words, numbers, dates, images, sounds etc without context i.e. Data consists of raw facts and figures.	This is a list of data items:42
rabbits
16:00
76
apples
09743245530
$40
Seaside	Data items need to be part of a structure, such as a sentence, in order to give them meaning.MANOJ KUMAR CVSLONAVALA3
Information	Information is a collection of words, numbers, dates, images, sounds etc put into context, ie to give them meaning.	For example, take these data items from the previous page:42
rabbits
16:00
76
apples
09743245530
£40
seasideWhen used to form part of a sentence they gain meaning:There are 42 apples in that box and each one of them has been nibbled by rabbits.The fare to the seaside is £40 and the journey takes 76 minutes by rail.My telephone number is 09743245530. Call me at 16:00.This is information - data put into context.	Information can then be used to produce knowledge, by applying rules to it.MANOJ KUMAR CVSLONAVALA4
Data TypesData can be stored in many formats called ‘data types’. When setting up a database or spreadsheet, it is important that the correct data type is selected for each field. This is because the data type will determine what can be done with the data held in that field e.g. sorting, searching, calculations etc. Data can be of different types –Text (alphanumeric)- A text data type can hold any letter, number, symbol or punctuation mark. It is sometimes referred to as 'alphanumeric' or 'string'. The data can be pure text or a combination of text, numbers and symbols. Decimal (real numbers)- Your numerical data might need to be formatted with decimal places. This means it cannot be stored as an integer number. Instead it is known as a 'real' number. You can specify the number of decimal places that you need. Integers- An integer stores whole numbers, either positive or negative. Integers however cannot store numbers with decimal places. Currency- When you choose to format numerical data as currency then it will automatically be given two decimal places. The currency data type also allows you to display the correct currency symbol such as £ or $.Dates 12/03/02 Calculated an average of exam marks. PicturesSounds Boo! Moving graphics / Video ClipsMANOJ KUMAR CVSLONAVALA5
File structure	A database consists of a number of related files (sometimes called tables). 	A file consists of a number of related records.	A record consists of a number of related fields.	A field is a single data item consisting of a number of characters.MANOJ KUMAR CVSLONAVALA6CharacterFieldRecordFileDatabase
DatabaseA database is a collection of data that you want to manage, rearrange, and add to later. It is a good program to use to manage lists that are not entirely numbers, such as addresses and phone numbers, inventories, and membership rosters. With a database you could sort the data by name or city or postal code or by any individual item of information recorded. You can create forms to enter or update or just display the data. You can create reports that show just the data you are interested in, like members who owe dues.	Both spreadsheets and databases can be used to handle much the same information, but each is optimized to handle a different type most efficiently. The larger the number of records, the more important the differences are.	Examples of databases: MS Access, dBase, FoxPro, Paradox, Approach, Oracle, Open Office Base.	Purpose: Managing  data  	Major Advantages:Can change way data is sorted and displayedMANOJ KUMAR CVSLONAVALA7
	Features/Terms:A flat database contains files which contain records which contain fields.MANOJ KUMAR CVSLONAVALA8
A relational database contains tables which are linked together. Each table contains records which contain fields.A query can filter your records to show just the ones that meet certain criteria or to arrange them in a particular order.MANOJ KUMAR CVSLONAVALA9
Types of databases	Flat database:	The earliest and simplest databases are flat databases.  A flat database may still be all you need for your purpose. Advantages:Easy to set upEasy to understandDisadvantages:    May require entering the same information in many records.A text database is hard to read.A single record in a spreadsheet database may not fit across the screen. 	A text database is a plain text file where the fields are separated by a particular character like a vertical bar | or a comma , or a semi-colon ; . The example below puts a vertical bar between each field. The first record shows the names of the fields.	A text database is hard to read in this raw form. A database program can show each record separately in a more readable display. It is hard to create a report that contains just the parts you want to see.	A spreadsheet can work as a flat database. Each field is in a separate column and each row is a single record.  You cannot use two rows for one record.MANOJ KUMAR CVSLONAVALAA '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.
Types of databases	Relational database:	Microsoft Access and Oracle and other relational databases are more advanced and more efficient. This kind of database uses a set of tables which are linked together. Using a well-designed relational database can greatly reduce the amount of data you must enter each time you add a record. For large numbers of records, a relational database can search through the records faster. A 'relational' database is one that contains two or more tables of data, connected by links called relationships. 	Advantages:Reduces the duplication in data entry.Faster searches.Can create forms and reports that display only the data you want to see.Can create queries to answer questions that are hard or impossible to answer in flat databases.	Disadvantages:Can be complex to set up, using many tables.It is harder to understand how all the parts relate to each other.MANOJ KUMAR CVSLONAVALA11
Below is an illustration of the tables in a small database that records information about insurance agents and policy holders. This particular insurance office works with several different insurance companies. There are 7 tables in the database. The lines show which fields in each table are the same. These link the tables together.MANOJ KUMAR CVSLONAVALA12
	Each agent can be licensed with several different companies and in several different states. In a flat database you would have to have a record for each agent for every company and state he is licensed with, repeating the agent info for each record. If the agent moved to a new house, you would have many records to update with his new address.  Argh! Too much typing!! With a relational database, there will be only one place to update. 	You can design a form so that you can do this all in one spot! This is much easier than repeating so much information for each record as you would do in a flat database. MANOJ KUMAR CVSLONAVALA13
Analogue Signals and Digital DataAn analogue signal is one which has a value that varies smoothly. It is easiest to understand this by looking at an example:The sound waves that your mouth produces when you speak are analogue - the waves vary in a smooth way. These waves can be converted into an electrical signal by a microphone. This electrical signal is also analogue:MANOJ KUMAR CVSLONAVALA14All numbers stored inside a computer are stored using a system called binary. Binary only uses 0s and 1s for all numbers.
Analogue Signals and Digital DataComputers (and most other modern electronic devices such as cameras, mobile phones, etc.) are ‘digital’ devices because they process data in the form of numbers (digits).Computer software is a collection of numeric codes which tell the computer what to doText that you type into a computer is stored as numeric codesImages inside a computer are stored as numeric values (different values for different coloured pixels)MANOJ KUMAR CVSLONAVALA15Everything stored and processed inside a computer is a number (digital).Computers are unable to process analogues signals because they are digital devices. For digital devices such as computers, to work with analogue devices, conversion is required...
Analogue Signals and Digital DataAnalogue to Digital Convertor (ADC)	If you want to attach an analogue input device to a digital device such as a computer, you will need an analogue to digital convertor (ADC). A good example of a computer peripheral that requires an ADC is a microphone. When you plug a microphone into a computer, you are actually plugging it into an ADC which converts the analogue signals from the microphone into digital data that the computer can then process. MANOJ KUMAR CVSLONAVALA16
Analogue Signals and Digital DataDigital to Analogue Convetor	If you want to attach an analogue output device to a digital device such as a computer, you will need a digital to analogue convertor (DAC).A good example of a computer peripheral that requires a DAC is a loudspeaker or headphones. When you plug a loudspeaker into a computer, you are actually plugging it into a DAC, which takes digital data from the computer and converts it into analogue signals which the loudspeaker then converts into sound.	Another device that contains a DAC is an MP3 player. The music data stored in the player is all digital, but the player produces analogue signals which the headphones convert into sound.MANOJ KUMAR CVSLONAVALA17
Question-1A hospital uses computers to monitor the health of patients.	Explain why analogue to digital conversion is needed when computers are used in monitoring and measuring. Sensors (read analogue data) are used to generate data. Data are then sent to computer. Computers work with digital data only. Data needs to be converted so computers can process/understand data MANOJ KUMAR CVSLONAVALA18

Data Types Unit-5 IGCSE ICT

  • 1.
  • 2.
    Data is processedby computers, the resulting information can then be used to make decisions. MANOJ KUMAR CVSLONAVALA2
  • 3.
    Data Data is words,numbers, dates, images, sounds etc without context i.e. Data consists of raw facts and figures. This is a list of data items:42
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
    Seaside Data items needto be part of a structure, such as a sentence, in order to give them meaning.MANOJ KUMAR CVSLONAVALA3
  • 11.
    Information Information is acollection of words, numbers, dates, images, sounds etc put into context, ie to give them meaning. For example, take these data items from the previous page:42
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
    seasideWhen used toform part of a sentence they gain meaning:There are 42 apples in that box and each one of them has been nibbled by rabbits.The fare to the seaside is £40 and the journey takes 76 minutes by rail.My telephone number is 09743245530. Call me at 16:00.This is information - data put into context. Information can then be used to produce knowledge, by applying rules to it.MANOJ KUMAR CVSLONAVALA4
  • 19.
    Data TypesData canbe stored in many formats called ‘data types’. When setting up a database or spreadsheet, it is important that the correct data type is selected for each field. This is because the data type will determine what can be done with the data held in that field e.g. sorting, searching, calculations etc. Data can be of different types –Text (alphanumeric)- A text data type can hold any letter, number, symbol or punctuation mark. It is sometimes referred to as 'alphanumeric' or 'string'. The data can be pure text or a combination of text, numbers and symbols. Decimal (real numbers)- Your numerical data might need to be formatted with decimal places. This means it cannot be stored as an integer number. Instead it is known as a 'real' number. You can specify the number of decimal places that you need. Integers- An integer stores whole numbers, either positive or negative. Integers however cannot store numbers with decimal places. Currency- When you choose to format numerical data as currency then it will automatically be given two decimal places. The currency data type also allows you to display the correct currency symbol such as £ or $.Dates 12/03/02 Calculated an average of exam marks. PicturesSounds Boo! Moving graphics / Video ClipsMANOJ KUMAR CVSLONAVALA5
  • 20.
    File structure A databaseconsists of a number of related files (sometimes called tables). A file consists of a number of related records. A record consists of a number of related fields. A field is a single data item consisting of a number of characters.MANOJ KUMAR CVSLONAVALA6CharacterFieldRecordFileDatabase
  • 21.
    DatabaseA database isa collection of data that you want to manage, rearrange, and add to later. It is a good program to use to manage lists that are not entirely numbers, such as addresses and phone numbers, inventories, and membership rosters. With a database you could sort the data by name or city or postal code or by any individual item of information recorded. You can create forms to enter or update or just display the data. You can create reports that show just the data you are interested in, like members who owe dues. Both spreadsheets and databases can be used to handle much the same information, but each is optimized to handle a different type most efficiently. The larger the number of records, the more important the differences are. Examples of databases: MS Access, dBase, FoxPro, Paradox, Approach, Oracle, Open Office Base. Purpose: Managing data  Major Advantages:Can change way data is sorted and displayedMANOJ KUMAR CVSLONAVALA7
  • 22.
    Features/Terms:A flat databasecontains files which contain records which contain fields.MANOJ KUMAR CVSLONAVALA8
  • 23.
    A relational databasecontains tables which are linked together. Each table contains records which contain fields.A query can filter your records to show just the ones that meet certain criteria or to arrange them in a particular order.MANOJ KUMAR CVSLONAVALA9
  • 24.
    Types of databases Flatdatabase: The earliest and simplest databases are flat databases.  A flat database may still be all you need for your purpose. Advantages:Easy to set upEasy to understandDisadvantages:    May require entering the same information in many records.A text database is hard to read.A single record in a spreadsheet database may not fit across the screen. A text database is a plain text file where the fields are separated by a particular character like a vertical bar | or a comma , or a semi-colon ; . The example below puts a vertical bar between each field. The first record shows the names of the fields. A text database is hard to read in this raw form. A database program can show each record separately in a more readable display. It is hard to create a report that contains just the parts you want to see. A spreadsheet can work as a flat database. Each field is in a separate column and each row is a single record.  You cannot use two rows for one record.MANOJ KUMAR CVSLONAVALAA '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.
  • 25.
    Types of databases Relationaldatabase: Microsoft Access and Oracle and other relational databases are more advanced and more efficient. This kind of database uses a set of tables which are linked together. Using a well-designed relational database can greatly reduce the amount of data you must enter each time you add a record. For large numbers of records, a relational database can search through the records faster. A 'relational' database is one that contains two or more tables of data, connected by links called relationships. Advantages:Reduces the duplication in data entry.Faster searches.Can create forms and reports that display only the data you want to see.Can create queries to answer questions that are hard or impossible to answer in flat databases. Disadvantages:Can be complex to set up, using many tables.It is harder to understand how all the parts relate to each other.MANOJ KUMAR CVSLONAVALA11
  • 26.
    Below is anillustration of the tables in a small database that records information about insurance agents and policy holders. This particular insurance office works with several different insurance companies. There are 7 tables in the database. The lines show which fields in each table are the same. These link the tables together.MANOJ KUMAR CVSLONAVALA12
  • 27.
    Each agent canbe licensed with several different companies and in several different states. In a flat database you would have to have a record for each agent for every company and state he is licensed with, repeating the agent info for each record. If the agent moved to a new house, you would have many records to update with his new address.  Argh! Too much typing!! With a relational database, there will be only one place to update. You can design a form so that you can do this all in one spot! This is much easier than repeating so much information for each record as you would do in a flat database. MANOJ KUMAR CVSLONAVALA13
  • 28.
    Analogue Signals andDigital DataAn analogue signal is one which has a value that varies smoothly. It is easiest to understand this by looking at an example:The sound waves that your mouth produces when you speak are analogue - the waves vary in a smooth way. These waves can be converted into an electrical signal by a microphone. This electrical signal is also analogue:MANOJ KUMAR CVSLONAVALA14All numbers stored inside a computer are stored using a system called binary. Binary only uses 0s and 1s for all numbers.
  • 29.
    Analogue Signals andDigital DataComputers (and most other modern electronic devices such as cameras, mobile phones, etc.) are ‘digital’ devices because they process data in the form of numbers (digits).Computer software is a collection of numeric codes which tell the computer what to doText that you type into a computer is stored as numeric codesImages inside a computer are stored as numeric values (different values for different coloured pixels)MANOJ KUMAR CVSLONAVALA15Everything stored and processed inside a computer is a number (digital).Computers are unable to process analogues signals because they are digital devices. For digital devices such as computers, to work with analogue devices, conversion is required...
  • 30.
    Analogue Signals andDigital DataAnalogue to Digital Convertor (ADC) If you want to attach an analogue input device to a digital device such as a computer, you will need an analogue to digital convertor (ADC). A good example of a computer peripheral that requires an ADC is a microphone. When you plug a microphone into a computer, you are actually plugging it into an ADC which converts the analogue signals from the microphone into digital data that the computer can then process. MANOJ KUMAR CVSLONAVALA16
  • 31.
    Analogue Signals andDigital DataDigital to Analogue Convetor If you want to attach an analogue output device to a digital device such as a computer, you will need a digital to analogue convertor (DAC).A good example of a computer peripheral that requires a DAC is a loudspeaker or headphones. When you plug a loudspeaker into a computer, you are actually plugging it into a DAC, which takes digital data from the computer and converts it into analogue signals which the loudspeaker then converts into sound. Another device that contains a DAC is an MP3 player. The music data stored in the player is all digital, but the player produces analogue signals which the headphones convert into sound.MANOJ KUMAR CVSLONAVALA17
  • 32.
    Question-1A hospital usescomputers to monitor the health of patients. Explain why analogue to digital conversion is needed when computers are used in monitoring and measuring. Sensors (read analogue data) are used to generate data. Data are then sent to computer. Computers work with digital data only. Data needs to be converted so computers can process/understand data MANOJ KUMAR CVSLONAVALA18