levo

Databases

Entities, attributes and keys

  • 3 things to know
  • A2 Unit 1

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.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

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

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

A check requires a value.
presencerangeformat

Blank Blitz makes facts automatic

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

ANormal data is 12, which should be accepted.
BBoundary data is 1 and 50, which should be accepted.
C0 and 51, just outside the limits, should be rejected.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

One byte is made up of 8 bits.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

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.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

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