Microsoft Office 2007- Illustrated Building and Using Queries.

Slides:



Advertisements
Similar presentations
Microsoft Office Illustrated Creating Multiple Table Queries.
Advertisements

Jeopardy Objects Navigation Buttons True/False Parts of a Report Vocabulary Q $100 Q $200 Q $300 Q $400 Q $500 Q $100 Q $200 Q $300 Q $400 Q $500 Final.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Access Lesson 8 Using Advanced Queries Microsoft Office 2010 Advanced Cable / Morrison 1.
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Chapter 5 Creating, Sorting, and Querying a Table
Microsoft Office 2007 Access Chapter 2 Querying a Database.
® Microsoft Office 2010 Word Tutorial 3 Creating a Multiple-Page Report.
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.
Microsoft Access 2010 Chapter 7 Using SQL.
Access Tutorial 3 Maintaining and Querying a Database
Access Lesson 4 Creating and Modifying Forms
Chapter 2 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.
Chapter 3 Maintaining a Database
Maintaining and Querying a Database Microsoft Access 2010.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
Scis.regis.edu ● CIS 206: Business Software Applications Week 6 Dr. Jesús Borrego Regis University 1.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
Using Forms. Objectives Use the Form WizardUse the Form Wizard Create a split formCreate a split form Use Form Layout ViewUse Form Layout View Add fields.
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.
© 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 6 – Designing.
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 2007 Access Chapter 2 Querying a Database.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 7 BACKNEXTEND 7-1 LINKS TO OBJECTIVES Filtering Data Removing a Filter Filter by Selection.
® 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.
® Microsoft Office 2013 Access Creating a Database.
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.
COMPREHENSIVE Access Tutorial 3 Maintaining and Querying a Database.
Microsoft Office XP Illustrated Introductory, Enhanced Tables and Queries Using.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
® 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.
Microsoft Office 2010 for Medical Professionals - Illustrated Access 2010 Unit B: Building and Using Queries.
Microsoft Access 2010 Chapter 4 Creating Reports and Forms.
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.
1 Access Lesson 2 Creating Queries, Forms, and Reports Microsoft Office 2007 Fundamentals Story / Walls.
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 2 ® Building Queries.
Access Maintaining and Querying a Database
Microsoft Office Illustrated Introductory, Windows Vista Edition
Access Tutorial 3 Maintaining and Querying a Database
Plug-In T7: Problem Solving Using Access 2007
Querying a Database Using the Select Query Window
Access Maintaining and Querying a Database
Microsoft Access 2003 Illustrated Complete
Building and Using Queries
Microsoft Office Illustrated Introductory, Windows XP Edition
Microsoft Office Illustrated Introductory, Windows XP Edition
Lesson 13 Working with Tables
Assignment 3 Querying and Maintaining a Database
Presentation transcript:

Microsoft Office Illustrated Building and Using Queries

Objectives Create a queryCreate a query Use Query Design ViewUse Query Design View Modify queriesModify queries Sort and find dataSort and find data(continued) Microsoft Office 2007-Illustrated

Objectives Filter dataFilter data Apply AND criteriaApply AND criteria Apply OR criteriaApply OR criteria Format a datasheetFormat a datasheet Microsoft Office 2007-Illustrated

Creating a Query A query allows you to “ask” for only the information you want vs. navigating through all the fields and records of large tablesA query allows you to “ask” for only the information you want vs. navigating through all the fields and records of large tables You can enter, edit and navigate data in a query datasheet just like a table datasheetYou can enter, edit and navigate data in a query datasheet just like a table datasheet Query = logical view of the dataQuery = logical view of the data Microsoft Office 2007-Illustrated

Creating a Query One way to create a query is by using the Simple Query WizardOne way to create a query is by using the Simple Query Wizard The Wizard asks you questions to determine the information you wantThe Wizard asks you questions to determine the information you want Microsoft Office 2007-Illustrated

Simple Query Wizard: Selecting Fields Microsoft Office 2007-Illustrated

