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.

Slides:



Advertisements
Similar presentations
Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
Advertisements

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.
Benchmark Series Microsoft Access 2010 Level 1
Access Tutorial 1 Creating a Database
Database Creation and Management
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
Access Lesson 2 Creating a Database
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
Chapter 1 Databases and Database Objects: An Introduction
BA271 Week 6 Lecture Database Overview Dave Sullivan.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Access Tutorial 1 Creating a Database
COMPREHENSIVE Access Tutorial 2 Building a Database and Defining Table Relationships.
Creating And Maintaining A Database. 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of.
FIRST COURSE Access Tutorial 2 Building a Database and Defining Table Relationships.
Microsoft Access – Tutorial 1 if you need to review general Microsoft Office procedures such as: menus toolbars task panes files help printing please go.
Advanced Tables Lesson 9. Objectives Creating a Custom Table When a table template doesn’t suit your needs, you can create a custom table in Design view.
Database Applications – Microsoft Access Lesson 2 Modifying a Table and Creating a Form 45 slides in presentation Accessibility check 9/14.
Access Lesson 2 Creating a Database
Unit J: Creating a Database Microsoft Office Illustrated Fundamentals.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
Microsoft Access – Tutorial 3
Access Tutorial 2 Building a Database and Defining Table Relationships
Microsoft Access – Tutorial 1 if you need to review general Microsoft Office procedures such as: menus toolbars task panes files help printing please go.
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
Created by: Tanya Morgan.  Access is the database software of the Microsoft Office suite.  A database is a collection of objects that work together.
DATABASE DESIGN USING MICROSOFT ACCESS. What is a Database?  DMS Database management system  Database Collection of data organized in a manner that.
Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards.
® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.
XP New Perspectives on Microsoft Access 2002 Tutorial 21 Microsoft Access Tutorial 2 – Creating And Maintaining A Database.
XP 1 Microsoft Access 2003 Introduction To Microsoft Access 2003.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
Microsoft Office 2013 ®® Access Tutorial 2 Building a Database and Defining Table Relationships.
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
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.
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.
Access  Getting Started  Creating Tables  Designing Tables Worksheet #8.
Microsoft Office XP Illustrated Introductory, Enhanced Tables and Queries Using.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
IBS 520 Introduction to Internet Technology Database Fundamentals Week 4.
Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.
BA271 Week 6 Lecture Dave Sullivan. Goal for today… Status Report – Review where we are … Status Report – Review where we are … Begin learning about Microsoft.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
Microsoft Access – Tutorial 3 Performing Calculations copy the HighWageAmounts query and paste it name it HighWageAmountsWithBonus and open it in Design.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
Pasewark & Pasewark 1 Access Lesson 2 Creating a Database Microsoft Office 2007: Introductory.
Ennis-Cole, AC 2.01, CECS Maintaining A Database By: Dr. Ennis-Cole.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
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.
1 Microsoft Access 2002 Tutorial 2 – Creating And Maintaining A Database.
Access Tutorial 2 Building a Database and Defining Table Relationships
Guidelines for Designing Databases
Building Tables & Defining Relationships
Microsoft Access – Tutorial 3
Microsoft Access – Tutorial 3
and Defining Table Relationships
Access Lesson 2 Creating a Database
Access Lesson 2 Creating a Database
Microsoft Office Access 2003
Access Tutorial 2 Building a Database and Defining Table Relationships
Access Tutorial 2 Building a Database and Defining Table Relationships
Unit J: Creating a Database
Presentation transcript:

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 copy records from another database into your new table maintain, modify and update the new table to specific data requirements

Microsoft Access – Tutorial 2 Guidelines for Designing Databases identify all fields necessary to produce the required information determine each table’s Primary Key can be a naturally unique field such as a credit card or SIN # can be two or more fields called a composite key ex. student # and course code a field that is added specifically to be the primary key ex. EmployerID

Microsoft Access – Tutorial 2 Guidelines for Designing Databases include a common field in related tables use a common field to connect one table logically to another table ex. the EmployerID for the Employer and Positions tables remember that when a primary key is used as the common key in another table (as in the example above), it is called a foreign key avoid Data Redundancy do not store the same data in more than one table, except as keys in the examples above wastes storage space and can cause inconsistencies see figure 2-3 on page AC37 for an example illustration

Microsoft Access – Tutorial 2 Guidelines for Designing Databases determine the properties of each field identify the properties or characteristics of each field so that the DBMS knows how to store, display and process the field values examples field’s name, maximum number of characters or digits description valid values

