levo

Building a Desktop Solution with a Database

Data sets

  • 3 things to know
  • A2 Unit 2

Overview

The in-memory copy that holds tables, relationships and the state of every row, why it works without a connection, what accepting and rejecting changes do, and how it differs from a forward-only reader.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What is a data set?

Key term

Why is a data set described as a disconnected copy?

Key term

What states can a row in a data set be in?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is a data set?

    Model answer

    A data set is an in-memory copy of data, holding one or more tables with their columns, rows, keys and relationships, and existing independently of the database it was filled from.

  2. 2

    Why is a data set described as a disconnected copy?

    Model answer

    Because once it is filled it holds the data on its own and needs no connection. The application reads and changes it locally, and the database is contacted again only when the changes are sent back.

  3. 3

    What can a data set hold besides rows?

    Model answer

    A data set can hold several tables at once, the relationships between them, primary key definitions, and constraints, so it can enforce integrity locally in the same way the database does.

  4. 4

    Why would a data set hold more than one table?

    Model answer

    Holding related tables together lets the application follow a relationship in memory — listing an order's lines from the order row — without returning to the database for each one.

  5. 5

    What states can a row in a data set be in?

    Model answer

    A row is unchanged, added, modified or deleted, and the data set keeps that state so the adaptor knows which command to issue for it when the changes are saved.

  6. 6

    What does it mean to accept changes on a data set?

    Model answer

    Accepting changes marks every row as unchanged and discards the record of what it was before, which is done after the changes have been saved successfully so the next save does not repeat them.

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.