Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Access 2007 1 Committed to Shaping the Next Generation.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Prentice Hall. All rights reserved Committed to Shaping the Next Generation of IT Experts. Exploring Microsoft Office Access.
Advertisements

With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
® Microsoft Access 2010 Tutorial 5 Creating Advanced Queries and Enhancing Table Design.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Microsoft Access 2010 Chapter 7 Using SQL.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next.
Chapter 2 Querying a Database
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next Generation.
Chapter 06: Lecture Notes (CSIT 104) 1 Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Copyright © 2008 Prentice-Hall. All rights reserved.
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 Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Access 2007 Committed to Shaping the Next Generation of.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
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 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.
Exploring Microsoft Office Access 2010
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
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.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
Database Queries. Queries Queries are questions used to retrieve information from a database. Contain criteria to specify the records and fields to be.
Analyzing Data For Effective Decision Making Chapter 3.
® Microsoft Access 2010 Tutorial 5 Creating Advanced Queries and Enhancing Table Design.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Committed to Shaping the Next Generation of IT Experts. Chapter 5 PivotTables and Charts.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
Copyright © 2008 Pearson Prentice Hall. All rights reserved Chapter 6 Data Tables and Amortization Tables Exploring Microsoft Office Excel 2007.
Copyright © 2008 Pearson Prentice Hall. All rights reserved Committed to Shaping the Next Generation of IT Experts. Chapter 7 Advanced Queries Robert.
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.
® Microsoft Office 2013 Access Maintaining and Querying a Database.
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.
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,
1 Chapter 3: Customize, Analyze, and Summarize Query Data Exploring Microsoft Office Access 2007.
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.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Create, Edit,
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 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next Generation.
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,
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next Generation.
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.
Exploring Microsoft Office Excel 2007
Exploring Microsoft Office Excel 2007
Exploring Microsoft Office Access 2007
Exploring Microsoft Office Access 2007
Microsoft Office Illustrated Introductory, Windows Vista Edition
Plug-In T7: Problem Solving Using Access 2007
Larry Reaves October 9, 2013 Day 16: Access Chapter 2 Larry Reaves October 9, 2013.
Exploring Microsoft Office Excel 2007
Exploring Microsoft Office Access 2007
Exploring Microsoft Office Access 2007
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
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Microsoft Office Illustrated Introductory, Windows XP Edition
Shelly Cashman: Microsoft Access 2016
Tutorial 5 Advanced Queries and Enhanced Table Design
Presentation transcript:

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall1 Exploring Microsoft Office Access Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases and Multi-Table Queries Robert Grauer, Keith Mulbery, Maurie Wigman Lockley

 Date: November 23, 2009  Content: ◦ Excel and Access. Week 6 to Week 11.  Format: ◦ 1 Excel problem that contains format of worksheet, computations using VLOOKUP and PMT, and create a graph. ◦ 1 Access problem that contains create tables, setting relationship, create a set of queries and a simple report. Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall2

3 Objectives  Create a query  Specify criteria for different data types  Copy and run a query  Use the Query Wizard  Understand large database differences

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall4 Using Query Design View  Query Design grid has two panes – the table pane and the design pane  Striking the F6 key will toggle you between sections Tables pane Design pane

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall5 Select Query  Searches associated tables and returns a dataset that matches the query parameters  Changes made to the dataset will be reflected in the associated tables

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall6 Specifying Criteria in a Select Query  Table row – displays the data source.  Field row – displays the field name  Sort row – enables you to sort the dataset  Show row – controls whether or not you see a field in the dataset  Criteria row – determines the records that will be selected for display Fields in design grid allow us to specify criteria for the dataset

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall7 Specifying Criteria – Currency and Operands  Specify criteria with currency ◦ Without the dollar sign ◦ With or without the decimal point  Use operands such as: ◦ Less than and greater than ◦ Equal to or not equal to Greater than (>) operand Currency amount entered without dollar sign

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall8 Specifying Criteria – Wildcards  Asterisk - searches for a pattern that includes any number of characters in the position of the asterisk  Question mark - searches for a pattern that includes a single character in the position of the question mark Query with question mark and asterisk wildcard and resulting dataset to specify criteria for the dataset Query with asterisk wildcard and resulting dataset

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall9 Specifying Criteria – Null Values  IS NULL finds only records that have no value  IS NOT NULL excludes Null value records Is Null criteria and resulting dataset IS NOT NULL criteria and partial resulting dataset

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall10 Specifying Criteria – AND, OR, NOT  OR finds records that can match one or more conditions  AND finds records that must match all criteria specified  NOT returns the opposite of the specified criteria. Or Criterion and resulting dataset And criterion and resulting dataset

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall11 Copy a Query  Right click on the query - chose Copy form the shortcut menu  Right click and chose paste  In the Paste as dialog box, give the query a new name

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall12 Run a Query  Running or executing a query is done by clicking the Run command Run command

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall13 Creating Queries – Using the Query Wizard  From the Create tab, choose Query Wizard for the Other group  Choose query type from the New Query dialog box Query Wizard icon Select Simple Query Wizard

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall14 Creating Queries – Using the Query Wizard: continued  Select the Table/Queries to include and choose the desired fields  Select aggregate totals needed in the Summary Options box

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall15 Creating Queries – Using the Query Wizard: continued  Title your query and open in Datasheet View or Query Design View

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 16 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 17 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 18 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 19 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 ◦Use correct syntax◦Assign a descriptive name to the field◦Enclose field names in brackets◦Use correct syntax◦Assign a descriptive name to the field◦Enclose field names in brackets

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 20 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 21 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 22 Expression Builder  Used to formulate the expressions in a calculated field

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 23 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 24 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 25 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 26 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 27 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 28  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 29 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 30 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 31  =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 32 Data Aggregates Data aggregation allows summarization and consolidation of data

Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 33 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 34  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 35  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 36  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 37 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