Microsoft ® Access ® 2010 Training Create Queries for a New Database If a yellow security bar appears at the top of the screen in PowerPoint, click Enable.

Slides:



Advertisements
Similar presentations
Build a database I: Design tables for a new Access database
Advertisements

Microsoft® Access® 2010 Training
Microsoft ® Office Access ® 2007 Training Build a database II: Create tables for a new Access database GPC presents:
Microsoft ® Access ® 2010 Training Create queries for a new database.
Microsoft® Access® 2010 Training
Microsoft ® Office Access ® 2007 Training Build a database VI: Create reports for a new Access database ICT Staff Development presents:
Microsoft® Office Access® 2007 Training
Microsoft ® Access ® 2010 Training Create Reports for a Database If a yellow security bar appears at the top of the screen in PowerPoint, click Enable.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Access Lesson 2 Creating a Database
Microsoft Office 2007 Access Chapter 2 Querying a Database.
Access Tutorial 3 Maintaining and 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.
Access Tutorial 1 Creating a Database
Access Tutorial 4 Creating Forms and Reports
Build a database IV: Create queries for a new Access database Overview: Ask your data — create queries It’s time to create queries, one of the most powerful.
Access 2007 ® Use Databases How can Microsoft Access 2007 help you to enter and organize information?
Before you begin If a yellow security bar appears at the top of the screen in PowerPoint, click Enable Editing. You need PowerPoint 2010 to view this presentation.
Microsoft® Access® 2010 Training
Microsoft ® Office Access ® 2007 Training Build a database III: Build relationships for a new Access database ICT Staff Development presents:
Datasheets II: Sum, sort, filter, and find your data Overview: Sum it up, and more Access 2007 makes it easier than ever to perform math functions on your.
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.
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.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
Lesson 31: Querying a Database. 2 Learning Objectives After studying this lesson, you will be able to:  Create, save, and run select queries  Design.
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.
Microsoft ® Office Access ® 2007 Training Datasheets II: Sum, sort, filter, and find your data ICT Staff Development presents:
Analyzing Data For Effective Decision Making Chapter 3.
Microsoft ® Office Access ® 2007 Training Build a database I: Design tables for a new Access database ICT Staff Development presents:
FIRST COURSE Access Tutorial 4 Creating Forms and Reports.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
Database Systems Microsoft Access Practical #2 Making Forms and Reports Nos 215.
Database Systems Microsoft Access Practical #3 Queries Nos 215.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making Chapter.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T7 PROBLEM SOLVING USING ACCESS.
® Microsoft Access 2010 Tutorial 3 Maintaining and Querying a Database.
COMPREHENSIVE Access Tutorial 3 Maintaining and Querying a Database.
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.
Access Forms and Queries. Entering Data in Your Table  You can add data to your table in Datasheet view, by typing in the columns and rows.  This.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T7: Problem Solving Using Access 2007 Business Driven Technology.
Database Applications – Microsoft Access Lesson 4 Working with Queries 36 Slides in Presentation.
What are queries? Queries are a way of searching for and compiling data from one or more tables. Running a query is like asking a detailed question of.
Microsoft Office 2013: In Practice Chapter 3 Creating and Using Queries Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Build a database V: Create forms for a new Access database Overview: A window into your data So far in this series of courses, you’ve built tables, relationships,
T7-1 LEARNING OUTCOMES – ACCESS PROBLEM SOLVING 1.Describe the process of using the Simple Query Wizard using Access 2.Describe the process of using the.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Build a database VI: Create reports for a new Access database Overview: Help others understand your data Previous courses in this series showed you how.
Modify Tables and FieldsModify Tables and Fields Lesson 4 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft.
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.
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T7: Problem Solving Using Access 2007 Business Driven Technology.
1 Access Lesson 2 Creating Queries, Forms, and Reports Microsoft Office 2010 Fundamentals Story / Walls.
Microsoft Access 2013 Bobby Wan.
Plug-In T7: Problem Solving Using Access 2007
GO! with Microsoft Office 2016
Larry Reaves October 9, 2013 Day 16: Access Chapter 2 Larry Reaves October 9, 2013.
Access Maintaining and Querying a Database
Access Tutorial 4 Creating Forms and Reports
Creating and Modifying Queries
Microsoft Office Access 2003
Access: Queries IV Participation Project
Access Tutorial 4 Creating Forms and Reports
Presentation transcript:

Microsoft ® Access ® 2010 Training Create Queries for a New Database If a yellow security bar appears at the top of the screen in PowerPoint, click Enable Editing. You need PowerPoint 2010 to view this presentation.

Course goals Use the Query Designer to create a select query that returns data from a single table. Create a select query that asks you to enter parameters and then returns results that match those parameters. Use a formula in a query to calculate a sum. Use the Query Wizard to create a select query that returns data from two tables. Use an expression to concatenate fields. Create queries for a new database

Get answers from your data Create queries for a new database The building blocks of a select query. Your new asset-tracking database is coming along. You have tables, relationships, and data, so the next step is to build some queries. They’ll help you answer important questions, and they’ll make it easier to create forms and reports.

