Microsoft Access 2010- Illustrated Unit B: Building and Using Queries.

Slides:



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

Microsoft Office Illustrated Building and Using Queries.
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.
Chapter 5 Creating, Sorting, and Querying a Table
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.
Concepts of Database Management Sixth Edition
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.
Chapter 3 Maintaining a Database
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,
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.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Access 2003 Lab 3 Analyzing Data and Creating Reports.
CSS/417 Introduction to Database Management Systems Workshop 2.
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 2010 Access Tutorial 3 Maintaining and Querying a Database.
Concepts of Database Management Seventh Edition
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
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.
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.
Reports and Queries Chapter 3 – Access text Reports – Page Queries – Page
Microsoft Office 2010 for Medical Professionals - Illustrated Access 2010 Unit B: Building and Using Queries.
Chapter 6 Creating, Sorting, and Querying a Table
Intro to Excel - Session 5.21 Tutorial 5 - Session 5.2 Working with Excel Lists.
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.
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
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.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6 – Creating Custom Forms.
Improving Queries. Objectives Create multitable queriesCreate multitable queries Apply sorts and view SQLApply sorts and view SQL Develop AND criteriaDevelop.
Access Maintaining and Querying a Database
Microsoft Office Illustrated Introductory, Windows Vista Edition
Access Tutorial 3 Maintaining and Querying a Database
Objectives Query for top values Create a parameter query
Access Maintaining and Querying a Database
Microsoft Access 2003 Illustrated Complete
Building and Using Queries
Microsoft Office Access 2003
Tutorial 3 – Querying a Database
Microsoft Office Access 2003
Microsoft Office Illustrated Introductory, Windows XP Edition
Lesson 13 Working with Tables
Assignment 3 Querying and Maintaining a Database
Presentation transcript:

Microsoft Access Illustrated Unit B: 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 Query Design View Sort and find dataSort and find data(continued) Microsoft Office 2010-Illustrated2

Objectives (continued) Filter dataFilter data Apply AND criteriaApply AND criteria Apply OR criteriaApply OR criteria Format a datasheetFormat a datasheet Microsoft Office 2010-Illustrated3

Using 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 datasheetA 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 dataBecause a query doesn’t physically store the data, a query datasheet is sometimes called a logical view of the data Microsoft Office 2010-Illustrated4

Using 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 queriesTechnically, 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 Microsoft Office 2010-Illustrated5

Using the Query Wizard Using the Query Wizard Page 27 Figure B-1 Microsoft Office 2010-Illustrated6

Working with Data in a Query You enter and edit data in a query datasheet the same way you do in a table datasheetYou 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 reportsAny 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 Microsoft Office 2010-Illustrated7

Working with Data in a Query Working with Data in a Query Page 29 Figure B-3 Microsoft Office 2010-Illustrated8

Using Query Design View Use Query Design View to: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 datasheetAdd, 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 scratchCreate a new query from scratch Microsoft Office 2010-Illustrated9

Using Query Design View Query Design View presents the fields you can use for that query in small windows called field listsQuery 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 relationshipIf 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 Microsoft Office 2010-Illustrated10

Using Query Design View Using Query Design View Page 31 Figure B-5 Microsoft Office 2010-Illustrated11

Sorting and Finding Data 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 Microsoft Office 2010-Illustrated12

Sorting and Finding Data Sorting and Finding Data Page 33 Figure B-7 Microsoft Office 2010-Illustrated13

Filtering Data 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 Microsoft Office 2010-Illustrated14

Filtering Data 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 Microsoft Office 2010-Illustrated15

Wildcards 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 Microsoft Office 2010-Illustrated16

Filters vs. Queries Filters vs. Queries Page 35 Table B-1 Microsoft Office 2010-Illustrated17

Applying AND Criteria 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 Microsoft Office 2010-Illustrated18

Criteria Syntax 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 Microsoft Office 2010-Illustrated19

Searching for Blank Fields 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) Microsoft Office 2010-Illustrated20

Comparison Operators Comparison Operators Page 37 Table B-2 Microsoft Office 2010-Illustrated21

Applying OR Criteria 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 Microsoft Office 2010-Illustrated22

Applying OR Criteria Applying OR Criteria Page 39 Figure B-15 Microsoft Office 2010-Illustrated23

Formatting a Datasheet 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 Microsoft Office 2010-Illustrated24

Formatting a Datasheet Formatting a Datasheet Page 41 Figure B-18 Microsoft Office 2010-Illustrated25

Summary Using the Query WizardUsing the Query Wizard Working with data in a queryWorking with data in a query Using Query Design ViewUsing Query Design View Sorting and finding dataSorting and finding data Filtering dataFiltering data Applying AND criteriaApplying AND criteria Applying OR criteriaApplying OR criteria Formatting a datasheetFormatting a datasheet Microsoft Office 2010-Illustrated26