1 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office Access 2007.

Slides:



Advertisements
Similar presentations
Working with Tables 1 of 5. Working with Tables 2 of 5.
Advertisements

Formulas, Ranges, and Functions. Formulas n Formulas perform operations such as addition, multiplication, and comparison on worksheet values. n Formulas.
Microsoft Office XP Microsoft Excel
Microsoft Office Illustrated Fundamentals Unit H: Using Complex Formulas, Functions, and Tables.
ACOT Intro/Copyright Succeeding in Business with Microsoft Excel 2010: Chapter1.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
® Microsoft Access 2010 Tutorial 5 Creating Advanced Queries and Enhancing Table Design.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Microsoft Access 2010 Chapter 7 Using SQL.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Access 2010 © 2011 The McGraw-Hill Companies,
Spreadsheets Objective 6.02
2 Explain advanced spreadsheet concepts and functions Advanced Calculations 1 Sabbir Saleh_Lecture_17_Computer Application_BBA.
Chapter 2 Basic SQL SELECT Statements
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
Lesson 31: Querying a Database. 2 Learning Objectives After studying this lesson, you will be able to:  Create, save, and run select queries  Design.
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.
Microsoft Access Intro Class 5 Working with Queries.
Queries. What is a query? A query is actually the name for any database manipulation operation. The most commonly used type is a select query, which is.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
 Continue queries ◦ You completed two tutorials with step-by-step instructions for creating queries in MS Access. ◦ Now must apply knowledge and skills.
Database Queries. Queries Queries are questions used to retrieve information from a database. Contain criteria to specify the records and fields to be.
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.
® Microsoft Access 2010 Tutorial 5 Creating Advanced Queries and Enhancing Table Design.
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.
MS-ACCESS BY SANGEETHA PARTHASARATHY Topics to be covered §Comparing Values in Selection Criteria §Calculating Values in a Query §Changing the appearance.
Examining data using Microsoft Access Queries Using Criteria and Calculations SESSION 3.2 This section covers specifying an exact match condition in a.
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.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast, Mary Anne Poatsy Chapter.
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.
Performing Calculations—1 of 2 In addition to using queries to retrieve, update, sort, and filter data in a database, you can use a query to perform calculations.
® Microsoft Access 2010 Tutorial 3 Maintaining and Querying a Database.
® Microsoft Office 2013 Access Maintaining and Querying a Database.
Database Applications – Microsoft Access Lesson 4 Working with Queries 36 Slides in Presentation.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Committed to Shaping the Next Generation of IT Experts. Chapter 3: Customize, Analyze,
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 3: Customize, Analyze,
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.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
® Microsoft Access 2010 Tutorial 5 Creating Advanced Queries and Enhancing Table Design.
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.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Committed to Shaping the Next Generation of IT Experts. Chapter 3: Customize, Analyze,
DAY 17: ACCESS CHAPTER 3 Tazin Afrin October 17,
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 5 1 Microsoft Office Access 2003 Tutorial 5 – Enhancing a Table’s Design.
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.
Creating Advanced Queries and Enhancing Table Design.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office.
Microsoft Office Illustrated Introductory, Windows Vista Edition
Formulas A formula is a sequence of values, cell references and operators that produce a new value. = E8 + 3*(E10 - E11) Formulas always start with an.
Building and Using Queries
Database Queries.
Exploring Microsoft Office Access 2007
Review: ACCESS Database Systems
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Exploring Microsoft® Office 2016 Series Editor Mary Anne Poatsy
Spreadsheets 2 Explain advanced spreadsheet concepts and functions
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Spreadsheets Objective 6.02
Spreadsheets Objective 6.02
Using Complex Formulas, Functions, and Tables
Microsoft Office Illustrated Introductory, Windows XP Edition
Tutorial 5 Advanced Queries and Enhanced Table Design
Microsoft Office Illustrated Fundamentals
Presentation transcript:

1 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office Access 2007

2 Objectives Understand the order of precedence Create a calculated field in a query Create expressions with the Expression Builder

3 Objectives (continued) Create and edit Access functions Perform date arithmetic Create and work with data aggregates

4 Order of Precedence Rules for establishing the sequence by which values are calculated in an expression Failure to follow results in faulty calculations

5 Order of Precedence Order of precedence from top to bottomUse this symbol Parenthesis() Exponentiation^ Multiplication and division*, / Addition and subtraction +, -

6 Understand Expressions Expressions are formulas based on existing fields –Result in a new field called a calculated field –Used primarily in queries, reports and forms Expressions may include –The names of fields, controls or properties –Operators like +, *, or () –Functions, constants or values

7 Parts of an Expression Constants: a named item whose value remains constant while Access is running Values: literal values such as the number 1,75 or the word “Hello” [Price] * [Quantity_On_Hand] * 0.7 Identifiers Operator Value

8 You can use an expression to: –perform a calculation –retrieve the value of a field or control –supply criteria to a query –create calculated controls and fields –define a grouping level for a report Result of a calculation in a query formed by using an expression What Are Expressions Used For?

9 You can use an expression to: –perform a calculation –retrieve the value of a field or control –supply criteria to a query –create calculated controls and fields –define a grouping level for a report Result of a calculation in a report formed by using an expression

10 Creating a Calculated Field Use correct syntax  Assign a descriptive name to the field  Enclose field names in brackets Total Value: [Price] * [Quantity_On_Hand] Descriptive name for new field preceded with colon (:) Expression using existing fields in a database

11 Calculated Field in a Query Calculated Field Query Design View A calculated field is added to a blank column in the design grid

12 Saving a Query with a Calculated Field Does not change the data in the database –Only the query structure is saved –Allows new data to be added to a table that is associated with a query When query executed again, includes the values of the new table data

13 Expression Builder Used to formulate the expressions in a calculated field

14 Expression Builder Use expressions to add, subtract, multiply, and divide the values in two or more fields/ controls Fields available in current query Expand folders by clicking plus sign

15 The Expression Builder Work Area All expressions begin with an equal sign Logic and operand symbols may be either typed or clicked in the area underneath the work area Double-click fields to add them to the work area Logical and operand symbols Work area with expression

16 Access Functions Predesigned formulas that calculate commonly used expressions Payment function in work area Function categories

17 Access Functions Some functions require arguments –A value that provides input to the function –Separate multiple arguments with commas Arguments separated by commas

18 The IIF Function Evaluates a condition Executes one action when the expression Alternate action when the condition is false The IIF function syntax in the work area of the expression builder

19 Example of IIF Function Displays the message “In Stock” if value of 1 or greater Otherwise “Out of Stock” will be displayed =IIF(Quantity_on_Hand] >= 1, “In Stock”, “Out of Stock”) Arguments of IIF function separated by commas

20 Performing Date Arithmetic Access stores dates as serial numbers which allows calculation of dates no matter the format entered Calculated field using dates Query results from date calculation

21 Variations of DatePart Function =DatePart(“q”, “01/22/2007”) –Displays the quarter in which the given date falls =DatePart(“h”, Now()) –Displays the hour part of the current date =DatePart(“d”, Now()) –Displays the day part of the current date

22 Variations of the DateDiff Function =DateDiff(“d”, [orderdate],[shippeddate]) –Displays the number of days between ordering and shipping =DateDiff(“m”,#01/06/2006#, #07/23/2007#) –Displays the number of months between the two dates =DateDiff(“d”,[dateborn], Now()) –Displays the number of days between the dateborn field and the current date

23 Data Aggregates Data aggregation allows summarization and consolidation of data

24 Performing an Aggregate Calculation in Datasheet View Must be in a a numeric or currency field Click Totals in the Records group Choose the aggregate function desired Aggregate functions displayed by clicking the arrow next to Total

25 How do Aggregate Functions Handle Null Values? When using the Avg function, null fields ignored When using the Count function, null fields are not included unless an asterisk (*) is used as the argument for the function

26 How do Aggregate Functions Handle Null Values? (continued) Examples –Count(*) will include null fields in the calculation. (Only in SQL view, Count(*) can be used.) –Count(records) will not include null fields. The Sum function ignores null values

27 Add a Total Row in a Query The total row can be added to the design grid by clicking the Totals Icon Totals Icon Total row added to the query

28 Use a Totals Query to Group Organizes query results into groups Only use the field or fields that you want to total and the grouping field Grouping field Field to be totaled