levo

Database Systems

Indexes and links between tables

  • 3 things to know
  • AS Unit 1

Overview

Index in a database, how an index speeds up a search and how a one-to-many relationship is implemented in a relational database.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What is an index in a database?

Key term

Give one drawback of adding an index to a field.

Key term

Which fields are worth indexing?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is an index in a database?

    Model answer

    An index is a separate structure holding the values of one field in sorted order, each paired with the position of the record it came from.

  2. 2

    Explain how an index speeds up a search.

    Model answer

    The database searches the small sorted index rather than reading every record, then jumps straight to the stored position of the matching rows.

  3. 3

    Give one drawback of adding an index to a field.

    Model answer

    The index takes extra storage and must itself be updated on every insertion, deletion and change, which slows those operations down.

  4. 4

    Which fields are worth indexing?

    Model answer

    Fields that are searched or sorted on frequently are worth indexing, particularly those used in a query condition or to join tables.

  5. 5

    Is the primary key of a table indexed?

    Model answer

    Yes, a database indexes the primary key automatically, because it must check uniqueness on every insertion and look records up by it constantly.

  6. 6

    What must happen to an index when a new record is inserted?

    Model answer

    The new field value has to be placed in its correct sorted position in the index along with the record's location, before the insertion is complete.

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.

Hardware: Architecture, Memory and Storage
Networks and Data Transmission
Logic Gates and Boolean Algebra
Data Representation and Data Types

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.

Fetch, , execute.
decodecompilestore

Blank Blitz makes facts automatic

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

AEncryption is reversible.
BThe stored form could be decrypted.
CA hash cannot be reversed.

Build It gets the exam shape right

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

A bit is a single binary digit.
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 Database Systems, 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.