Microsoft Access – Tutorial 2 Guidelines for Setting Field Properties you must name each field, table and other object in an Access database choose names that best describe the purpose or contents name rules: up to 64 characters long cannot contain period (.), exclamation mark (!), accent grave or square brackets ( [ ] ) can’t start with a space valid values

Microsoft Access – Tutorial 2 Guidelines for Setting Field Properties name conventions (not strict rules): capitalize the first letter of each word in the name ex. PositionTitle avoid extremely long names use standard abbreviations ex. number = Num; amount = Amt; quantity = Qty avoid spaces or special characters these can be used when setting the Caption for the name

Microsoft Access – Tutorial 2 Setting Field Data Types each field must have a data type assigned this determines what field values can be entered and what other properties the field will have there are ten data types available which include text number date/time currency yes/no hyperlink a full list with explanations can be found in figure 2-4 on page AC39 of your book

Microsoft Access – Tutorial 2 Setting Field Sizes you can also set the field sizes for the maximum storage of text, number and autonumber fileds text has a default size of 50 characters, but can be set from 0 to 255 characters set the Field Size property based on the largest value you expect to store in that field doing this can speed up performance of the database a full list with explanations can be found on page AC40 of your book

Microsoft Access – Tutorial 2 Setting Field Captions field captions specify how a field will appear in datasheets, forms, reports and other database objects normally the field name is used, but it may be awkward or confusing ex. HoursPerWeek could be captioned hours/week a full list of examples can be found in figure 2-5 on page AC40 of your book

Microsoft Access – Tutorial 2 Creating a new database click the new button on the database toolbar or File>New select Blank Database and save a new database called Northeast click the New button in the database window and select Design View Enter field names, data types, descriptions and properties from this view we will start with the primary key PositionID give it the name PositionID with a Data Type of text and the (optional) description Primary Key

Microsoft Access – Tutorial 2 Setting Field Properties look at the General Properties for this field change the field size to 4 as Position IDs consist of 4 characters give it the caption Position ID next add the PositionTitle field with a size of 30 characters and the caption Position Title next add the EmployerID field with a size of 5 characters and the caption Employer ID give this a description of Foreign Key (WHY?)

Microsoft Access – Tutorial 2 Setting Field Properties next add the Wage field this filed has a data type of Currency give this a description of Rate per hour for this field, we will set the decimal places to two this field should not have a default value, so remove the default value of 0 from this field

Microsoft Access – Tutorial 2 Setting Field Properties next add the HoursPerWeek field this filed has a data type of number give this a description of Work hours per week to save data space and improve performance change the Field Size from Long Integer to Integer as it stores the number in a smaller size (2 bytes) give the field a caption of Hours/Week delete the default value do the same for the field Openings with a caption of Number of Openings next add the seventh ReferredBy (text) field with a size of 30 characters and a caption of Referred By

Microsoft Access – Tutorial 2 Setting Field Properties the eight and ninth field are date/time fields with the names StartDate and EndDate put Month/day/year in the description fields format these with the mm/dd/yyyy style give them logical captions

Microsoft Access – Tutorial 2 Specify the Primary key specify Position ID as the primary key click on the row selector (left side) to select the row click the Primary Key button on the Table Design toolbar save your work and name the table Position look at the figures on pages AC50 and AC51 to check your work

Microsoft Access – Tutorial 2 Adding Records click the view button (top left) for the Datasheet View add the two records in figure 2-16 on page AC53 Deleting Fields click the view button (top left) again to return to the Design View select the ReferredBy field right-click and delete the entire row

Microsoft Access – Tutorial 2 Moving Fields select the Openings field click and drag the field so that it is the last field on the bottom Adding Fields select the StartDate field right-click and select Insert Rows add a new field called Experience this will be a yes/no Data Type caption this Experience required make the default value no

Microsoft Access – Tutorial 2 Changing Field Properties select the Openings field change the Format to Standard so that the $ will not appear Update change to field properties you can update the change above to forms and reports that use this field click the Property Update Options (lightning bolt) symbol and update save your table and add the record in figure 2-28 on page AC64

Microsoft Access – Tutorial 2 Obtaining Data from other databases open the database file NEJobs and then the table Available Positions copy the records and paste them below the three records you already have you must select row 4 to do so import the Employer and NAICS tables click file>Get External Data>Import locate the Seasonal Database and import the two tables practice with the Case Problems at the end of Tutorial 2!