Wednesday, 18 September 2013

Data Dictionary

Data Dictionary


Data Requirements

When designing a program, you also need to specify what data the will need and how it will be stored.  Designing the input and output requirements of the program will usually provide you with the majority of this information, but it needs to be presented in a way that can be easily checked for completeness and that can be referred to whilst the program is being written to avoid errors.
This is done by creating a data dictionary.

What is a data dictionary?

A data dictionary is a file which contains all necessary information and descriptions about the data that is used in the program. Details stored include:
  •          Variable name/identifier
  •          Data type and data structure (the type and format of the data)
  •          Size of data
  •          Validation rules (used to check that the data is appropriate)
  •          A description of the data (what it is used for)


Data Types
  •          Numeric (integers and Floating point, which is a decimal number)
  •          Text (A-Z, a-z, 0-9)
  •          Boolean (Yes/No, On/Off etc.)
  •          Currency

Validation Rules
  •          Presence Check (correct data is input)
  •          Look-Up Check (drop down menu)
  •          Range Check (can be alpha numeric)
  •          Length Check (data is too long or short)
  •          Type Check (type of character input)

Relationship Types

A person name and National insurance number are related pieces of information. This is known as a 1 to 1 (1:1) relationship as only one national insurance number can be related to any one person.




Example:

Table Name
Student
Field Name
First name, surname, course, grades
Data Type
Text and Numeric
Field Length
1-20 characters
Default value of field
Default value is blank
Field validation
Only text input into any field
Keys

Relationships
First name and surname, name and course, name and grades
Access rights
View only, unless admin


No comments:

Post a Comment