levo

Database Concepts and Entity Relationship Modelling

The hierarchical model

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

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.

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.

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

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

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.

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