Building and Using Queries

Slides:



Advertisements
Similar presentations
Microsoft Office Illustrated Building and Using Queries.
Advertisements

Access Lesson 8 Using Advanced Queries Microsoft Office 2010 Advanced Cable / Morrison 1.
Chapter 5 Creating, Sorting, and Querying a Table
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 2 Querying a Database Using the Select Query Window.
Access Tutorial 3 Maintaining and Querying a Database
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 3 1 Microsoft Office Access 2003 Tutorial 3 – Querying a Database.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
Querying a Database Microsoft Office Access 2003.
Microsoft Access 2010 Chapter 7 Using SQL.
Access Tutorial 3 Maintaining and Querying a Database
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
Maintaining and Querying a Database Microsoft Access 2010.
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,
Scis.regis.edu ● CIS 206: Business Software Applications Week 6 Dr. Jesús Borrego Regis University 1.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Access 2003 Lab 3 Analyzing Data and Creating Reports.
Building and Using Queries. Objectives Use the Query WizardUse the Query Wizard Work with data in a queryWork with data in a query Use Query Design ViewUse.
Microsoft Access 2010 Building and Using Queries.
Analyzing Data For Effective Decision Making Chapter 3.
Lesson 2.  To help ensure accurate data, rules that check entries against specified values can be applied to a field. A validation rule is applied to.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
Microsoft Access Illustrated Unit B: Building and Using Queries.
Microsoft Office Illustrated Introductory, Premium Edition Using Tables and Queries.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Excel 2010 © 2011 The McGraw-Hill Companies,
® Microsoft Access 2010 Tutorial 3 Maintaining and Querying a Database.
1 Database Systems Introduction to Microsoft Access Part 2.
COMPREHENSIVE Access Tutorial 3 Maintaining and Querying a Database.
Microsoft Office XP Illustrated Introductory, Enhanced Tables and Queries Using.
® Microsoft Office 2013 Access Maintaining and Querying a Database.
ACCESS Part 2. OBJECTIVE  Use the Query Wizard.  Work with data in a query.  Use Query Design View.  Sort and find data.  Filter data Apply AND criteria.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Concepts of Database Management Eighth Edition Chapter 3 The Relational Model 2: SQL.
Microsoft Office 2010 for Medical Professionals - Illustrated Access 2010 Unit B: Building and Using Queries.
Chapter 6 Creating, Sorting, and Querying a Table
CREATING DATABASE Presenter: Jolanta Soltis. When to use Excel Use Excel when you: –Require a flat or non-relational view of your data (you do not need.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Microsoft® Excel Create an Excel table. 1 Work with the Table Tools Design tab. 2 Sort and filter records in a table. 3 Identify structured references.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 5 1 Microsoft Office Access 2003 Tutorial 5 – Enhancing a Table’s Design.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 2 ® Building Queries.
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.
Microsoft ® Excel ® 2013 Enhanced Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts.
1 New Perspectives on Microsoft Access 2016 Module 4: Creating Forms and Reports.
Microsoft Office Access 2010 Lab 3
Maintaining a Database Using the Design and Update Features of Access
Access Maintaining and Querying a Database
Microsoft Office Illustrated Introductory, Windows Vista Edition
Practical Office 2007 Chapter 10
Access Tutorial 3 Maintaining and Querying a Database
Objectives Query for top values Create a parameter query
Analyzing Table Data.
Querying a Database Using the Select Query Window
Microsoft Access 2003 Illustrated Complete
Access Maintaining and Querying a Database
Microsoft Access 2003 Illustrated Complete
Using Reports © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Microsoft Office Access 2003
Tutorial 3 – Querying a Database
Microsoft Office Access 2003
Microsoft Office Access 2003
Microsoft Office Illustrated Introductory, Windows XP Edition
Shelly Cashman: Microsoft Access 2016
Shelly Cashman: Microsoft Access 2016
Unit J: Creating a Database
Lesson 13 Working with Tables
Assignment 3 Querying and Maintaining a Database
New Perspectives on Microsoft
Presentation transcript:

Building and Using Queries © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Objectives Use the Query Wizard Work with data in a query Use Query Design View Sort and find data (continued) Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Objectives (continued) Filter data Apply AND criteria Apply OR criteria Format a datasheet Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Use the Query Wizard A query allows you to select a subset of fields and records from one or more tables and then present the selected data as a single datasheet Because a query doesn’t physically store the data, a query datasheet is sometimes called a logical view of the data Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Use the Query Wizard Technically, a query is a set of SQL (Structured Query Language) instructions, but because you can use Access query tools such as Query Design View, you are not required to know SQL to build or use Access queries Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Use the Query Wizard Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Work with Data in a Query You enter and edit data in a query datasheet the same way you do in a table datasheet Any edits you make in a query datasheet are permanently stored in the underlying tables, and are automatically updated in all views of the data in other queries, forms, and reports Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Working with Data in a Query Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Use Query Design View Use Query Design View to: Add, delete, or move the fields in an existing query, to specify sort orders, or to add criteria to limit the number of records shown in the resulting datasheet Create a new query from scratch Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Use Query Design View Query Design View presents the fields you can use for that query in small windows called field lists If you use the fields of two or more related tables in the query, the relationship between two tables is displayed with a join or link line identifying which fields are used to establish the relationship Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Use Query Design View Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Sort and Find Data The Access sort and find features are handy tools that help you quickly organize and find data in a table or query datasheet. Data can be sorted by clicking the list arrow on a datasheet’s column heading, then click a sorting option Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Sort and Find Data Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Sort and Find buttons Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Filter Data Filters provide a temporary way to display a subset of records that match given criteria Filters are not used to calculate sums, averages, counts, etc. Filters are removed when the datasheet is closed Filters can, however, be saved as queries Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Filtering Data Filter By Selection: Filtering by a given field value. Filters records for an exact match. Filter By Form: Filters by comparative data Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Wildcards Used to search for a pattern; represents any character Entered as criteria ? Used to search for a single character * Used to search for any number of characters Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Filters vs. Queries Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Apply AND Criteria AND criteria means all criteria must be true for the record to be selected Created by entering 2 or more criteria in the same Criteria row of the query design grid Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Criteria Syntax Quotation marks (“) around text criteria and pound signs (#) around date criteria are automatically added by Access Criteria in Number, Currency, and Yes/No fields are not surrounded by any characters Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Searching for Blank Fields 2 common criteria are Is Null and Is Not Null Is Null – Finds all records where no entry has been made Is Not Null – Finds all records where any entry has been made (even if zero) Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Comparison Operators Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Apply OR Criteria OR criteria means any one criterion must be true for the record to be selected Created by entering 2 or more criteria on different Criteria rows of the query design grid Also created by entering 2 or more criteria in the same Criteria cell separated by OR Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Apply OR Criteria Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Format a Datasheet Can: Change font size, font face, colors, gridlines Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Formatting a Datasheet Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.

Summary Using the Query Wizard Working with data in a query Using Query Design View Sorting and finding data Filtering data Applying AND criteria Applying OR criteria Formatting a datasheet Enhanced Microsoft Office 2013-Illustrated © 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.