Access: Queries III Participation Project

Slides:



Advertisements
Similar presentations
Introduction to Excel Formulas, Functions and References.
Advertisements

With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Concepts of Database Management Seventh Edition
Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
Tutorial 7: Using Advanced Functions and Conditional Formatting
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Query-By-Example (QBE) 2440: 180 Database Concepts.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
Chapter 2 Querying a Database
Mary K. Olson PS Reporting Instance – Query Tool 101.
Concepts of Database Management Sixth Edition
Microsoft Access 2010 Chapter 7 Using SQL.
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Chapter 2 Querying a Database
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,
Concepts of Database Management, Fifth Edition
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Access Committed to Shaping the Next Generation.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
CS&E 1111 AcQueries Querying in Access Sorting data Aggregating Data Performing Calculations Objectives: Learn how to use the Access Query Design Tool.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
Analyzing Data For Effective Decision Making Chapter 3.
Concepts of Database Management Seventh Edition
Concepts of Database Management Seventh Edition
 Agenda 2/20/13 o Review quiz, answer questions o Review database design exercises from 2/13 o Create relationships through “Lookup tables” o Discuss.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T7 PROBLEM SOLVING USING ACCESS.
Tutorial 9 Using Action Queries and Advanced Table Relationships.
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.
Concepts of Database Management Eighth Edition Chapter 3 The Relational Model 2: SQL.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T7: Problem Solving Using Access 2007 Business Driven Technology.
XP. Objectives Sort data and filter data Summarize an Excel table Insert subtotals into a range of data Outline buttons to show or hide details Create.
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.
DAY 17: ACCESS CHAPTER 2-3 RAHUL KAVI October 17,
Today’s Goals Answer questions about homework and lecture 2 Understand what a query is Understand how to create simple queries using Microsoft Access 2007.
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.
Access Queries Agenda 6/16/14 Review Access Project Part 1, answer questions Discuss queries: Turning data stored in a database into information for decision.
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.
® Microsoft Access 2010 Tutorial 9 Using Action Queries and Advanced Table Relationships.
Computer Science & Engineering 2111 Inner Joins and Advanced Queries 1CSE 2111 Lecture-Advanced Queries.
® Microsoft Access 2010 Tutorial 9 Using Action Queries and Advanced Table Relationships.
Querying in Access Objectives: Learn how to use the Access Query Design Tool manipulate data in Access: Sorting data Aggregating Data Performing Calculations.
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Access Chapter 2 Querying a Database.
Plug-In T7: Problem Solving Using Access 2007
Objectives Create an action query to create a table
Microsoft Office Illustrated
Microsoft Office Access 2003
Microsoft Office Access 2003
GO! with Microsoft® Access e
Tutorial 3 – Querying a Database
Microsoft Office Access 2003
Microsoft Official Academic Course, Access 2016
Access: SQL Participation Project
Excel: Formulas & Functions I Participation Project
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Exploring Microsoft® Office 2016 Series Editor Mary Anne Poatsy
Creating Noninput Items
Excel: Formulas & Functions I Participation Project
Access: Access Basics Participation Project
Access: Queries IV Participation Project
Access: Queries II Participation Project
Access: Queries I Participation Project
Access: Forms Participation Project
Query Functions.
Access: Reports Participation Project
Joins and other advanced Queries
Microsoft Office Illustrated Fundamentals
Tutorial 9 Using Action Queries and Advanced Table Relationships
New Perspectives on Microsoft
Presentation transcript:

Access: Queries III Participation Project WV K-12 Education Problem WV Senate Problem

Topics Covered Use grouping in a query Use IIF function in a calculated field Set criteria on fields not displayed in query results Use an outer join in a query

Grouping: Part 1 Grouping (Totals option in Access) summarizes values in a database. Finds averages, sums (totals), minimums, maximums, and other measures Records are collected into sets for each combination of the grouped fields, then the statistics are calculated for each set. For example, we can find out how many schools are of a particular type using the Count option

Grouping: Part 2 The following total row grouping functions are available: Sum: Adds the items in the column Avg: Calculates average value of column Min: Shows item with the lowest value Max: Shows item with the highest value Count: Counts the number of items in column StDev: Calculates standard deviation Var: Calculates variance First: Shows value of first record Last: Shows value of last record Expression: Used with a formula or IIF() Where: Used when column is not shown

Use Grouping in a query Open the query in Design View. Go to the Table Tools Design ribbon. In the Show/Hide section, click the Totals button. Go to the new Total row in the design grid and choose the desired grouping function. Use Group By for fields that will define the groups Choose calculated function for statistics on other fields

IIF Function The IIF() function creates conditional output. Similar to an IF() function in Excel Evaluates an expression and displays one value when expression is true and another value when false Three parts: question, what to do if yes, what to do if no Syntax: IIf(«expression», «truepart», «falsepart»)

Use IIF Function in a Calculated field: Part 1 Open the query in Design View. Click in an empty column. Go to the Query Tools Design ribbon. Click the Builder button.

Use IIF Function in a Calculated field: Part 2 In the Expression box, enter ColumnName:, substituting what you wish to name the column. Then, enter IIf(«expression», «truepart», «falsepart») and substitute values as appropriate. Using the Expression Elements items near the bottom of the dialog box can help avoid spelling errors when referencing fields Click the OK button when done.

Hide Display of Fields In order to sort by a field or use it in criteria, we must add it to the query’s field grid. We can hide (un-show) a field if we do not wants its values to display in the results when the query is run. To hide a view, uncheck its Show checkbox.

Use An Outer Join in a query: Part 1 By default, queries only display records from related tables when there are matching records in both tables. In some cases, you might want to display results with matching records and missing values. This is called an outer join. With the query open in Design View, right-click on the join line for the relationship that needs modified. Select Join Properties from the menu.

Use An Outer Join in a query: Part 2 In the Join Properties dialog box, select the option corresponding with the results you wish to display. Option #1 is an inner join, where there must be corresponding values in each table for the record to display Options #2 and #3 are outer joins, where the results from one table call be missing or null Access does not support full outer joins, where results can either table can be missing or null Click the OK button when done.

Use An Outer Join in a query: Part 3 When the query is run, you may see missing or null values. In the example to the right, there are no “other” type schools so the county of that school type is 0. If we had not set to display all SchoolTypes records, the “Other” type wouldn’t have been shown at all.