levo

Databases

Entities, attributes and keys

  • 3 things to know
  • A2 Unit 1
Start revising · £5/month

Overview

Term entity, term attribute and term primary key.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What is meant by an entity occurrence?

Key term

Define the term entity.

Key term

Define the term attribute.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    Define the term entity.

    Model answer

    An entity is a thing about which a system needs to hold data, such as a customer, an order or a product. Each entity becomes a table in the implemented database.

  2. 2

    Define the term attribute.

    Model answer

    An attribute is a single property of an entity, such as a customer's surname or an order's date. Each attribute becomes a column.

  3. 3

    Define the term primary key.

    Model answer

    A primary key is an attribute, or a combination of attributes, whose value uniquely identifies each record in a table. A primary key may never be duplicated and may never be left empty.

  4. 4

    Define the term composite key.

    Model answer

    A composite key is a primary key made up of two or more attributes together, used where no single attribute is unique. The combination of a student number and a course code identifies one enrolment.

  5. 5

    Define the term foreign key.

    Model answer

    A foreign key is an attribute in one table whose values are the primary key of another table. A foreign key is how a relational database records a relationship between two tables.

  6. 6

    Define the term relationship in a relational database.

    Model answer

    A relationship is an association between two entities that the system must record, such as a customer placing orders. A relationship is implemented by placing the primary key of one table into the other as a foreign key.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Systems Analysis and Development Approaches
Design, Development and Testing
Implementation and System Security
Programming

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

A check requires a value.
presencerangeformat

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

One byte is made up of 8 bits.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Databases, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.