Planning a Database © EIT, Author Gay Robertson, 2019.

Slides:



Advertisements
Similar presentations
Build a database I: Design tables for a new Access database
Advertisements

Database A collection of related information stored on a computer and organized in a manner that allows access, retrieval, and use of that data.
Database Structure Basics National Center for Immunization & Respiratory Diseases Influenza Division Pam Kennedy Analyst, McKing Consulting Regional Training.
Databases. Objectives Define what a database is. Understand the difference between a flat and relational database Design and create a relational database.
Data type – determines the type of data and range of values that can be entered in a field.
MICROSOFT ACCESS Pn. Jamilah Binti Yusof. DEFINITION A database is the computer equivalent of an organized list of information. Typically, this information.
Access Lesson 2 Creating a Database
Information and Data What’s the difference between two? Information systems = hardware and software working together… It will take DATA that has been put.
Access 2007 Database Application Managing Business Information Effectively BCIS 1 and 2.
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
Lesson 1 Introduction of Databases Using Microsoft Access.
DATABASE DESIGN USING MICROSOFT ACCESS. What is a Database?  DMS Database management system  Database Collection of data organized in a manner that.
Microsoft Access 2013 Design and Create Tables to Store Data Chapter 2.
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.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Preparing To Automate Data Management Chapter 1 “You.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
IE 423 – Design of Decision Support Systems Database development – Building Tables
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
Introduction to Access Chapter 13 pages 1-4. What is a database??? Related information is stored in databases  All SC student information is stored in.
Access Lessons 1, 2 and 3 ©2009 M and K Solutions, LLC – All Rights Reserved.
Pasewark & Pasewark 1 Access Lesson 2 Creating a Database Microsoft Office 2007: Introductory.
Database design Using Access 2007
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
CSCI 6962: Server-side Design and Programming Shopping Carts and Databases.
Microsoft Access Prepared by the Academic Faculty Members of IT.
Software. Because databases can get very big, it is important to decide exactly what is going to be stored in each field. Fields can be text, number,
MICROSFTACCESS tables. DATA TYPES Field TypeWhat It Holds Short Text Text up to 255 characters long (including spaces and punctuation). Use a Text field,
To play, start slide show and click on circle Access 1 Access 2 Access 3 Access 4 Access Access
2b. Create an Access Database Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.
Microsoft Access 2016 Design and Create Tables to Store Data
DATA TYPES.
New Perspectives on Microsoft Access 2016
Microsoft Office Access 2010 Lab 1
Prepared By: Bobby Wan Microsoft Access Prepared By: Bobby Wan
Fundamentals of Database
GO! with Microsoft Office 2016
Microsoft Access 2007 – Level 1
and Defining Table Relationships
Unit 16 – Database Systems
Types of data This presentation differentiates between ICT professional and end users.
Microsoft Access 2013 Design and Create Tables to Store Data
GO! with Microsoft Access 2016
Database Management  .
Design and Create Tables to Store Data Chapter 2
Access Lesson 2 Creating a Database
Microsoft Access 2010 Lesson 2 Access Lesson 2 Lesson Plans
Access Lesson 2 Creating a Database
Developing a Worksheet to meet a Brief or Scenario
Databases Software This icon indicates the slide contains activities created in Flash. These activities are not editable. For more detailed instructions,
Data Types & File Size Calculations
Data Types and Field Properties
INFO/CSE 100, Spring 2006 Fluency in Information Technology
Database Theory.
Spreadsheets, Modelling & Databases
Creating a Database and a table
Mail Merge in Word 2016 © EIT, Author Gay Robertson, 2017.
Topic 12 Lesson 1 – Data and databases
Creating a Form © EIT, Author Gay Robertson, 2017.
ICT Database Lesson 2 Designing a Database.
Introducing a Database
Grauer and Barber Series Microsoft Access Chapter Two
Databases This topic looks at the basic concept of a database, the key features and benefits of a Database Management System (DBMS) and the basic theory.
More to Learn Different data types
Chapter 2 Design Table and Form.
Lecture 2 Lecturer: awdang aziz MS access
Chapter 2 Design Table and Form.
Microsoft Access 2010 Lesson 2 Access Lesson 2 Lesson Plans
Macro theory © EIT, Author Gay Robertson, 2019.
Presentation transcript:

Planning a Database © EIT, Author Gay Robertson, 2019

The 3 steps to planning … Step one determine the purpose by looking at the brief Step two determine the fields, the fieldnames (no spaces in fieldnames), the field sizes (estimate or work out an average size, by looking at data), determine the data types by looking at the brief Step three determine the primary key field – look at the facts – find the fact that cannot be duplicated

Determine the purpose … Decide the purpose of the database by looking at the brief (the brief is the list of everything that needs to be included in the database and everything that needs to be produced from the database)

Purpose … The purpose of the database is to set up an inventory for the Taradale Cake Shop

Determine the fields, fieldnames and data types Decide what facts you need to keep track of by reading the brief

Fields ….. The facts needed will be your Fields Record these fieldnames in your Plan Plan Plan of Action: Fieldname ItemNo Item Quantity Price Dept Fieldnames should have NO SPACES in them. They can be abbreviated eg Quan for Quantity

Data types ….. Decide what type of data will be stored in each field Look at the data on the form that is filled in now

Look at the data types you will need Short Text (alpha, numeric) Numbers, (numbers used for calculations, so NOT phone numbers) Currency 1 2.5% 32.7

There are other data types also …. Autonumber This allows a unique number to be attached to each record You can set the number to increment eg 1, 2, 3, 4 An Autonumber is often used as a Record ID No

Date / Time This allows you to display a date in the format needed eg 1/11/2017 Or display a time in the format needed eg 22:10

Yes/No or logical data type Hyperlink to the Web

Data types ….. Record the data type for each field in your Plan Plan Fieldname ItemNo Item Quantity Price Dept Data type AutoNo ShortText Number Currency

Field size ……. Field size is important if you have a lot of Short text data type fields in your database By default (or automatically) Access sets Short text data type field size at 255 spaces

Why is field size important? If the field size is too big, then it makes the database work slowly when finding records eg looking for Mr Gascoigne-Brown It can increase the file size of the database and therefore waste your storage space eg if you allow 255 spaces for every persons name, and then you find most names are 5 letters you are wasting 250 spaces IN EVERY RECORD. How does that work? If you have 100 people in your database, each has a record, so 100 * 250 spaces = 25,000 extra storage spaces!

Deciding on your field sizes ….. If you already had your data in front of you you could count how many letters were in the longest name eg Gascoigne-Brown BUT generally, you don’t have all the data in front of you, so you need to use an “average” field size For a first name, average about 20 For a last name, average about 30 For an address eg 19 Elliott St, average about 30 For a suburb eg Taradale, average about 20 For a City eg Palmerston North, average about 30

Determine the primary key ….. Decide if there is a fact that cannot be duplicated – this is known as a unique fact - this will be your primary key Add this to your Plan Now it is complete you can start creating your table Plan Data type AutoNo ShortText Number Currency Fieldname ItemNo Item Quantity Price Dept

Now what did I do to complete my plan???

What you did to complete your Plan …. Step one: you determined the purpose of your database Step two: you determined the fields, fieldnames, data types and field sizes Step three: you determined the primary key

I need to read the brief in the workbook now and see if I can complete a plan!!