Creating a Database Handling Data Designing Structure Capturing

Creating a Database Handling Data Designing Structure, Capturing and Presenting Data This icon indicates the slide contains activities created in Flash. These activities are not editable. For more detailed instructions, see the Getting Started presentation. 1 of 20 © Boardworks Ltd 2003

What is a database? Name: Mr James Brown Salary £ 30, 000 Telephone: 0170 88691 Marital status: single Gender: male Address: 6 High Street Blood type: A+ Data 2 of 20 © Boardworks Ltd 2003

Name: Mr James Brown Telephone: 0170 88691 Gender: male Address: 6 High Street Blood type: A+ Salary £ 30, 000 Marital status: single Base A database is a collection (base) of data that can be accessed as information. 3 of 20 © Boardworks Ltd 2003

Who uses databases? 4 of 20 © Boardworks Ltd 2003

Who uses databases? 5 of 20 © Boardworks Ltd 2003

For the record Before computers were around, organizations kept information on record cards in card boxes, or on sheets of paper in files and filing cabinets. These days, most databases are created and stored on a computer. 6 of 20 © Boardworks Ltd 2003

Then… Filing cabinet Files J. Vincent Record Address: 6 Broad Lane, Winsford Telephone: 0987 654675 Date of Birth: 02. 05. 1980 7 of 20 © Boardworks Ltd 2003

Now… Database Files Record 8 of 20 © Boardworks Ltd 2003

File Fields Records Each record is made up of fields – categories of information. The fields here are Name, Surname, Address, Telephone and Date of birth. 9 of 20 © Boardworks Ltd 2003

10 of 20 © Boardworks Ltd 2003

Let’s get it right? Fields are of a certain data type. For example, Name and Surname are text; Date of birth is not text but a date. text date Data Types Here are some more field names and data types: 11 of 20 © Boardworks Ltd 2003

12 of 20 © Boardworks Ltd 2003

Using data types ensures that the data in the record is valid. This means that if you try and type text in a date/time data type the program will not allow it. Mistakes are reduced by making sure the data is valid. However validation would not stop you typing in the wrong date! Most database programs allow the user to create validation checks, such as the following: character type (number or letter or both) length of field (how many characters) range (specify from and to, for example from 1 to 20). 13 of 20 © Boardworks Ltd 2003

Work it out Use the keyboard to try out the data. 14 of 20 © Boardworks Ltd 2003

In addition to validating information you must also verify the information. Not all data can be validated – for example, a spelling mistake or an incorrect amount entered may not be picked up by the validation process. This is where the data has to be verified. This is easily done by checking the data entered against the original document, or getting somebody else to ensure that the data being input is correct. 15 of 20 © Boardworks Ltd 2003

Searching and sorting A database program is extremely useful for searching the data stored. When you search, you may want to find a particular record: for example, search for the record for “J Vincent”. You can search for more than one record: for example, search for all the records where the field Surname equals (=) Vincent. For more detail, you can search for records with a combination of fields: for example, search for all the records where the field Surname = Vincent and the Date of birth = 02/02/1980. 16 of 20 © Boardworks Ltd 2003

17 of 20 © Boardworks Ltd 2003

Sorting is another useful feature of a database. When you sort you may want to sort by a particular field, for example, sort by “Name”. You can sort by more than one field, for example you can sort by field “Name” and field “Surname”. You can choose which order you would like the sort: ascending order – starting with the letter A or smallest number and going up or descending order – starting with the letter Z or largest number and going down. 18 of 20 © Boardworks Ltd 2003

19 of 20 © Boardworks Ltd 2003

Summary A database is a collection of information which is stored in a way that can easily be accessed and found. Databases are used by most organizations to store information. A database is made up of files. Each file is made up of records. Each record is made up of fields. Fields have a data type. Data must be validated and verified to avoid mistakes. A database can be used to search and sort data. What can I remember? 20 of 20 © Boardworks Ltd 2003
- Slides: 20