Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Committed to Shaping the Next Generation of IT Experts. Chapter 3: Customize, Analyze,

Slides:



Advertisements
Similar presentations
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
Advertisements

Chapter 1 Getting Started with Access Databases. Objectives Identify Good Database Design Create a Table and Define Fields in a New Blank Database Change.
Copyright © 2008 Pearson Prentice Hall. All rights reserved Committed to Shaping the Next Generation of IT Experts. Exploring Microsoft Office Access.
GO! with Microsoft® Excel e
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson,
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
INSERT BOOK COVER 1Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast,
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
By Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson, Linda Lau, Jerri Williams Chapter 5 Data Validation and Data Analysis.
With Microsoft ® Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
By Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson, Linda Lau, Jerri Williams Chapter 10 Using Macros and SQL in Access 1.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 1 by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Access 2010 © 2011 The McGraw-Hill Companies,
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Word 2010 by Robert Grauer, Michelle Hulett, and Mary.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Create, Edit, and Perform.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Access 2007 Committed to Shaping the Next Generation of.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Chapter 1: Finding Your Way Through.
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Access Committed to Shaping the Next Generation.
GO! with Office 2013 Volume 1 By: Shelley Gaskin, Alicia Vargas, and Carolyn McLellan Excel Chapter 2 Using Functions, Creating Tables, and Managing Large.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 Committed to Shaping the Next Generation of IT Experts. Chapter 1: Finding Your.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 1 Workshop 1 The Four Main Database Objects Series Editor Amy Kinser.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast, Mary Anne Poatsy Chapter.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast,
Analyzing Data For Effective Decision Making Chapter 3.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Committed to Shaping the Next Generation of IT Experts. Chapter 5 PivotTables and Charts.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
Copyright © 2008 Pearson Prentice Hall. All rights reserved Committed to Shaping the Next Generation of IT Experts. Chapter 7 Advanced Queries Robert.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 2 Workshop 3 Queries and Data Access Series Editor Amy Kinser by.
Skills for Success with Microsoft Office 2013 Volume 1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Kris Townsend, Catherine.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast, Mary Anne Poatsy Chapter.
Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 1 by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith Mulbery, and Mary.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 3: Customize, Analyze,
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
1 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office Access 2007.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith Mulbery, and Mary.
1 Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith Mulbery, and Mary Anne Poatsy Chapter 4 Excel Datasets and Tables Copyright © 2011 Pearson.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Create, Edit,
Skills for Success with Microsoft Office 2013 Volume 1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Kris Townsend, Catherine.
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
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.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Committed to Shaping the Next Generation of IT Experts. Chapter 3: Customize, Analyze,
By Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson, Linda Lau, Jerri Williams Chapter 6 Action and Specialized Queries 1.
DAY 17: ACCESS CHAPTER 3 Tazin Afrin October 17,
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
GO! with Office 2013 Volume 1 By: Shelley Gaskin, Alicia Vargas, and Carolyn McLellan Word Chapter 2 Using Tables and Templates to Create Resumes and Cover.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office.
Exploring Microsoft Office Access 2007
Exploring Microsoft Office Access 2007
GO! with Microsoft® Access e
GO! with Microsoft® Access e
Exploring Microsoft Office Access 2007
Review: ACCESS Database Systems
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall
Excel Datasets and Tables
Exploring Microsoft® Office 2016 Series Editor Mary Anne Poatsy
Presentation transcript:

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Committed to Shaping the Next Generation of IT Experts. Chapter 3: Customize, Analyze, and Summarize Query Data Robert Grauer, Keith Mulbery, Maurie Wigman Lockley Exploring Microsoft Office Access 2007

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 2 Objectives Understand the order of precedence Create a calculated field in a query Create expressions with the Expression Builder Create and edit Access functions Perform date arithmetic Create and work with data aggregates

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 3 Order of Precedence Rules for establishing the sequence by which values are calculated in an expression Failure to follow results in faulty calculations Order of precedence from top to bottomUse this symbol Parenthesis() Exponentiation^ Multiplication, division*, / Addition, subtraction +, -

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 4 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

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 5 What Are Expressions Used For? 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

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 6 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

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 7 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

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 8 Calculated Field in a Query Calculated Field Query Design View A calculated field is added to a blank column in the design grid

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 9 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

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 10 Expression Builder Used to formulate the expressions in a calculated field

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 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

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 12 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

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 13 Access Functions Predesigned formulas that calculate commonly used expressions Payment function in work area Function categories

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 14 Access Functions Some functions require arguments  A value that provides input to the function  Separate multiple arguments with commas Arguments separated by commas

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 15 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

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 16 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

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 17 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

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 18 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

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 19 Variations of the DateDiff Function =DateDiff(“d”, [orderdate],[shippeddate])  Displays the number f 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

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 20 Data Aggregates Data aggregation allows summarization and consolidation of data

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 21 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

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 22 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

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 23 How do Aggregate Functions Handle Null Values? (continued) Examples  Count(*) will include null fields in the calculation  Count(records) will not include null fields The Sum function ignores null values

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 24 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

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 25 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

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 26 Questions?

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 27 All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America. Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall