Access Chapter 2: Relational Database Objectives Design data Create tables Understand table relationships Understand data types, key, & field properties.

Slides:



Advertisements
Similar presentations
Designing Tables in Microsoft Access By Ed Lance.
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.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall.
1 Chapter 1 & 2 Relational Databases and Queries CS101 WVU.
Tutorial 3 Queries and Table Relationships
Exploring Office Grauer and Barber 1 Tables and Forms: Properties, Views, and Wizards(Wk3)
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 3 1 Microsoft Office Access 2003 Tutorial 3 – Querying a Database.
SUNY Morrisville-Norwich Campus-Week 10 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
COMPREHENSIVE Access Tutorial 2 Building a Database and Defining Table Relationships.
Querying a Database Microsoft Office Access 2003.
FIRST COURSE Access Tutorial 2 Building a Database and Defining Table Relationships.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
Access Lecture 1 Database Overview and Creating Tables Create an Employee Table.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
Database Applications – Microsoft Access Lesson 2 Modifying a Table and Creating a Form 45 slides in presentation Accessibility check 9/14.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
Building The Database Chapter 2
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
Tables. What is a Table? A part of a database Container for data Pieces of data, put together, have a meaning.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 4 – Creating New.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
Access 2007 Database Application Managing Business Information Effectively BCIS 1 and 2.
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational.
Exploring Microsoft Office Access 2010
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Access Tutorial 2 Building a Database and Defining Table Relationships
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.
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
 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.
Exploring Microsoft Access 2003 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards.
Microsoft Access 2013 Design and Create Tables to Store Data Chapter 2.
® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 9 1 Microsoft Office Access 2003 Tutorial 9 – Using Action Queries, and Defining Table Relationships.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 9 – Building Links,
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
Access Project 3 Notes. Introduction Maintaining the Database  Modifying the data to keep it up-to-date Restructure the Database  To change the database.
Using Microsoft Access 56:150 Information System Design.
Microsoft Office Illustrated Introductory, Premium Edition Using Tables and Queries.
Database collection of related information stored in an organized form Database program software tool for storage & retrieval of that information.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
Maintaining a Database Access Project 3. 2 What is Database Maintenance ?  Maintaining a database means modifying the data to keep it up-to-date. This.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
CSCI-235 Micro-Computers in Science Microsoft Access 2002 Chapter 2 Tables and Forms: Design, Properties, Views, and Wizards.
Database design Using Access 2007
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.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
Microsoft Access 2016 Design and Create Tables to Store Data
Access Tutorial 2 Building a Database and Defining Table Relationships
Prepared By: Bobby Wan Microsoft Access Prepared By: Bobby Wan
Objectives Query for top values Create a parameter query
and Defining Table Relationships
Microsoft Access 2013 Design and Create Tables to Store Data
Exploring Microsoft Office Access 2007
Access Tutorial 2 Building a Database and Defining Table Relationships
Access Tutorial 2 Building a Database and Defining Table Relationships
Microsoft Office Illustrated Introductory, Windows XP Edition
Chapter 2 Design Table and Form.
Chapter 2 Design Table and Form.
Presentation transcript:

Access Chapter 2: Relational Database Objectives Design data Create tables Understand table relationships Understand data types, key, & field properties Establish table relationships Create a single-table query Specify criteria for different data types 1

Table Design: Designing Data Table Definition – Revised Input vs. Output in Design 2

Designing Fields Guidelines 1.Include the necessary data 2.Design for now and the future 3.Store data in its smallest parts 4.Add calculated fields to a table 5.Design to accommodate date arithmetic 6.Link tables using common fields 3

Include Necessary Data Determine what data is necessary Create a rough draft of reports that may be needed Create tables based on fields necessary for reports 4

Design for Now and the Future Organizations evolve over time Databases should evolve with the organization – Anticipate future needs of the organization – Build flexibility into system to satisfy future needs 5

Store Data in Smallest Possible Pieces Creating a name field with the entire name in it violates good database design and reduces the usefulness of the data Divide data into the smallest pieces that you’re going to need to access – Example: Prefix, FirstName, LastName, Suffix Provide flexibility for the user 6

Calculated Fields in a Table Produce a value from an expression or function that references one or more existing fields Access 2010 allows the user to store calculated fields – Can be a benefit or a potential problem – Exercise caution when using calculated (derived) fields 7

Design to Accommodate Date Arithmetic Calculated fields can also create date/time data Plenty of examples available for using date/time date arithmetic 8

Link Tables Using Common Fields Tables may be joined based on a common field Join lines are created – Manually by the user, or – Automatically by Access when two fields in separate tables share the same name between two related tables Avoid Data redundancy errors – The unnecessary storage of duplicate data in two or more tables 9

Creating Tables Create fields in Design View Import data from another database or application – Examples: Excel spreadsheets or Word text files Enter data directly into rows in Datasheet view 10

Creating Fields in Tables Field names should be meaningful Rules for naming fields: – Length can be up to 64 characters – Can include letters, numbers and spaces – Access uses CamelCase notation Use uppercase letters for each first letter of each new word Example: ProductCost 11

Field Data Types Every field has a data type Determines: – The type of data that can be entered – The operations that can be performed on that data Access recognizes 10 data types 12

Access Data Types Number Text Memo Date/Time Currency Yes/No OLE AutoNumber Hyperlink Attachment 13

Foreign Key Review A field in one table that is also a primary key of another table 14 SpeakerID is the primary key of the Speakers SpeakerID is the foreign key in the SessionSpeaker table (duplicates are allowed)

Using Table Views Datasheet View 15 Active record

Using Table Views Design View PivotTable PivotChart 16

Work with Field Properties Field property Text data type Number data type Caption property Validation rule 17

Access Field Properties Field Size Format Input Mask Caption Default Value Validation Rule Validation Text 18

Access Field Properties (continued) Required Allow Zero Length Indexed Expression Result Type 19

Understanding Table Relationships Efficiently combine data from related tables Create queries, forms, and reports 20

Establishing Referential Integrity Edit Relationships dialog box Select Enforce Referential Integrity checkbox 21

Set Cascade Options Cascade Update Related Fields Cascade Delete Related Records 22 Click Cascade Delete with caution Click Cascade Update in case the primary key changes Click Enforce Referential Integrity

Indexing to Retrieve Data Quickly Provides quick sorting based on the primary key Provides quick retrieval of data based on the primary key 23

Options on External Data Tab Import & Link Export Collect Data Web Linked Lists 24 External Data Tab Click Excel to import spreadsheet data

Import Data from Excel 25 Click Browse to find a spreadsheet Decide what you want to do with the data

Import Data from Excel (continued) 26 Choose the worksheet to import Preview of the worksheet data Click Next to continue

Types of Relationships One-to-one relationship One-to-many relationship Many-to-many relationship 27

Establishing a One-to-Many Relationship Open Relationships window Add tables Establish relationships 28 Show Table window

Relationships Between Tables 29 Edit Relationships dialog box One-to-many relationships

Relationships Window 30 Join lines 1 side Many side: the “  ” (infinity symbol)

Single-Table Queries Show Table Design Grid to add – Field row – Table row – Sort row – Show row – Criteria 31 Query Design Grid—Fields, Sorting, and Criteria Query Design—Tables

Datasheet View of Results 32 Query results in Datasheet view Only accounts with a balance over $5,000 Nine records match the criteria