That Blue Square Thing

Computer Science GCSE

Note: this page deals with the old Edexcel GCSE (grades A-G) which no longer exists. I'm keeping it as an archive and because a number of the resources will still apply to newer (grades 1-9) courses. The AQA GCSE CompSci pages deal with a current course.

A record, but not in a databaseDatabases & SQL

Databases are everywhere.

Websites, stores, businesses, schools - databases are one of the key applications in modern computing. You could argue that they form the absolute basis of much of what we consider as modern ICT.

Major online retailers, such as Amazon or eBay, organise their entire catalogues as databases. That's one reason why it's so easy to search and find products you're interested in. iTunes and Spotify organise music as databases so that they can be searched. On a different level, the databases of players in games such as Fifa or Football Manager are crucial to the success of the games.

And just imagine: how would your cell phone work without databases?

How databases work

A database is a structured collection of data. It is easiest to imagine them as being organised in tables. The rows and columns of the table provide the structure for the database and help keep the data organised effectively.

Here's a database of animals that we have in the Blue Square Zoo:

Name Species Age Gender Height (m)

Note: height refers to height or length, whichever is most appropriate

Each field needs to be a specified data type. So, the name of each of my animals is a string (i.e. characters of some kind), the age is an integer, the height a floating point number. The gender is stored as a single character - a string of fixed length (that we could easily validate).

Things to do with databases

Other than store data in an organised way, databases can be used to:

Searching is one of the most useful features of databases. I can search my database in all sorts of interesting ways...

The last search is super-powerful and a simple example of the sorts of things that databases can be really useful for - think about the searches you might do on the Fifa database to find left backs from Denmark aged under 21 who have good speed and can tackle well...

What's really hard to do in a database is to add a field - to add a specific piece of data to each record. In a large database this would require you to add data to every single record, which would be very time consuming. This is one reason why designing databases well is a really important job.

More Information

Mr DBMS explains the basics of databases in this YouTube videowiki link.

The BBC Bitesize website has a pretty good introduction to databaseswiki link on it. There's a quiz you can do as well, although not all of the content in it is stuff you necessarily need to know and some of it is covered on some of the other pages in this unit.