2 – Data Types


🎯 Learning Objectives

Developing Data & Data Representation and Information Technology learning strands, specifically:

  • To see some examples of databases.
  • Understand that one of the advantages of a computer-based database is the ability to search for data quickly.
  • Know what data types are.
  • Be able to choose the correct data types for specific items of data.
💬 Key Vocabulary

  • Database
  • Table
  • Field
  • Date types: Text, Number, Date/Time, Currency, Boolean, Autonumber.
  • Record

📝 Starter Activity

  • Download the Starter Worksheet below and fill in the blanks using your knowledge from the previous lesson.

📝 Silver Badge – Searching a Simple Database

  • One of the advantages of a computer-based database is that they are very easy and quick to search.
  • Consider this scenario:
    • Professor Xavier (leader of the X-Men) is looking to recruit some new superheroes.
    • The Professor wants you to search for super heroes that have particular traits such as heights and hair colour.
    • You have been provided with a database of super heroes that may be suitable.
  • Your job is to search the database to come up with the name of the super hero that best matches desired traits.
  • Download the worksheet and the simple database below to find the superheroes.

📖 Data Types

There are many different kinds of data you might find in a database, some of them are similar to the data types you looked at in Python.

A database likes to store these different types of data in specific ways as this can speed up searching and make the size of the database as small and efficient as possible.

It is important that you can recognise the correct data type for each field.

Text

Number

Date/Time

Currency

Boolean

Autonumber

📝 Which data type?

Think about which data type would best suit the data below, click on them to find out which is correct.

9, South Road, Bourne

10th January 2022

£10.70

-3190

lion

324.654

$5.76

Enter/Exit

📖 Keywords – Definitions

Database – collection of data or information that has been stored in an organised way.

Field – one type or one piece of information.

Record – all the data about a person or an object.

Table – collection of the database’s fields and records.

💬 Summary

In this lesson, you…

  • Looked at some examples of databases.
  • Understood that one of the advantages of a computer-based database is the ability to search for data quickly.
  • Now know what data types are.
  • Are now able to choose the correct data types for specific items of data.
In the next lesson, you will…

  • Find out how to set up a database by using fields, data types and validation rules.
  • See how to import data into a database.
  • Be able to create a database from scratch by following a list of instructions.

🏅 Badge it

🥈 Silver Badge

  • Upload your completed Superhero Search worksheet to the Silver badge task on Bourne to Learn.
🥇 Gold Badge

  • Download the Data Types worksheet below, complete it and then upload to the Gold badge task on Bourne to Learn.
🥉 Platinum Badge

  • Download the Data Types Extra worksheet below, complete it and then upload to the Platinum badge task on Bourne to Learn.