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.

Slides:



Advertisements
Similar presentations
Microsoft® Access® 2010 Training
Advertisements

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
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
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.
Querying a Database Microsoft Office Access 2003.
Access Tutorial 4 Creating Forms and Reports
Access Tutorial 4 Creating Forms and Reports
Access Tutorial 3 Maintaining and Querying a Database
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.
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.
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.
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 ® 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.
Access 2013 Microsoft Access 2013 is a database application that is ideal for gathering and understanding data that’s been collected on just about anything.
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 #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.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
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 III: Build relationships for a new Access database Overview: You can relate This course teaches you how to build relationships between.
You can sort Access data so you can view records in the order you want to view them, and you can filter data so you only see the records you want to see.
1 Lesson 18 Managing and Reporting Database Information Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
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.
Classwork: Common Errors Primary keys: don’t forget them! Primary keys: choose the best one! – “Name” and “birthday” are not the best choices. – “Phone.
Modify Tables and FieldsModify Tables and Fields Lesson 4 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft.
Key Applications Module Lesson 22 — Managing and Reporting Database Information Computer Literacy BASICS.
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.
1 Access Lesson 2 Creating Queries, Forms, and Reports Microsoft Office 2010 Fundamentals Story / Walls.
Datasheets II: Sum, sort, filter, and find your data – Easy math, sorts, and searches Lesson 19 By the end of this lesson you will be able to complete.
Microsoft Access 2013 Bobby Wan.
Objectives Query for top values Create a parameter query
Plug-In T7: Problem Solving Using Access 2007
Objectives Create an action query to create a table
Access Creating Forms and Reports
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:

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 tools in your database. Say you want to know how many computers you own. You can build a query to fetch that data and total the numbers. Queries can also provide data for your forms and reports, which can help make your database easier to build and use. This course introduces queries and explains how to create the most common type, a select query.

Build a database IV: Create queries for a new Access database 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, 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 a text expression to concatenate fields.

Build a database IV: Create queries for a new Access database Get answers from your data Your new asset- tracking database is coming along. You have tables, relationships, and data, so the next step is to build some queries. Specifically, you’ll create select queries. They’re components that retrieve and process your data and display the results in a datasheet. The query in the picture 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.

Build a database IV: Create queries for a new Access database The basics of creating select queries Access provides two primary ways to create select queries — the Query Wizard and the Query Designer. Regardless of the tool you use, you follow some common steps to create the query. Start by choosing a recordsource for the query. A recordsource can be one or more tables, one or more queries, or a combination of the two. From the recordsource, select the fields that you want to see in the query.

Build a database IV: Create queries for a new Access database The basics of creating select queries Access provides two primary ways to create select queries — the Query Wizard and the Query Designer. Regardless of the tool you use, you follow some common steps to create the 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 After you finish adding fields and any selection criteria, run your query to see if it gives you the correct results.

Build a database IV: Create queries for a new Access database Ways to use query results When you run a select query, Access displays the results in a datasheet. The result is called a recordset, 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 recordsources for your query.

Build a database IV: Create queries for a new Access database Ways to use query results You can also use your recordsets 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.

Build a database IV: Create queries for a new Access database Query a single recordsource 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 recordsource.

Build a database IV: Create queries for a new Access database Query a single recordsource For example, this type of query makes it easy to list your assets and their purchase dates, as shown here. On the Create tab, in the Other group, click Query Design. The designer starts and displays the Show Table dialog box. In the dialog box, select your recordsource. You can use a combination of tables and queries, and the ones you select appear in the upper section of the designer.

Build a database IV: Create queries for a new Access database Query a single recordsource For example, this type of query makes it easy to list your assets and their purchase dates, as shown here. In your recordsource, double-click the fields that you want to see in your recordset, or results. Your choices appear in the bottom section of the designer. When you finish adding fields, go to the Design tab on the Ribbon, and in the Results group, click Run. Your record then appears as a datasheet.

Build a database IV: Create queries for a new Access database Make a query ask you for input 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. So if, say, you only want to see records between certain dates, you can add parameters that make the query ask you for starting and ending dates. The query will give you just the records that fall between those dates.

Build a database IV: Create queries for a new Access database Make a query ask you for input In other words, parameters are a type of filter that you build in to your query. Open the query in Design view, and in the Criteria row of the field you want to filter, enter your parameter. 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.

Build a database IV: Create queries for a new Access database Use a formula 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.

Build a database IV: Create queries for a new Access database Use a formula in a query The picture shows the process. 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.

Build a database IV: Create queries for a new Access database Use a formula in a query The picture shows the process. When you run your query, the results include your calculation.

Build a database IV: Create queries for a new Access database Query multiple recordsources Finally, you can use multiple tables, or other queries, as the recordsource for a new query. The Query Wizard is the easiest way to do that type of job, especially if you’re new to Access. This type of query is a way to answer questions such as which assets came from which suppliers.

Build a database IV: Create queries for a new Access database Query multiple recordsources The picture shows the process. On the Create tab, in the Other group, click Query Wizard. Complete the wizard. As part of that process, select the tables and fields you want to use as your recordsource, and...

Build a database IV: Create queries for a new Access database Query multiple recordsources The picture shows the process. Give your new query a descriptive name. Remember to avoid using spaces in the name.