® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.

Slides:



Advertisements
Similar presentations
Chapter 1 Databases and Database Objects: An Introduction
Advertisements

Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2.1: Relational Databases.
Microsoft Access.
Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
Microsoft Office 2013 ®® Access Tutorial 2 Building a Database and Defining Table Relationships.
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
Access Lesson 2 Creating a Database
Chapter 1 Databases and Database Objects: An Introduction
Access Tutorial 3 Maintaining and Querying a Database
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.
Access Tutorial 4 Creating Forms and Reports
Access Tutorial 8 Sharing, Integrating, and Analyzing Data
Access Tutorial 10 Automating Tasks with Macros
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
Chapter 3 Maintaining a Database
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
Access Lesson 2 Creating a Database
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Access Tutorial 2 Building a Database and Defining Table Relationships
Chapter 1 Databases and Database Objects: An Introduction
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
® Microsoft Access 2010 Tutorial 1 Creating a Database.
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.
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T6: Basic Skills and Tools Using.
® 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 New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
FIRST COURSE Access Tutorial 4 Creating Forms and Reports.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
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.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T6: Basic Skills and Tools Using Access 2010 Business Driven Technology.
® Microsoft Office 2013 Access Creating a Database.
® Microsoft Access 2010 Tutorial 12 Managing and Securing a Database.
McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T6 Basic Skills Using Access.
COMPREHENSIVE Access Tutorial 3 Maintaining and Querying a Database.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
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.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
® Microsoft Access 2010 Tutorial 9 Using Action Queries and Advanced Table Relationships.
Access Tutorial 2 Building a Database and Defining Table Relationships
Tutorial 1 Creating a Database
New Perspectives on Microsoft Access 2016
Access Tutorial 1 Creating a Database
and Defining Table Relationships
Objectives Create an action query to create a table
Access Creating a Database
Access Creating a Database
Access Tutorial 1 Creating a Database
Access Lesson 2 Creating a Database
Chapter 1 Databases and Database Objects: An Introduction
Microsoft Office Access 2003
Access Tutorial 2 Building a Database and Defining Table Relationships
Access Tutorial 2 Building a Database and Defining Table Relationships
Access Tutorial 1 Creating a Database
Access Tutorial 1 Creating a Database
Presentation transcript:

® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships

XP Objectives Learn the guidelines for designing databases and setting field properties Modify the format of a field in Datasheet view Create a table in Design view Define fields and specify a table’s primary key Modify the structure of a table New Perspectives on Microsoft Access 20102

XP Objectives Import data from an Excel worksheet Create a table by importing an existing table structure Add fields to a table with the Data Type gallery Delete, rename, and move fields Add data to a table by importing a text file Define a relationship between two tables New Perspectives on Microsoft Access 20103

XP Table Window in Design View New Perspectives on Microsoft Access 20104

XP Guidelines for Designing Databases 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 Include a common field in related tables Avoid data redundancy Determine the properties of each field New Perspectives on Microsoft Access 20105

XP Guidelines for Setting Field Properties You must name each field, table, and other object Choose an appropriate data type New Perspectives on Microsoft Access 20106

XP Guidelines for Setting Field Properties The Field Size property defines a field value’s maximum storage size for Text, Number, and AutoNumber fields only – Byte – Integer – Long Integer – Single – Double – Replication ID – Decimal New Perspectives on Microsoft Access 20107

XP Changing the Format of a Field in Datasheet View New Perspectives on Microsoft Access 20108

XP Creating a Table in Design View New Perspectives on Microsoft Access Creating a table in Design view involves entering the field names and defining the properties for the fields, specifying the primary key, and saving the table structure

XP Defining a Field in Design View In the Field Name box, type the name for the field, and then press the Tab key Accept the default Text data type, or click the arrow and select a different data type for the field. Press the Tab key Enter an optional description for the field, if necessary Use the Field Properties pane to type or select other field properties, as appropriate New Perspectives on Microsoft Access

XP Defining a Field in Design View New Perspectives on Microsoft Access

XP Specifying the Primary Key in Design View Display the table in Design view Click in the row for the field you’ve chosen to be the primary key to make it the active field. If the primary key will consist of two or more fields, click the row selector for the first field, press and hold down the Ctrl key, and then click the row selector for each additional primary key field In the Tools group on the Design tab, click the Primary Key button New Perspectives on Microsoft Access

XP Specifying the Primary Key in Design View New Perspectives on Microsoft Access

XP Moving a Field To move a field, you use the mouse to drag it to a new location in the Table window in the Table Design grid New Perspectives on Microsoft Access