Get answers from your data Create queries for a new database The building blocks of a select query. Specifically, you’ll create select queries. They’re components that retrieve and process your data and display the results in a datasheet. For example, if you want to know who to call when a computer needs repair, you create a query that extracts the relevant names and phone numbers.

Get answers from your data Create queries for a new database The building blocks of a select query. That’s what the picture shows. The query takes asset data from the first table, the names of technicians from the second table, and displays the result in a way that you can consume. Let’s start by looking at the parts of a query.

The basics of creating select queries Create queries for a new database The basic process for creating a query. Access provides two primary ways to create select queries — the Query Designer and the Query Wizard. Regardless of the tool you use, you follow some common steps when you create a select query.

The basics of creating select queries Create queries for a new database The basic process for creating a query. Start by choosing a record source for the query. A record source can be one or more tables, one or more queries, or a combination of the two. The picture shows a table open in the Query Designer. From the record source, select the fields that you want to see in the query. The picture shows fields in the Query Designer, but you do the same thing in the Query Wizard.

The basics of creating select queries Create queries for a new database The basic process for creating a query. Add any sorting, filtering, or other selection criteria to your queries. For example, if you use the criteria shown in the picture, the query will only return data for assets purchased after May First of You can also use criteria that make a query ask you for input before it runs; you’ll see that later in this course. After you finish adding fields and any selection criteria, run your query to see if it gives you the correct results.

Ways to use query results Create queries for a new database A query as the data source for a report. When you run a select query, Access displays the results in a datasheet. The result is called a record set, and you can work with it in the same way that you work with a datasheet. For example, you can add or change data, and Access will write your changes to the tables that serve as the record sources for your query.

Ways to use query results Create queries for a new database A query as the data source for a report. You can also use your record sets to provide data for forms, reports, and even other queries. For example, if you want a report on the computers that you need to replace, you can create a query that returns that data, and then quickly build your report. The picture shows this. The query returns only those records where an asset has been marked for retirement.

Ways to use query results Create queries for a new database A query as the data source for a report. The final two courses in this series show you how to create forms and reports that use queries as data sources. For now, remember that unlike tables, record sets don’t physically exist in your database. Instead, Access stores the query, and it only displays a record set when you run the query. So let’s build one. We’ll start with the Query Designer.

Query a single record source Create queries for a new database Using the Query Designer. The Query Designer gives you the most control over a select query. It also makes it easy to create a query that uses a single table as a record source. For example, this type of query makes it easy to list your assets and their purchase dates.

Query a single record source Create queries for a new database Using the Query Designer. Here’s the process. On the Create tab, in the Queries group, click Query Design. The designer starts and displays the Show Table dialog box. On the ribbon, the Design tab also appears. In the dialog box, select your record source. You can use a combination of tables and queries, and the ones you select appear in the upper section of the designer.

Query a single record source Create queries for a new database Using the Query Designer. In your record source, double-click the fields that you want to see in your record set, or results. Your choices appear in the bottom section of the designer. When you finish adding fields, go to the Design tab, and in the Results group, click Run. Your record set appears as a datasheet.

Make a query ask for input Create queries for a new database Using criteria in a query. The type of query that you created in the previous section can return a lot of data. A common way to limit what the query returns is to use a parameter. Put simply, parameters make the query ask for input before it runs; they are a type of filter that you build into your query.

Make a query ask for input Create queries for a new database Using criteria in a query. Here’s how to use parameters in your queries: Open the query in Design view, and in the Criteria row of the field you want to filter, enter your parameter. For example, you can use the criteria shown in the picture. When you run the query, that criteria asks you for a start date, then an end date, and it returns only the records that fall within the dates you specify.

Use a formula in a query Create queries for a new database Using a function in a query. Another common way to alter the selection criteria in a query is to add a function. For example, if you want to know how much your company spent on office furniture last year, you can add an aggregate function to the query and the sum will appear in your results.

Use a formula in a query Create queries for a new database Using a function in a query. Open your query in Design view. On the Design tab, in the Show/Hide group, click Totals. The Total row appears in the designer. In the field where you want to use the function, click the Total row and select a function from the list. When you run your query, the results include your calculation.

Query multiple record sources Create queries for a new database Using the Query Wizard to build a multi-source query. You can use multiple tables, or other queries, as the record source for a new query. In fact, you’ll query multiple record sources far more than you will single sources. Multi-source queries are how you answer questions such as which assets came from which suppliers. The Query Wizard is the easiest way to get started building multi- source queries, especially if you’re new to Access.

Query multiple record sources Create queries for a new database Using the Query Wizard to build a multi-source query. On the Create tab, in the Queries group, click Query Wizard. Complete the wizard. As part of that process, select the tables and fields you want to use as your record source, and… Give your new query a descriptive name, and remember to avoid using spaces in the name.

Suggestions for practice 1.Create a select query from a single table. 2.Make the query ask for your input (add a parameter). 3.Add a calculated field to a query. 4.Format the calculated field. 5.Create a query from multiple tables. 6.Concatenate fields with an expression. Create queries for a new database Online practiceOnline practice (requires Access 2010)

Quick Reference Card For a summary of the tasks covered in this course, view the Online Quick Reference Card.Quick Reference Card Create queries for a new database