GCSE · Computer Science · AQA · Spec 8525
Records (database)
Every time a game remembers your top score, it keeps a record. So why are 'top score' and 1450 not the same kind of thing?
Sort it before you're told
Entity, attribute or data value?
A game keeps data about its players. Pick an item, then pick the job you think it does. You'll see why straight away, so have a go even if you're not sure.
Still to sort
Entity (0)
The single thing the data is about
Where the line is: Entity or attribute? The entity is the thing itself. An attribute is something we store about that thing.
Attribute (0)
A property or characteristic of the entity (sometimes called a field)
Where the line is: Attribute or data value? The attribute names what we store. The data value is what is actually stored in it.
Data value (0)
What is actually stored in an attribute for one entity
Where the line is: Data value or attribute? A data value is a real piece of data, like an actual score. It is not the heading for that kind of data.
Six items from a game's player data. Each one has exactly one job.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Entities, attributes and data values: three words, three different jobs. Get them straight and records make sense.
What you need to know
- An entity is a single object, place, person or thing that you store data about, such as one player in a game.
- Its attributes are its properties or characteristics, like a player's username, password and top score. Attributes are sometimes called fields.
- Data values are what is actually stored in those attributes: the real username, the real password, the real score.
Have a goSam says, with total confidence: 'This film is called Zoo Quest, so Zoo Quest is one of its attributes.' Is Sam right? What is Zoo Quest?
No. Zoo Quest is a data value, stored in the film's title attribute.
An attribute is the property we store (here, the title). A data value is what has actually been stored in it. Sam has mistaken the stored thing for the heading.
- A record is a collection of attributes for a single entity. It holds the data about one item.
- Many records for one entity live in one database: one record for each player.
- Attributes and their data types are decided when the record structure is set up, then fixed for every record.
Have a goA new player joins the game. The database already has records with the attributes username, password and top score. What does it gain: a new record, a new attribute, or both?
A new record, with that player's own values in the same attributes.
There is one record for each player, and the attributes were fixed when the structure was set up. A new player brings new values, not new attributes.
- So every record follows the same structure. Each record holds its own values in those attributes.
- In a database table, each record is one row and each field (attribute) is one column.
Have a goA table holds 5 records, and each record has 4 attributes. How many rows and how many columns do those records fill?
5 rows and 4 columns.
Each record is one row and each field is one column, so 5 records fill 5 rows and 4 attributes fill 4 columns.
- Whatever value sits in a record's primary key field uniquely identifies that record.
The big picture
A record is the collection of attributes for a single entity, filled with that entity's own data values. A database holds many records for one entity, and every record follows the same structure. In a table, each record is one row, each field is one column, and the value in the primary key field uniquely identifies the record.
Key points
Worked example
Problem
Practice question: A pet shop stores its animals in a database table with the fields PetID, Name, Species and Age. PetID is the primary key field. One row of the table reads: P017, Biscuit, rabbit, 4. For that record, say what the entity is, name the attributes, give the data values, and say which value identifies the record.
⚠ Watch out
Calling a data value an attribute. If colour is stored as blue, then colour is the attribute and blue is the data value. The attribute is the heading and the data value is what has been stored in it.
Memory hook
Picture a paper form. The box headings are the attributes, and they are the same on every form. What each person writes in the boxes are the data values. One filled-in form is one record. (It's only an analogy, but the pattern is the same.)
Check yourself
Cover the screen and explain out loud why 'top score' and 1450 are different kinds of thing. Then say what a primary key value tells you about a record.
Flashcards
(9)What is an entity?
What is an attribute? What else is it sometimes called?
What is a data value?
What is a record?
A book's record holds the text 'Moon Base' in its Title field. Which is the data value, and which is the attribute?
How many records does a database hold for one entity, such as players?
When are a record's attributes and data types decided, and what happens to them after that?
In a database table, what is a record and what is a field?
What does the value in a record's primary key field do?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore AQA GCSE Computer Science topics
How this lesson was checked. This AQA GCSE Computer Science (specification 8525)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 4 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.