levo

Building a Desktop Solution with a Database

Applying relational techniques to a real solution

  • 3 things to know
  • A2 Unit 2

Overview

Deriving the structure from the client's data rather than from the screens, enforcing keys and integrity in the database itself, the order the parts are built in, and testing the structure before the interface is built on it.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Why should validation be enforced by the database and not only by the form?

Key term

What must be documented for each table in the built solution?

Key term

What integrity rule should be chosen for each relationship, and why is it a decision?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What does it mean to apply relational database techniques to a business problem?

    Model answer

    It means deriving the tables from the client's own data rather than from the screens, normalising them so each fact is held once, enforcing the keys and relationships in the database itself, and then building the application on that structure.

  2. 2

    Why is the database structure settled before any form is built?

    Model answer

    Forms and reports are bound to fields, so a change to the structure means rebuilding them. Settling the tables first means the interface is built once, and it stops the structure being shaped by whatever screens happened to be drawn.

  3. 3

    In what order are the parts of a database solution built?

    Model answer

    The tables and their data types come first, then the keys and relationships, then the validation on each column, then the queries the interface depends on, then the forms, and last the reports.

  4. 4

    Why should validation be enforced by the database and not only by the form?

    Model answer

    A rule on the form applies only to data arriving through that form. A rule on the table applies however the data arrives, including through an import, a direct statement or a second application added later.

  5. 5

    How are the entities for a solution identified from a client's description?

    Model answer

    The entities are the things the client keeps records about, which usually appear as the nouns that recur in the description and on the forms and files the client already uses.

  6. 6

    What must be documented for each table in the built solution?

    Model answer

    Each table needs its name and purpose, every column with its data type, size, format, validation and default, the primary key, every foreign key with the table it refers to, and any index created on 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 Building a Desktop Solution with a Database, 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.