levo

Database Concepts and Entity Relationship Modelling

The hierarchical model

  • 3 things to know
  • A2 Unit 1

Overview

Hierarchical database model, relationship does the hierarchical model represent naturally and data that suits a hierarchical structure.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What is the hierarchical database model?

Evaluation

State two advantages of the hierarchical model.

Evaluation

State three disadvantages of the hierarchical model.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is the hierarchical database model?

    Model answer

    The hierarchical model organises records into a tree. Each record has exactly one parent, apart from a single root, and may have many children, and the links between them are stored physically as pointers.

  2. 2

    What kind of relationship does the hierarchical model represent naturally?

    Model answer

    The hierarchical model represents a one-to-many relationship naturally, because a parent record may own many child records and each child belongs to exactly one parent.

  3. 3

    Give an example of data that suits a hierarchical structure.

    Model answer

    A company's departments each containing many employees suits a hierarchy, as does a file system of folders within folders, or an XML document in which every element sits inside exactly one parent element.

  4. 4

    How is data retrieved from a hierarchical database?

    Model answer

    Retrieval follows the stored pointers from the root downwards, so a program navigates the tree record by record. The path a program takes is written into the program itself.

  5. 5

    State two advantages of the hierarchical model.

    Model answer

    Following a stored pointer is very fast, so retrieval along the intended path is efficient, and the structure enforces the parent-child rule automatically, which guarantees that no child exists without its parent.

  6. 6

    State three disadvantages of the hierarchical model.

    Model answer

    A record cannot have two parents, so a many-to-many relationship cannot be represented without duplicating data; a query that does not follow the stored path is slow or impossible; and changing the structure means rewriting the programs that navigate it.

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.

Software and the Development Environment
Defining Data: Types, Variables and Classes
Program Control Structures
Objects, Classes and Data Structures

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 null is the of one.
absencepresencetype

Blank Blitz makes facts automatic

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

AA null means no value has been recorded.
BZero and an empty string are values.
CA null is the absence of a value.

Build It gets the exam shape right

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

An error is the mistake a person made.
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 Concepts and Entity Relationship Modelling, 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.