Building Tables & Defining Relationships

Slides:



Advertisements
Similar presentations
Guidelines for Setting Field Properties Each field has a number of properties, such as its name and data type, that you can set when you define the field.
Advertisements

Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
© Steven Alter, 2007, all rights reserved Database concepts Difference between a database and the Internet Reason for having a defined data structure Relational.
Database Basics. Definitions Database Relational database Table Record Field Primary key.
Data Types and Field Properties 5.01 Understand database tables used in business.
Data Types and Field Properties 5.01 Understand database tables used in business.
Data type – determines the type of data and range of values that can be entered in a field.
Tables. What is a Table? A part of a database Container for data Pieces of data, put together, have a meaning.
Access 2007 Database Application Managing Business Information Effectively BCIS 1 and 2.
Access 2000 Part 1 Introduction to Access Agenda Starting Access. Creating Tables. Working with Tables. Setting Field Properties.
Microsoft Access Intro Class 2 Designing Databases and Tables.
 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 DESIGN USING MICROSOFT ACCESS. What is a Database?  DMS Database management system  Database Collection of data organized in a manner that.
Designing a Database (Part I) -Identify all fields needed to produce the required information -Group related fields into tables -Determine Each Table’s.
Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards.
Microsoft Access – Tutorial 2 Designing Databases In this tutorial, we will create a new database create a new table import tables from an existing database.
Microsoft Access 2013 Design and Create Tables to Store Data Chapter 2.
Copyright 2007, Paradigm Publishing Inc. BACKNEXTEND 1-1 LINKS TO OBJECTIVES Design Tables and Fields Design Tables and Fields Data Types Field Size Property.
Access Chapter 2: Relational Database Objectives Design data Create tables Understand table relationships Understand data types, key, & field properties.
Microsoft Office 2013 ®® Access Tutorial 2 Building a Database and Defining Table Relationships.
Presented By: Gail Rose-Innes Camps Bay High School ICT & CAT Department Microsoft Access 2010.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Preparing To Automate Data Management Chapter 1 “You.
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.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
IE 423 – Design of Decision Support Systems Database development – Building Tables
XP Chapter 2 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Building The Database Chapter 2 “It is only the farmer.
A Skills Approach Access 2010 Working with Tables © 2012 The McGraw-Hill Companies, Inc. All rights reserved Chapter 2.
Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.
Data Types and Field Properties 5.01 Understand database tables used in business.
Data Types and Field Properties continued… Understand database tables used in business.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
CSCI-235 Micro-Computers in Science Microsoft Access 2002 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards.
Study Opportunities1 Database table quiz What is your name?
Modifying the Database Structure. Objectives Examine relational databasesExamine relational databases Design related tablesDesign related tables Create.
Database design Using Access 2007
C REATING & D ESIGNING A D ATABASE 1. C REATING A D ATABASE 2 There are two different ways to create a new Access database: 1. Start from scratch with.
 A collection of data organized in a way that allows:  Easy access  Easy retrieval of specific data  Easy use of the data.
Getting Started in Access 1 Using an existing Database Database Window Table Design View Parts of a Table Views in Access Navigating in Access Entering.
F IELD P ROPERTIES 1 Characteristics that apply to each field in a table. Help ensure database accuracy and clarity Restrict the way data is entered, stored,
To play, start slide show and click on circle Access 1 Access 2 Access 3 Access 4 Access Access
Microsoft Access 2016 Design and Create Tables to Store Data
DATA TYPES.
Guidelines for Designing Databases
GO! with Microsoft Office 2016
Exploring Microsoft Access 97
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
Databases part 2 – field properties
Data Types and Field Properties
Design and Create Tables to Store Data Chapter 2
MS Access: Creating Databases
Introduction to Computer Science (CIS 101)
Access Lesson 2 Creating a Database
Data Types and Field Properties
Data Types and Field Properties
MS ACCESS.
Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards
ICT Database Lesson 2 Designing a Database.
Data Types and Field Properties
Grauer and Barber Series Microsoft Access Chapter Two
Data Types and Field Properties
More to Learn Different data types
Introduction to MS ACCESS
Chapter 2 Design Table and Form.
Lecture 2 Lecturer: awdang aziz MS access
Chapter 2 Design Table and Form.
Data Types and Field Properties
Data Types and Field Properties
Presentation transcript:

Building Tables & Defining Relationships

Guidelines for Designing Tables Identify all the fields needed to produce the required information Organize each piece of data into its smallest useful part Group related fields into tables Determine each table’s primary key ( only if needed) Include a common field in related tables Avoid data redundancy Determine the properties of each field

Guidelines for Naming Fields A field name can be up to 64 characters in length and it can include letter, numbers, spaces and special characters, except for the following: periods(.) exclamation mark (!) accent (‘) square brackets [] It cannot begin with a space Use sentence case method (Capitalize the first letter of each word ) As a practical matter do not use spaces so that it will be easier to work with the names when you need to perform complex programming tasks Use standard abbreviations, such as Num for number, Qty for quantity, Amt for amount, etc. Use names that are descriptive and you can easily understand them when you view and or edit record. Different DBMS have different naming convections.

Data Types Short Text Long Text (Memo) Number Field values containing letters, digits, spaces, and special characters. Use for names, addresses, descriptions, values and digits not used in calculations. 0 to 255 characters; default field size is 255. Long Text (Memo) Field values containing letters, digits, spaces, and special characters. Use for long comments and explanations. 1 to 65,535 characters; the exact size is determined by the entry. Number Allows positive and negative numbers. Numbers can contain digits, a decimal point, commas, a plus sign, and a minus sign. Use for values that will be used for calculations expect for monetary values. 1 to15 digits.

Data Types Date/Time Currency Yes/No Allows valid dates from January 1, 100 to December 31, 9999. Dates can be entered in a variety of formats such as month/day/year ( mm/dd/yyy) or variety of time formats such as 8:40 AM. You can perform mathematical calculations on dates and times. Currency Similar to Number but used for monetary values. Accurate to 15 digits on the left side of the decimal point and 4 digits on the right side. Yes/No Boolean: An expression that can be evaluated as either true (nonzero) or false (0). The field data type Yes/No is Boolean and has the value of -1 for Yes and 0 for No)  

Data Types OLE Hyperlink Attachment Lookup Wizard Allows values that are created as objects in other programs- pictures, graphic files, Word documents and Excel spreadsheets. These objects can be linked or embedded.   Hyperlink Used for email and URL addresses. Total of 65, 535 characters. Attachment Allows field values with one or more attached files, such as images, videos, charts or other files that are supported. More flexible that OLE.  Lookup Wizard Provides a way that allows you to look up a value in another table or a predefined list of values.