By Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson, Linda Lau, Jerri Williams Chapter 6 Action and Specialized Queries 1.

Slides:



Advertisements
Similar presentations
Working with Tables 1 of 5. Working with Tables 2 of 5.
Advertisements

INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
Chapter 1 Getting Started with Access Databases. Objectives Identify Good Database Design Create a Table and Define Fields in a New Blank Database Change.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Chapter 7 Specialized Functions by Mary Anne Poatsy, Keith Mulbery, Eric Cameron,
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Chapter 11 Collaboration and Workbook Distribution by Mary Anne Poatsy, Keith Mulbery,
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson,
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson,
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson,
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Eric Cameron, Cyndi.
By Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson, Linda Lau, Jerri Williams Chapter 7 Advanced Forms and Reports 1 Copyright.
INSERT BOOK COVER 1Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast,
By Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson, Linda Lau, Jerri Williams Chapter 9 Fine-Tuning the Database 1 Copyright.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson,
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson,
By Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson, Linda Lau, Jerri Williams Chapter 8 Get Connected 1 Copyright © 2014.
By Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson, Linda Lau, Jerri Williams Chapter 5 Data Validation and Data Analysis.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
By Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson, Linda Lau, Jerri Williams Chapter 10 Using Macros and SQL in Access 1.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson,
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson,
Getting Started with Microsoft Access The Access Workbench: Section One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 1 by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson,
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Word 2010 by Robert Grauer, Michelle Hulett, and Mary.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson,
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 Committed to Shaping the Next Generation of IT Experts. Chapter 1: Finding Your.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Jason Davidson Chapter 10 Imports, Web Queries,
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 1 Workshop 1 The Four Main Database Objects Series Editor Amy Kinser.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 2 Workshop 4 Accessing, Maintaining, and Presenting Information Series.
Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 1 by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast, Mary Anne Poatsy Chapter.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast,
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 1 Workshop 2 Tables, Keys, and Relationships Series Editor Amy Kinser.
GO! with Office 2013 Volume 1 By: Shelley Gaskin, Alicia Vargas, and Carolyn McLellan Access Chapter 3 Forms, Filters, and Reports.
Copyright © 2008 Pearson Prentice Hall. All rights reserved Committed to Shaping the Next Generation of IT Experts. Chapter 7 Advanced Queries Robert.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 2 Workshop 3 Queries and Data Access Series Editor Amy Kinser by.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast, Mary Anne Poatsy Chapter.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 1 by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Committed to Shaping the Next Generation of IT Experts. Chapter 3: Customize, Analyze,
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson,
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Create, Edit,
Skills for Success with Microsoft Office 2013 Volume 1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Kris Townsend, Catherine.
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
Lesson 4: Querying a Database. 2 Learning Objectives After studying this lesson, you will be able to:  Create, save, and run select queries  Set query.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
1 11 Chapter 7 Action Queries Exploring Microsoft Office Access 2007.
GO! with Microsoft Office 2016
GO! with Microsoft Access 2016
Exploring Microsoft Office Access 2010
GO! with Microsoft® Access e
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Presentation transcript:

by Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson, Linda Lau, Jerri Williams Chapter 6 Action and Specialized Queries 1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

Determine when to use an action query Update data with an update query Add records to a table with an append query Create a table with a make table query Delete records with a delete query Summarize data with a crosstab query Find duplicate data records with a query Find unmatched records with a query 2 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

An action query adds, edits, or deletes data in a database Four main queries used to maintain a database: – Update query – Append query – Make Table query – Delete query 3 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

Recognize the benefits of an action query – Used when a user is required to enter the same information into many records – Used to move records from one table to another 4 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

Back up a database when testing an action query – Updates and deletions made by an action query cannot be undone – Back up database before running an action query 5 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

An update query changes data values in fields for records that meet specific criteria Example – changing area code Create a select query before running an update query to identify missing data 6 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

Test an update query – Test before running an update query to verify that the correct records will be updated – Once a query has run, it cannot be undone – Steps to test an update query: From Design view, click View in the Results group and click Datasheet View 7 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

Verify an Update Query – Running an action query does not display results – Test results by creating query to locate updated records – Another method is to locate original records prior to the update and verify that they no longer exist after the update query has run 8 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

An append query copies records from a source table and adds them to the destination table Appended records appear in primary key order If no primary key, appended records are added to end of the table 9 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

Rules for appending – Data types of fields in both tables must match – Normal rules for adding records apply – If field from source table does not exist in destination table, Access leaves a blank in the Append To row – Destination table should not contain an AutoNumber field 10 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

Create a select query before running an append query – To identify data to append Records to be appended: 11 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

Set Append To fields in an append query – Append To row appears in query design grid to identify destination fields 12 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

Source field, Append To row, destination field: 13 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

A make table query selects records from one or more tables and creates a new table Create a make table query – Similar to creating an append query – Difference – structure is created then records added 14 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

Test and run a make table query – Preview and verify records in Datasheet view before running make table query 15 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

A delete query selects and removes records from a table Test and run a delete query – Preview and verify records to be deleted in Datasheet view before running delete query 16 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

A crosstab query summarizes a data source into a grid of rows and columns Intersections display aggregate data Shows trends in values over time Can be based on a table or query 17 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

Group and summarize data – Row headings display field names along the left side – Column headings display field names along the top – Summarization (aggregation) is at the intersection – Type of data depends on aggregate function Examples: count, sum, average 18 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

Use the crosstab query wizard – Almost always used – First identify data source – Only one object can be referenced – Must combine data in separate query to use fields from different data sources 19 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

Modify a crosstab query – Modifications made in Design view – Types of modifications: Change row or column heading fields Modify aggregate function Alter field selection for aggregate calculation Add/modify properties, fields, field order 20 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

Use a find duplicates query – A find duplicates query helps to identify duplicate values in a table – Useful for inherited databases with poor design 21 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

A find unmatched query compares records in two related tables Displays records found in one table, but not the other Example – gradebook 22 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

In this chapter you learned to: – Determine when to use an action query – Update data with an update query – Add records to a table with an append query – Create a table with a make table query – Delete records with a delete query – Summarize date with a crosstab query – Find duplicate data records with a query – Find unmatched records with a query 23 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

24 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall.

25 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America.