XP Adding a Field Between Two Existing Fields In the Table window in Design view, select the row below where you want the new field to be inserted In the Tools group on the Design tab, click the Insert Rows button Define the new field by entering the field name, data type, optional description, and any property specifications New Perspectives on Microsoft Access

XP Adding a Field Between Two Existing Fields New Perspectives on Microsoft Access

XP Table Relationship New Perspectives on Microsoft Access

XP Importing Data from an Excel Worksheet The import process allows you to copy the data from a source without having to open the source file Click External Data on the Ribbon Click the Excel button in the Import & Link group to start the wizard New Perspectives on Microsoft Access

XP Importing Data from an Excel Worksheet New Perspectives on Microsoft Access

XP Importing Data from an Excel Worksheet New Perspectives on Microsoft Access

XP Importing Data from an Excel Worksheet New Perspectives on Microsoft Access

XP Creating a Table by Importing an Existing Table Structure Make sure the External Data tab is the active tab on the Ribbon In the Import & Link group, click the Access button Click the Browse button Navigate to the file Make sure the Import tables, queries, forms, reports, macros, and modules into the current database option button is selected, and then click the OK button Click the Options button New Perspectives on Microsoft Access

XP Creating a Table by Importing an Existing Table Structure New Perspectives on Microsoft Access

XP Adding Fields to a Table Using the Data Type Gallery The Data Type gallery, available in the Add & Delete group on the Fields tab, allows you to add a group of related fields to a table at the same time, rather than adding each field to the table individually The group of fields you add is called a Quick Start selection New Perspectives on Microsoft Access

XP Adding Fields to a Table Using the Data Type Gallery New Perspectives on Microsoft Access

XP Deleting a Field from a Table Structure In Datasheet view, click the column heading for the field you want to delete In the Add & Delete group on the Fields tab, click the Delete button or In Design view, click the Field Name box for the field you want to delete In the Tools group on the Design tab, click the Delete Rows button New Perspectives on Microsoft Access

XP Deleting a Field from a Table Structure New Perspectives on Microsoft Access

XP Adding Data to a Table by Importing a Text File Click the External Data tab on the Ribbon In the Import & Link group, click the Text File button Click the Browse button Navigate to the file Click the Append a copy of the records to the table option button Select the table Click the OK button New Perspectives on Microsoft Access

XP Adding Data to a Table by Importing a Text File New Perspectives on Microsoft Access

XP Defining Table Relationships One of the most powerful features of a relational database management system is its ability to define relationships between tables You use a common field to relate one table to another New Perspectives on Microsoft Access

XP Defining Table Relationships New Perspectives on Microsoft Access

XP Defining Table Relationships A one-to-many relationship exists between two tables when one record in the first table matches zero, one, or many records in the second table, and when one record in the second table matches at most one record in the first table – The Primary table is the “one” in a one-to- many relationship – The Related table is the “many” table New Perspectives on Microsoft Access

XP Defining Table Relationships Referential integrity is a set of rules that Access enforces to maintain consistency between related tables when you update data in a database The Relationships window illustrates the relationships among a database’s tables Click the Database Tools tab on the Ribbon In the Relationships group on the Database Tools tab, click the Relationships button New Perspectives on Microsoft Access

XP Defining Table Relationships New Perspectives on Microsoft Access

XP Defining Table Relationships New Perspectives on Microsoft Access

XP Defining Table Relationships New Perspectives on Microsoft Access

XP Helpful Hints You will spend most of your time learning about tables, queries, forms, and reports in CAB140. Every object (tables, queries, forms, and reports) has two views – Design view – Datasheet view The most common relationship between two tables is 1:M (one-to-many) New Perspectives on Microsoft Access

XP Helpful Hints There are several options to import data from external sources into a database – Excel – Text files – Existing table structure in a different database The greater than symbol (>) can be used on the format property which forces capitalization of the data. This is especially useful on the STATE field where you always want the state code to be capitalized. New Perspectives on Microsoft Access

XP Helpful Hints Most common datatypes are – Text – Number – Date/Time – Currency – AutoNumber – Yes/No New Perspectives on Microsoft Access

XP Helpful Hints If a particular field consists of numeric data, ask yourself if the field could be used in an arithmetic operation. If YES, use Number or Currency; if NO, use Text. Examples – Zip code: text datatype – Social Security number: text datatype – Hours worked: number datatype – Hourly rate: currency datatype New Perspectives on Microsoft Access

XP Additional Examples Custom date examples Using the date, 04/10/14, note the display of the date based on the custom format – mm/dd/yyyy: 04/10/2014 – mmm yyyy: Apr 2014 – mmmm yyyy: April 2014 – w mmm/yyyy: Thursday Apr/2014 – mmm-dd-yy: Apr – yyyy.mmm.dd: 2014.Apr.10 New Perspectives on Microsoft Access