levo

Database Concepts and Entity Relationship Modelling

From ER model to a working design

  • 3 things to know
  • A2 Unit 1

Overview

Difference between a logical and a physical data model, default value and documented about each table in a physical design.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What is the difference between a logical and a physical data model?

Key term

What is the effect of choosing a column too small?

Key term

What decisions are taken when a logical model becomes a physical design?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What decisions are taken when a logical model becomes a physical design?

    Model answer

    The physical design fixes the exact table and column names allowed by the chosen product, the data type and size of every column, the validation rules, the indexes to be created, and the integrity rules applied to each relationship.

  2. 2

    What is the difference between a logical and a physical data model?

    Model answer

    A logical model states what must be stored and how it is related, in terms the business can check and independently of any product. A physical model states how it will be implemented in a named product, with types, sizes and indexes.

  3. 3

    Why is the data type of every column chosen deliberately?

    Model answer

    The data type decides what values the column will accept, how much space each takes, and how the values sort and calculate. Storing a date as text admits impossible dates, sorts them alphabetically and makes arithmetic impossible.

  4. 4

    Which validation rules can be attached to a column?

    Model answer

    A column can require a value to be present, restrict it to a range, require it to match a format, restrict it to a list, or require it to exist in a related table. Placing the rule on the table means every program that writes to it obeys the same rule.

  5. 5

    Why should validation be placed on the table rather than only on a form?

    Model answer

    A rule on the form applies only when data arrives through that form. A rule on the table applies however the data arrives, including through an import, another application or a direct statement.

  6. 6

    What is a default value, and when is one used?

    Model answer

    A default value is the value the database enters when none is supplied, such as today's date for an order date or a status of Pending for a new record. A default saves keying and makes the common case consistent.

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 Database Concepts and Entity Relationship Modelling, 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.