chapter 2.7. candidates should have an understanding of how organizations use ict, including ...

40
Chapter 2.7

Upload: melvin-coyne

Post on 11-Dec-2015

221 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Chapter 2.7

Page 2: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Candidates should have an understanding of how organizations use ICT, including sequential file systems (batch processing e.g.

payroll); Indexed sequential & random access files (e.g. .

payroll and personnel records. Relational database systems (e.g. customer

database linked to sales records)You should be able to describe these

systems, giving the hardware and software requirements and examples of where they are used.

Page 3: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Data is the lifeblood of most businesses and organizations. Why do they collect and store data? Because data is processed (sorted,

filtered, searched) to give us

Page 4: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

A database is a collection of data that is stored in an organized or logical manner so that data can be processed effectively or retrieved quickly and efficiently.

You should recall the following from GCSE: Tables Fields Records

Page 5: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Some databases exist solely to process data automatically – for example databases held by utility companies

Some databases exist to give us information when we need it: for example, the school database.

The purpose of the database obviously affects the way that data is stored, organized and retrieved.

Page 6: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

There are four types of file organization that you need to know about:SerialSequentialIndexed SequentialDirect /Random Access

Page 7: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

A serial file is one in which the records have been stored in the order in which they have arisen. They have not been sorted into any particular order.

A shopping list is an example of a non-computerised serial file.

▪ A collection of records▪ No particular sequence

Page 8: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

An example of a serial file is an unsorted transaction file (more on this in a minute ).

Cannot be used as master Used as temporary transaction fileRecords stored in the order received

Page 9: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

A sequential file is one in which the records are stored in sorted order of one or more key fields.

Page 10: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Sequential access means that data is accessed in a predetermined, ordered sequence.

Sequential access is sometimes the only way of accessing the data, for example if it is on a tape.

Page 11: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

It may also be the access method we need to use if the application requires processing a sequence of data elements in order.

Records are usually stored on tape and processed one after the other – for example when utility companies issue bills, or when businesses produce pay slips for their workers at the end of each month.

Page 12: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);
Page 13: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

A collection of recordsStored in key sequenceAdding/deleting record requires

making new file (so that the sequence is maintained)

Used as master files

Page 14: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Serial files are often used as transaction files.

Sequential files are used as master files. A company’s master file might hold all

the data about every employee

Page 15: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

A transaction file might hold a list of all the employees who have gotten married this month and changed their names.

Page 16: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

The master file would be read one record at a time

The transaction file would be used to update the master file

Her

mio

ne G

rang

er

Che

ryl T

wee

dy

Brit

ney

Spe

ars

Kat

e M

iddl

eton

Potter

Cole

Federer

Windsor

Page 17: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Simple file designVery efficient when most of the

records must be processed e.g. PayrollVery efficient if the data has a natural

orderCan be stored on inexpensive devices

like magnetic tape.

Page 18: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Entire file must be processed even if a single record is to be searched.

Transactions have to be sorted before processing

Overall processing is slow, because you have to go through each record until you get to the one you want!

Page 19: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Each record of a file has a key field which uniquely identifies that record.

An index consists of keys and addresses, just like an index in a book: The pages in a book are stored

sequentially, so you can read through it page by page

OR You can look up the page you want in the index and flick straight to it

Page 20: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

An indexed sequential file is a sequential file (i.e. sorted into order of a key field) which has an index.

A full index to a file is one in which there is an entry for every record.

Because each record has an index, we can access individual records directly, without having to scroll through all the other records first.

Page 21: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);
Page 22: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Indexed sequential files are important for applications where data needs to be accessed..... sequentially , one record after another

OR randomly using the index.

Page 23: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

A company may store details about its employees as an indexed sequential file. Sometimes the file is accessed....sequentially. For example when the whole of the file is processed to produce pay slips at the end of the month.

Page 24: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Sometimes the file is accessed....randomly. Maybe an employee changes address, or a female employee gets married and changes her surname.

Page 25: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

An indexed sequential file can only be stored on a random access device e.g. magnetic disc or CD.

This is because we need a device that will allow us direct access to random files, rather than the sequential access that magnetic tape allows.

Page 26: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Provides flexibility for users who need both type of access with the same file

Faster than sequential

Page 27: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Extra storage space for the index is required, just like in a book: your text book would be 372 pages without the index (go on, check!) but is 380 pages with the index.

Page 28: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Records are read directly from or written on to the file.

The records are stored at known address.

The address is calculated by applying a mathematical function to the key field.

Page 29: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

A random file would have to be stored on a direct access backing storage medium e.g. magnetic disc, CD, DVD

Example : Any information retrieval system. Eg Train timetable system.

Page 30: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Any record can be directly accessed.Speed of record processing is very

fast.Up-to-date file because of online

updating.Concurrent processing is possible.

Page 31: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

More complex than sequentialDoes not fully use memory

locationsMore security and backup problems

Page 32: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Alexandria Regional Bank is a small bank with three branches. At the moment, all paying in slips and cheques are gathered together in the course of the day and are then batch processed overnight.

Describe how data would be stored in the current system of batch processing. [2 marks]

Page 33: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Two from: File will be held in a sequential manner To allow for serial access Code allocated for credit (paying in slip) Or debit (cheque) Used to process all records one after the

other When updating customer accounts

Page 34: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Rajvinder Uppal is the manager of a book publishing company. The company uses an outdated record keeping system for storing details of the books they publish. Rajvinder wants to introduce a more modern system.

Describe how the data will be organised on the database to allow Rajvinder to access a book record quickly. [4 marks]

Page 35: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Four from: Indexed sequential method Each record will have an index Index will relate to letter of the

alphabet Letter is found Further index will relate to rough

position of record Records are searched sequentially from

that point

Page 36: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

The new hospital in Cairo is improving its existing computer system to make it moreefficient. They currently have separate systems for storing staff records and payroll records.

One single database is required which will store all this data. The systems analyst has decided that the staff records and the payroll records should be combined into a relational database. Describe what a relational database is. [5]

Explain why the systems analyst has decided that a relational database would be

preferred to two separate files?[3]

Page 37: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Five from: A relational database consists of a number of

separate tables For example a payroll table and a staff table Tables are linked to each other… … using a key field For example the employee ID This field is part of other table(s) Data from one table combined with data from other

table(s) when producing reports. Can select different fields from each table for output SQL is used for queries and producing reports

Page 38: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Three from: Data is not repeated so less storage

capacity needed Data retrieval is quicker/easier to search for

information If data was duplicated hackers would have

easier access to data Easier to expand Data only needs to be amended once Easier to produce reports with cross-tabular

data rather than separate files

Page 39: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Mr Mustapha is the head teacher of a large school. The school currently has a computer network but he wants to have a new system which will allow the school to keep student personal records and test marks. He also wants to have a system which will let the students have the opportunity to use computers to improve their learning. He has invited Joanne Reeves, a systems analyst, to design and create the new system.

Name the medium which would be most appropriate to store the students’ personal records and test marks and explain how the data would be stored. [5]

Page 40: Chapter 2.7.  Candidates should have an understanding of how organizations use ICT, including  sequential file systems (batch processing e.g. payroll);

Magnetic disc – one markFour from: Files will be held in an indexed sequential manner The index will allow for direct access Needed when accessing individual student

records quickly When a student’s details are required by a

teacher The records will be held sequentially to allow for

serial access Used to process all records one after the other

when producing class lists