levo

Normalisation and Structured Query Language

Un-normalised data and repeating groups

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

Overview

Un-normalised form and repeating group.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What is wrong with allowing a fixed number of repeats as separate columns?

Key term

How do you choose the key for un-normalised data?

Key term

What does un-normalised form mean?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What does un-normalised form mean?

    Model answer

    Un-normalised form is data as it appears on the source document, held in a single structure that contains repeating groups, so one record holds several values of the same attribute.

  2. 2

    What is a repeating group?

    Model answer

    A repeating group is a set of attributes that occurs more than once within a single record, such as the several product code, description and quantity triples that appear on one order.

  3. 3

    How is un-normalised data written down?

    Model answer

    The attributes are listed with a chosen key underlined, and the repeating group is shown enclosed in braces or indented beneath the rest, so it is clear which attributes repeat and which occur once per record.

  4. 4

    Write in un-normalised form an order document holding an order number, date, customer number, customer name, and up to five lines each with a product code, description, unit price and quantity.

    Model answer

    UNF: OrderNo, OrderDate, CustomerNo, CustomerName, and the repeating group {ProductCode, Description, UnitPrice, Quantity}.

  5. 5

    Why can a repeating group not be stored in a relational table?

    Model answer

    A relational table holds one value at each intersection of a row and a column, so a column cannot hold five product codes. Widening the table to five sets of columns fixes an arbitrary maximum and wastes space on every shorter order.

  6. 6

    What is wrong with allowing a fixed number of repeats as separate columns?

    Model answer

    A fixed number caps what the system can record, so an order of six lines cannot be entered, and every shorter order leaves empty columns. Searching is also awkward, because a product may appear in any of the five sets of columns.

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 Normalisation and Structured Query Language, 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.