Using Query Design View Microsoft Office 2007-Illustrated Another way to create a query is by using Query Design ViewAnother way to create a query is by using Query Design View You also use Query Design View to edit an existing queryYou also use Query Design View to edit an existing query Query Design View presents the fields you can choose from in Field ListsQuery Design View presents the fields you can choose from in Field Lists

Using Query Design View Microsoft Office 2007-Illustrated If 2 or more related tables are used, their relationship is shown with a join lineIf 2 or more related tables are used, their relationship is shown with a join line

Switching Between Query Design View & Datasheet View Microsoft Office 2007-Illustrated

Modifying Queries Microsoft Office 2007-Illustrated Work in Design ViewWork in Design View Upper pane of Design View window shows field listsUpper pane of Design View window shows field lists Lower pane of Design View window is used to add, delete or change the order of fieldsLower pane of Design View window is used to add, delete or change the order of fields

Modified Query Microsoft Office 2007-Illustrated

Sorting and Finding Data Microsoft Office 2007-Illustrated Works the same way for queries as it does for tablesWorks the same way for queries as it does for tables Data can be sorted by clicking the list arrow on a datasheet’s column heading, then click a sorting optionData can be sorted by clicking the list arrow on a datasheet’s column heading, then click a sorting option Data can also be sorted by using the Sort and Find buttons on the Home tabData can also be sorted by using the Sort and Find buttons on the Home tab

Sort and Find Buttons Microsoft Office 2007-Illustrated

Filtering Data Microsoft Office 2007-Illustrated Filters provide a temporary way to display a subset of records that match given criteriaFilters 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 not used to calculate sums, averages, counts, etc. Filters are removed when the datasheet is closedFilters are removed when the datasheet is closed Filters can, however, be saved as queriesFilters can, however, be saved as queries

Filtering Data Microsoft Office 2007-Illustrated Filter By Selection: Filtering by a given field value. Filters records for an exact match.Filter By Selection: Filtering by a given field value. Filters records for an exact match. Filter By Form: Filters by comparative dataFilter By Form: Filters by comparative data

Wildcards Microsoft Office 2007-Illustrated Used to search for a pattern; represents any characterUsed to search for a pattern; represents any character Entered as criteriaEntered as criteria ? Used to search for a single character? Used to search for a single character * Used to search for any number of characters* Used to search for any number of characters

Applying AND Criteria Microsoft Office 2007-Illustrated AND criteria means all criteria must be true for the record to be selectedAND 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 gridCreated by entering 2 or more criteria in the same Criteria row of the query design grid

Criteria Syntax Microsoft Office 2007-Illustrated Quotation marks (“) around text criteria and pound signs (#) around date criteria are automatically added by AccessQuotation 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 charactersCriteria in Number, Currency, and Yes/No fields are not surrounded by any characters

Searching for Blank Fields Microsoft Office 2007-Illustrated 2 common criteria are Is Null and Is Not Null2 common criteria are Is Null and Is Not Null Is Null – Finds all records where no entry has been madeIs 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)Is Not Null – Finds all records where any entry has been made (even if zero)

Example of AND Criteria Microsoft Office 2007-Illustrated

Comparison Operators Microsoft Office 2007-Illustrated

Applying OR Criteria Microsoft Office 2007-Illustrated OR criteria means any one criterion must be true for the record to be selectedOR 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 gridCreated 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 ORAlso created by entering 2 or more criteria in the same Criteria cell separated by OR

Applying OR Criteria Microsoft Office 2007-Illustrated

Formatting a Datasheet Microsoft Office 2007-Illustrated Can: Change font size, font face, colors, gridlinesCan: Change font size, font face, colors, gridlines Cannot: Add custom headers, footers, images, subtotalsCannot: Add custom headers, footers, images, subtotals

Example of Formatted Datasheet Microsoft Office 2007-Illustrated

Summary Create queries to answer “questions” about your dataCreate queries to answer “questions” about your data Use table and query datasheets to view, sort, filter, and find dataUse table and query datasheets to view, sort, filter, and find data AND / OR criteria are used to filter dataAND / OR criteria are used to filter data Filters are temporary; queries are permanent objectsFilters are temporary; queries are permanent objects