Microsoft Access 2013 ®® Tutorial 9 Using Action Queries and Advanced Table Relationships.

Slides:



Advertisements
Similar presentations
Database Relationships in Access As you recall, the data in a database is stored in tables. In a relational database like Access, you can have multiple.
Advertisements

Objectives Create an action query to create a table
Microsoft Office 2013 ®® Access Tutorial 2 Building a Database and Defining Table Relationships.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
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.
FIRST COURSE Microsoft Access (Basics). XP Objectives Define the terms field, record, table, relational database, primary key, and foreign key. Learn.
RELATIONSHIP  THE WAY TABLES ARE RELATED  A TABLE MUST PARTICIPATE IN AT LEAST ONE RELATIONSHIP  IN A BINARY RELATIONSHIP TWO ENTITIES PARTICIPATE 
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.
Tutorial 8 Sharing, Integrating and Analyzing Data
Inner join, self join and Outer join Sen Zhang. Joining data together is one of the most significant strengths of a relational database. A join is a query.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Define Table Relationships—1 of 3 One of the most powerful features of a relational database management system, such as Access, is its ability to define.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
Copyright 2007, Paradigm Publishing Inc. BACKNEXTEND 3-1 LINKS TO OBJECTIVES Save a Filter as a Query Save a Filter as a Query Parameter Query Inner, Left,
Microsoft Access Lesson 3
1 Microsoft Access 2002 Tutorial 3 – Querying a Database.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
Microsoft Office 2013 ®® Access Tutorial 4 Creating Forms and Reports.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Tutorial 8 Advanced Queries. Notes Switch to new database! Tutorial.08 folder Only Session 8.1 and 8.2.
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.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
10/31/2012ISC239 Isabelle Bichindaritz1 SQL Graphical Queries Design Query By Example.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
® 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,
Tutorial 4 Creating Forms and Reports
1 Outline  What is a Primary Key?  AutoNumber primary keys  Single-field primary keys  Composite-field primary key  About Foreign Keys  Database.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
Chapter 9 Query-by-Example Pearson Education © 2009.
Access Project 3 Notes. Introduction Maintaining the Database  Modifying the data to keep it up-to-date Restructure the Database  To change the database.
Microsoft Access Intro Class 6 Relationships.
Using Microsoft Access 56:150 Information System Design.
® Microsoft Access 2010 Tutorial 9 Using Action Queries and Advanced Table Relationships.
Tutorial 9 Using Action Queries and Advanced Table Relationships.
Exploring Microsoft Access Chapter 6 Many-to-Many Relationships: A More Complex System.
Microsoft Access 2013 ®® Tutorial 10 Automating Tasks with Macros.
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.
Microsoft Access 2010 Chapter 3 Maintaining a Database.
Microsoft Access 2013 ®® Tutorial 12 Managing and Securing a Database.
1 CHƯƠNG 4 Creating Relational Databases Understanding Table Relationships Example: This database tracks customers and their orders in two separate.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
® Microsoft Access 2010 Tutorial 9 Using Action Queries and Advanced Table Relationships.
Chapter 6 Many-to Many Relationship. Agenda AutoNumber Many-to-many relationship Cascaded updating and deleting Auto Lookup Parameter query Total query.
1 Management Information Systems M Agung Ali Fikri, SE. MM.
® Microsoft Access 2010 Tutorial 9 Using Action Queries and Advanced Table Relationships.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
and Defining Table Relationships
Objectives Create an action query to create a table
CIS 155 Table Relationship
Tutorial 4 Creating Forms and Reports
Microsoft Office Access 2003
MS Access: Using Advanced Query Features
Microsoft Office Access 2003
Relational Queries (query 12) Display vendor contact info (contact person and phone number) for inventory products (relationship query) Query: Inventory.
Chapter 9 Query-by-Example Pearson Education © 2009.
Chapter 9 - Action Queries
Tutorial 9 Using Action Queries and Advanced Table Relationships
New Perspectives on Microsoft
Presentation transcript:

Microsoft Access 2013 ®® Tutorial 9 Using Action Queries and Advanced Table Relationships

