Data Dictionaries Begin.

Slides:



Advertisements
Similar presentations
Designing Tables in Microsoft Access By Ed Lance.
Advertisements

Creating Tables Unit 9 - Databases.
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2.1: Relational Databases.
Chapter 3 Data Modeling Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent.
 Microsoft Access is one of two primary database offering from Microsoft.  Access is a network/desktop-based database.  Advantage: It is easy to use.
CVEV 118/698 Databases Lecture 2 Prof. Mounir Mabsout Elsa Sulukdjian Walid El Asmar.
Database Design IST 7-10 Presented by Miss Egan and Miss Richards.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
Tables. What is a Table? A part of a database Container for data Pieces of data, put together, have a meaning.
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
DATABASE. Computer-based filing systems Information in computer-based filing systems are stored in DATA FILES. A FILE is a collection of RELATED RECORDS.
Designing a Database (Part I) -Identify all fields needed to produce the required information -Group related fields into tables -Determine Each Table’s.
Chapter 5: Data Types (2013) Revision Candidates should be able to know: Identify different data types? Key terms: File, record, field and key field Database.
© Relational Databases. © Entities Data is stored in tables. Each table is concerned with one entity An entity is a.
WHAT IS A DATABASE? A DATABASE IS A COLLECTION OF DATA RELATED TO A PARTICULAR TOPIC OR PURPOSE OR TO PUT IT SIMPLY A GENERAL PURPOSE CONTAINER FOR STORING.
IT Applications Theory Slideshows By Mark Kelly Vceit.com Last modified : 6 Dec 2013 Databases II: Structure, naming, data types, data formats.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
IT Applications Theory Slideshows Databases II: Structure, Naming, data types, data formats.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
Mr C Johnston ICT Teacher
Programming with Microsoft Visual Basic th Edition
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
Description and exemplification use of a Data Dictionary. A data dictionary is a catalogue of all data items in a system. The data dictionary stores details.
Microsoft Access Prepared by the Academic Faculty Members of IT.
Course Contents Overview: Database basics Lesson 1: Benefits of using a database Lesson 2: Table that data Lesson 3: Analyzing, viewing, and reporting.
Data Capture Forms What are they?. Example 1 Example 2.
BTEC NCF IT Unit 02 Creating Systems to Manage Information Lesson 05 – Data Types Mr C Johnston.
N5 Databases Notes Information Systems Design & Development: Structures and links.
VCE IT Theory Slideshows
DATA TYPES.
New Perspectives on Microsoft Access 2016
(Winter 2017) Instructor: Craig Duckett
IGCSE 4 Cambridge Designing a database table Computer Science
Creating a database table
Databases Chapter 9 Asfia Rahman.
Building Tables & Defining Relationships
Databases.
GO! with Microsoft Office 2016
DATA INPUT AND OUTPUT.
Software Specification Tools
and Defining Table Relationships
Unit 16 – Database Systems
Attributes and Domains
Data Types and Storing Data
GO! with Microsoft Access 2016
The Selection Structure
How to design a Windows Forms application
BTEC NCF IT Unit 02 Creating Systems to Manage Information Lesson 05 – Data Types Mr C Johnston.
Data File Import / Export
Template library tool and Kestrel training
Creating a table in Access
Setting up an online account
IT Applications Theory Slideshows
Data Types.
Data type for fields in Access
Data Types & File Size Calculations
Designing data capture forms
Data Types and Field Properties
Database Theory.
Attributes and Domains
Chapter 2: Introduction to C++.
Spreadsheets, Modelling & Databases
Microsoft Access Validation Rules, Table Relationships And
ICT Database Lesson 2 Designing a Database.
Introduction to MS ACCESS
Chapter 2 Design Table and Form.
Chapter 2 Design Table and Form.
Presentation transcript:

Data Dictionaries Begin

Purpose of data dictionaries A data dictionary is a design tool. It summarises what data a solution will require, and the properties of the data. It is used to design the structure of a program or database, act as a reference source during development be used during software maintenance and upgrade after implementation.

Content of a data dictionary At a minimum: Data item’s name Data type Vital properties without which the object cannot be created, e.g. field length (when a length is not automatically set by the compiler or RDBMS, such as integer, date)

Content of a data dictionary May also contain: Validation rules, particularly: Existence: whether the field value must be entered or whether it can be null Range: upper and lower limits or lengths of a value, or options in a limited list of choices Whether a value must be unique (e.g. CustomerID)

Content of a data dictionary May also contain: Formatting information Description of the purpose of the data item Sample data In a RDBMS, whether the field is a primary key. A default value, to be used if another value is not given (e.g. Country = ‘Australia’)

Basic example Name Data Type Length txtFamilyName text 25 txtGivenName 15 dateDOB date Auto boolMarried? Boolean 1 intNumPets integer

More developed example Name Data Type Length Required? Validation txtFamilyName text 25 true txtGivenName 15 dateDOB date Auto > 1/1/1940 boolMarried? Boolean 1 False intNumPets integer false >=0

Even more detailed example Name Data Type Length Required? Validation Description Sample txtFamilyName text 25 true Surname Smith txtGivenName 15 First Name Fred dateDOB date Auto > 1/1/1940 Date of Birth 30/12/1966 boolMarried? Boolean 1 False Is Married? True intNumPets integer false >=0 Number of pets owned 3

Miscellanous notes To avoid ambiguity, avoid calling a field ‘First Name’. In many cultures (e.g. Asia) the first name given is actually the person’s family name. E.g. Chef ‘Hiroyuki Sakai’ in Australia would be known as ‘Sakai Hiroyuki’ at home in Japan.

Miscellanous notes A phone number field should always be defined as text to allow the use of parentheses, spaces, dashes, leading zeroes, e.g. 0402 123 456 Use the most efficient data type available, e.g. date/time types, short integer.

Miscellanous notes Plan data types carefully. A number type that is currently big enough may one day be too small to hold an accurate value. E.g. a club uses the byte data type to store the number of members. It works well for years since club memberships don’t exceed 255 – the capacity of a byte field. One day the 256th member joins and the database chokes.

Miscellanous notes Don’t make validation rules so strict that they wrongly forbid the entry of valid data, or force the entry of inaccurate data E.g. making phone numbers compulsory will force people with no phone to invent a number requiring 4-digit postcodes may make foreign customers enter a useless or dangerous fake value

Miscellanous notes When naming data items Use Hungarian Notation (e.g. intNumPets) to identify the data type or object type in the name to prevent misusing the object (e.g. trying to store decimal fraction in an integer, or confusing a label with a text box and trying to set a property that the label does not possess) Since spaces are hardly ever allowed in names, use CamelCase (e.g. intNumPets) to make it easier to read multi-word object names. Note: neither Hungarian Notation nor CamelCase is named in the study design, but they are the classical ‘good naming techniques’. If asked a question about naming objects do not simply say, ’Use Hungarian Notation and CamelCase’. Describe them, perhaps with examples and explain their benefits.