• Save
Data Types Unit-5 IGCSE ICT
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Data Types Unit-5 IGCSE ICT

on

  • 7,319 views

 

Statistics

Views

Total Views
7,319
Views on SlideShare
5,942
Embed Views
1,377

Actions

Likes
2
Downloads
0
Comments
2

1 Embed 1,377

http://robertopires.com 1377

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Data Types Unit-5 IGCSE ICT Presentation Transcript

  • 1. Data Types
  • 2. Data is processed by computers, the resulting information can then be used to make decisions.
    MANOJ KUMAR CVSLONAVALA
    2
  • 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. rabbits
    • 5. 16:00
    • 6. 76
    • 7. apples
    • 8. 09743245530
    • 9. $40
    • 10. Seaside
    Data items need to be part of a structure, such as a sentence, in order to give them meaning.
    MANOJ KUMAR CVSLONAVALA
    3
  • 11. 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
    • 12. rabbits
    • 13. 16:00
    • 14. 76
    • 15. apples
    • 16. 09743245530
    • 17. £40
    • 18. seaside
    When 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 CVSLONAVALA
    4
  • 19. Data Types
    Data 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.
    Pictures
    Sounds Boo!
    Moving graphics / Video Clips
    MANOJ KUMAR CVSLONAVALA
    5
  • 20. 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 CVSLONAVALA
    6
    Character
    Field
    Record
    File
    Database
  • 21. Database
    A 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 displayed
    MANOJ KUMAR CVSLONAVALA
    7
  • 22. Features/Terms:
    A flat database contains files which contain records which contain fields.
    MANOJ KUMAR CVSLONAVALA
    8
  • 23. 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 CVSLONAVALA
    9
  • 24. 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 up
    Easy to understand
    Disadvantages:   
    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 CVSLONAVALA
    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.
  • 25. 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 CVSLONAVALA
    11
  • 26. 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 CVSLONAVALA
    12
  • 27. 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 CVSLONAVALA
    13
  • 28. Analogue Signals and Digital Data
    An 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 CVSLONAVALA
    14
    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 and Digital Data
    Computers (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 do
    Text that you type into a computer is stored as numeric codes
    Images inside a computer are stored as numeric values (different values for different coloured pixels)
    MANOJ KUMAR CVSLONAVALA
    15
    Everything 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 and Digital Data
    Analogue 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 CVSLONAVALA
    16
  • 31. Analogue Signals and Digital Data
    Digital 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 CVSLONAVALA
    17
  • 32. Question-1
    A 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 CVSLONAVALA
    18
  • 33. Database Terminology
    What is a table?
    A single store of related information. A table consists of records, and each record is made up of a number of fields.
    What is a record?
    A table consists of records, and each record is made up of a number of fields. A record contains all the information about a single 'member' of a table. In a students table, each student's details (name, date of birth, contact details, and so on) will be contained in its own record.
    What is a field?
    Fields describe a single aspect of each member of a table. A student record, for instance, might contains a last name field, a first name field, a date of birth field and so on.
    MANOJ KUMAR CVSLONAVALA
    19
  • 34. Database Terminology
    What is a Key Field?
    Keys are crucial to a table structure for many reasons, some of which are identified below:
    They ensure that each record in a table is precisely identified.
    They help establish and enforce various types of integrity.
    They serve to establish table relationships.
    Primary key will uniquely identify each record. It may or may not provide information about the record it identifies. It must not be Null-able, that is if it exists in a record it cannot have the value Null. It must be unique. It cannot be changed.
    MANOJ KUMAR CVSLONAVALA
    20
  • 35. Question-2
    MANOJ KUMAR CVSLONAVALA
    21
    Answer:
    Numeric (Integer)
    Alphanumeric
    Boolean
    Date
  • 36. Question-3
    MANOJ KUMAR CVSLONAVALA
    22
  • 37. How many records are there in the book file?
    4
    How many fields are there in the borrower file?
    5
    What type of database do these two files form?
    Relational database
    Give reasons why this type of database system is used rather than having two flat files.
    Data does not have to be typed in twice [referential integrity].
    So Quicker to enter new data.
    So fewer errors are likely.
    So less memory/storage capacity is used.
    So it is easier to edit data.
    MANOJ KUMAR CVSLONAVALA
    23
    Referential integrity is a database concept that ensures that relationships between tables remain consistent. When one table has a foreign key to another table, the concept of referential integrity states that you may not add a record to the table that contains the foreign key unless there is a corresponding record in the linked table.
  • 38. Which field is the primary key in the Book file?
    Code
    Which field is the foreign key?
    Book Borrowed
    Which field has the data type currency?
    Cost
    What data type would be most appropriate for the Due Back field?
    Date
    Name the most appropriate validation check for the Number in stock field.
    Range check
    Name the most appropriate validation check for the Form field.
    Format
    Picture
    Input mask
    MANOJ KUMAR CVSLONAVALA
    24
    Foreign keys are used to create relationships between tables. A foreign key is a field in a relational table that matches the primary key column of another table. The foreign key can be used to cross-reference tables.
  • 39. Data Processing
    The most common data processing activity is data maintenance.
    Data maintenance is the periodic processing of transactions to update stored data.
    Data Processing refers to a class of programs that organize and manipulate data, usually large amounts of numeric data.
    25
    MANOJ KUMAR CVSLONAVALA
  • 40. Data Processing
    Additions insert new records into a master file.
    Deletions remove records from a master file.
    Updates revise current balances in master files.
    Changes modify the data values of other fields in master files.
     Two basic types of files are used to store data.
    The master file, which is conceptually similar to a ledger in a manual system.
    The transaction file, which is conceptually similar to a journal in a manual system.
    26
    MANOJ KUMAR CVSLONAVALA
  • 41. Batch Processing
    Batch processing is updating master files periodically to reflect all transactions that occurred during a given time period.
    The master file is updated at set times or whenever a manageable number of transactions are gathered.
    Transaction data can either be entered as a batch or as each transaction occurs.
    Producing Monthly Payrolls, Producing Gas Bills, Producing utility bills, Inputting details of new stock into a library’s database, Reading data from bank cheques and Scanning OMR Sheets are the examples of Batch Processing.
    27
    MANOJ KUMAR CVSLONAVALA
  • 42. Group source documents into batches.
    Master
    file
    Batch Processing
    28
    MANOJ KUMAR CVSLONAVALA
  • 43. On-line Batch Processing
    Enter transactions into system as they occur.
    Master
    file
    29
    MANOJ KUMAR CVSLONAVALA
  • 44. On-line, Real-Time Processing
    In on-line, real-time processing, the computer captures data electronically,...
    edits it for accuracy and completeness, and...
    immediately processes it.
    The computer also processes information requests from users.
    30
    MANOJ KUMAR CVSLONAVALA
  • 45. On-line, Real-Time Processing
    Enter transactions into system as they occur.
    Master
    file
    31
    MANOJ KUMAR CVSLONAVALA
  • 46. Advantages of Each Method
    The main advantage of batch processing was efficiency in processing.
    On-line data entry is more accurate than periodic batch input because the system can refuse incomplete of erroneous entries.
    Real-time processing ensures that the information in master files is always current.
    32
    MANOJ KUMAR CVSLONAVALA