XP Objectives Session 9.1 – Create an action query to create a table – Create action queries to append, delete, and update data Session 9.2 – Define many-to-many and one-to-one relationships between tables – Learn about joining tables – Join a table using a self-join – View and create indexes for tables New Perspectives on Microsoft Access 20132

XP Using Action Queries and Advanced Table Relationships Case - Chatham Community Health Services Enhancing User Interaction with the Health Database User wants to enhance the database by creating some advanced queries and integrating more tables into the database Tasks include: Creating Action Queries Creating relationships between database tables Defining M:N and 1:1 Relationships Between Tables Joining Tables Using Indexes for table fields Viewing existing indexes New Perspectives on Microsoft Access 20133

XP Using Action Queries and Advanced Table Relationships (Cont.) New Perspectives on Microsoft Access 20134

XP New Perspectives on Microsoft Access Using Action Queries and Advanced Table Relationships (Cont.)

XP New Perspectives on Microsoft Access Using Action Queries and Advanced Table Relationships (Cont.)

XP New Perspectives on Microsoft Access Using Action Queries and Advanced Table Relationships (Cont.)

XP Action Queries New Perspectives on Microsoft Access Action Query – A query that adds, changes, or deletes multiple table records at a time – Make Table Query Creates a new table by copying records from one or more existing tables – Append Query Adds records from existing tables or queries to the end of another table – Delete Query Deletes a group of records matching the criteria you specify from one or more tables

XP Action Queries (Cont.) New Perspectives on Microsoft Access History Table – Contains data that is no longer needed for current processing but that you might need to reference in the future

XP Action Queries (Cont.) New Perspectives on Microsoft Access Creating a Make Table Query

XP Action Queries (Cont.) New Perspectives on Microsoft Access

XP Action Queries (Cont.) New Perspectives on Microsoft Access

XP Action Queries (Cont.) New Perspectives on Microsoft Access

XP Action Queries (Cont.) New Perspectives on Microsoft Access Creating an Append Query

XP Action Queries (Cont.) New Perspectives on Microsoft Access

XP Action Queries (Cont.) New Perspectives on Microsoft Access

XP Action Queries (Cont.) New Perspectives on Microsoft Access Creating a Delete Query

XP Action Queries (Cont.) New Perspectives on Microsoft Access

XP Action Queries (Cont.) New Perspectives on Microsoft Access

XP Action Queries (Cont.) New Perspectives on Microsoft Access

XP Action Queries (Cont.) New Perspectives on Microsoft Access Creating an Update Query

XP Action Queries (Cont.) New Perspectives on Microsoft Access

XP Action Queries (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Many-to-Many Relationships – Abbreviated M:N – When you have a many-to-many relationship between two tables, you must create a third table, known as a relationship table, and form one-to many relationships between the two original primary tables and the relationship table – When you join tables that have a many-to-many relationship, you can extract data from them as if they were one larger table Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP One-to-One Relationships – Abbreviated 1:1 – Each record in the first table matches at most one record in the second table, and each record in the second table matches at most one record in the first table – An entity subtype is a table whose primary key is a foreign key to a second table and whose fields are additional fields for the second table Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Defining M:N and 1:1 Relationships Between Tables Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Joining Tables – Inner Join A join in which the DBMS selects records from two tables only when the records have the same value in the common field that links the tables – Outer Join A join in which the DBMS selects all records from one table and only those records from a second table that have matching common field values Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access – Self Join A table that is joined with itself Can be either an inner or outer join – Imagine a situation where there are multiple supervisors, and each of the supervisors also has a supervisor – Separate tables for supervisors would be very confusing – The supervisors are also employees, and thus the EmployeeID for a supervisor is entered in the SupervisorID field – This is a case where a self-join would be used

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP – Creating a Self Join Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access – Using Indexes for Table Fields An index is a list that relates field values to the records that contain those field values Access automatically creates and maintains an index for a table’s primary key

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access Viewing Existing Indexes

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access Creating an Index

XP Relationships Between Database Tables (Cont.) New Perspectives on Microsoft Access