levo

Normalisation and Structured Query Language

Un-normalised data and repeating groups

  • 3 things to know
  • A2 Unit 1

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.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

See a huge jump in your memorisation

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 consolidates the facts

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 trains answer structure

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