SlideShare una empresa de Scribd logo
1 de 82
Analyzing Data For Effective Decision Making 1 Chapter 3 “The human problems which I deal with every day—concerningemployees as well as customers—are the problems that fascinateme, that seem important to me.”—Hortense Odlum
Chapter Introduction Filter data in Microsoft Office Access 2007 database  Retrieve and examine only records you need Sort data  Rearrange records in specified order Queries Provide quick answers to business questions Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  2
Tools Covered In This Chapter Action queries (update, append, delete, crosstab, and make-table) Aggregate functions (Avg, Max, Min, Sum) Calculated field Comparison and logical operators Crosstab query Filter by Form and Filter by Selection Find duplicates query Find unmatched records query Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  3
Tools Covered In This Chapter Immediate IF (IIF) function Parameter query Design view Select query Simple Query Wizard SQL commands (AS FROM, GROUP BY, HAVING, ORDER BY, SELECT, WHERE) Top Values query Wildcard characters Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  4
Level 1 Objectives: Organizing and Retrieving Information from a Database Filter and sort data to make it more meaningful Create simple queries to answer business questions Develop queries using comparison criteria and wildcards Display and print query results Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  5
Filtering and Sorting Data Filter  Restricts data in single table to create temporary subset of records See only certain records in table based on specified criteria Sorting records  Organizing in particular order or sequence Sort records regardless of whether table filtered Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  6
Filtering by Selection Tools Filter by Selection Select particular field in datasheet  Display only data that matches contents of field Specify only one criterion for filter Filter by Form Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  7
Using Filter by Selection to Display a Temporary Subset of Records Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  8
Filtering by Form Specify two or more criteria Filter for comparative data Use comparison operators AND criteria Selects records that contain all specified values OR criteria Selects records that contain any specified values Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  9
Sorting Data to Increase Information Content Organizes data and increases information value Access sorts records based on primary key values Use sorting to change order To sort Select sort field Sort on multiple fields Move fields in datasheet view so that they are adjacent Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  10
Sorting Data To Increase Information Content Primary sort field Access sorts records by this field first Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  11
Sorting Types of Data Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  12
Filtering Using the Filter Arrow Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  13
Using Queries to Answer Business Questions Query  Database object  Stores criteria for selecting records from one or more tables based  Save query  Use it again More powerful than filter Display only some fields in table Create fields that perform calculations Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  14
Using Queries to Answer Business Questions (continued) Capabilities of Access queries: Display selected fields and records from table Sort records on one or multiple fields Perform calculations Generate data for forms reports and other queries Update data in database Find and display data from two or more tables Create new tables Delete records in table based on one or more criteria Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  15
Using Queries to Answer Business Questions (continued) Select query Ask question based on one or more tables in database Result displayed in datasheet Called recordset Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  16
Using the Simple Query Wizard to Create a Query Simple query wizard  Presents list of tables and queries in database  And fields that they contain Select fields from one or more tables Wizard creates and displays results Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  17
Advantages and Limitations of the Simple Query Wizard Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  18
Including Summary Statistics in a Query for Data Analysis Summary query  Groups records  Calculate sum, average, minimum, or maximum value in each selected field Count records in table or query Click summary options button Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  19
Creating a Summary Query with the Simple Query Wizard Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  20
Creating a Query in Design View Select query window in Design view has two sections  Area for field lists at top of window  Design grid below it Add tables for query to top part of window Appear as field lists Query by example (QBE) Typing search value as a criterion Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  21
Query Design View Tools Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  22
Creating Queries with Multiple Criteria Most queries involve more than one criterion Represent AND criteria Entering conditions in same criteria row in query design grid Specify OR criteria Use “or” row of query design grid Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  23
Setting Criteria for the Query in Design View Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  24
Specifying Sort Order in Queries Query results appear in same order as data from underlying tables  Unless specify sort order when designing query Sort order determined from left to right Multiple columns must be adjacent to sort on more than one field in datasheet view Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  25
Running a Query Click Run button in the Results group on the Design tab Access displays datasheet of records Save query Save only design Not values from tables displayed in results Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  26
Enhancing Query Criteria to Improve Data Analysis Expand criteria by using  Wildcards  Comparison operators Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  27
Using Wildcards for Inexact Query Matches Wildcard character Placeholder  Stands for one or more characters Memo fields Use same keywords throughout memos Easily retrieve records later Use wildcards when specifying keyword as a query criterion  To select records that contain characters before and after keyword Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  28
Wildcard Characters Used in Queries Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  29
Using Wildcards for Inexact Query Matches (continued) Access inserts  Word “LIKE” for criteria with wildcards quotation marks around text LIKE “*Spanish*” Pound signs around dates #12/*/2008# Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  30
Using Comparison Operators to Refine Query Criteria Comparison operators Compare value in field with range of values in criterion Clear the grid  Start with same field list but blank grid Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  31
Comparison Operators Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  32
Comparison Operators (continued) Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  33
Verifying and Printing Query Results Verify query results before Distributing query to others  Using it as basis for decisions Use business knowledge  Determine whether results adequately answer question Print query datasheet Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  34
Modifying Query Datasheets Improve appearance of query or table datasheet Resize column widths in any datasheet  Double-click line between field names to resize columns to best fit Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  35
Formatting Options for Query and Table Datasheets Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  36
Level 1 Summary Use filtering and sorting to change data display Develop queries using Simple query wizard Design view Use comparison operators and wildcards to make queries more flexible Verify query results using business knowledge Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  37
Level 2 Objectives:Creating More Complex Queries Design queries that compare data from more than one table Refine table relationships by specifying the join type Perform calculations in queries Customize queries and their results Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  38
Evaluating Data Using Special Types of Queries Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  39
Using Queries to Find Duplicate Records Duplicates Query Wizard Searches for duplicate values in fields Improve business operations Designed to identify records that contain same information in particular field Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  40
Using Queries to Find Unmatched Records Find Unmatched Query Wizard Compares records in two specified tables or recordsets  Finds all records in one table or query that have no related records in second table or query Requires that two tables being compared have common field Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  41
Limiting the Records in the Query Results Limiting results to only a few records often aids analysis Top and Bottom Values Sorts and then filters records  Display specified number of records that contain top or bottom values Top Values button on Design tab Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  42
Top Values Query Design and Results Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  43
Using Parameter Values in Queries Parameter values  Phrase usually in form of a question or instruction  Enclosed in square brackets Serves as prompt to user to enter value Example [Enter a job ID:] Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  44
Parameter Query to Allow User Input when the Query Is Run Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  45
Analyzing Data from More than One Table Data from more than one table required to answer question Combine records from two or more tables  Display only information needed Work in design view to specify criteria for selecting records from multiple tables Lines between tables link primary key to foreign key field Primary key designated with 1 Foreign key designated with ∞ Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  46
Analyzing Data from More than One Table (continued) Join tables Linking of tables using primary and foreign keys Established relationship  Or Each table shares field with same or compatible data type  One join field primary key If tables do not include fields that can be joined Add one or more extra tables or queries  Link tables that contain the data Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  47
Analyzing Data from More than One Table (continued) Use queries as source of underlying data for another query in place of one or more tables Create queries based on more than one object Should not use any table or query that does not have common field with at least one of the other tables or queries Otherwise Access displays every combination of records between two tables Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  48
Refining Relationships with Appropriate Join Types Inner join Displays all records in one table that have corresponding values in common field in another table Records must match before being displayed in query results Outer join Display all records of one table  Regardless of whether corresponding record stored in related table Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  49
Inner Join Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  50
Left Outer Join Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  51
Right Outer Join Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  52
Refining Relationships with Appropriate Join Types (continued) Outer join types Left Right Use join properties dialog box To change join type By default tables related using inner joins Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  53
Using Logical Operators to Specify Multiple Conditions Logical operators Test values that can only be true or false Place conditions in separate fields in same criteria row of design grid All conditions in row must be met to select record NOT logical operator  Excludes values that don’t meet criterion Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  54
Logical Operators Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  55
Performing Calculations with Queries Any information derived from fields in table or query should be calculated in query  Rather than included as data in table Calculation types Predefined Compute amounts for groups of records or for all records combined in query Custom Performs numeric date and text computations on each record  Using data from one or more fields Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  56
Calculating Statistical Information Aggregate functions Arithmetic and statistical operations  Apply to records that meet query’s selection criteria Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  57
Aggregate Functions Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  58
Using Aggregate Functions in a Query Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  59
Creating Calculated Fields in a Query Expression  Arithmetic formula used to make calculation Use standard arithmetic operators Use parenthesis for complex expressions Calculated field Add to query design grid Type expression Expression builder Build complex expressions Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  60
Creating Calculated Fields in a Query (continued) Function Perform standard calculation Return value Date() Provides today’s date Field properties Change format and number of decimal places for calculated field Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  61
Field Properties Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  62
Concatenating in Queries Concatenation Combining contents of two or more fields Operator & Example Name [EmpFirst]& " " & [EmpLast] Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  63
Level 2 Summary Use queries to select data from more than one table Join types Inner Right outer Left outer Calculated field types Predefined Custom Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  64
Level 3 Objectives: Exploring Advanced Queries and Queries Written in Structured Query Language Calculate and restructure data to improve analysis Examine and create advanced types of queries Make decisions in a query using the immediate IF (IIF) function Develop queries using SQL Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  65
Analyzing Query Calculations Crosstab queries  Special type of totals query  Performs aggregate function calculations on values of one database field  Determine exactly how summary data appears in results Calculate and restructure data  Analyze it more easily Work especially well with time-series data Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  66
Creating a Crosstab Query To create use  Use a wizard Often need to create query first Or design view Start with select query that includes numeric values or summary calculations Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  67
Crosstab Field Settings Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  68
Modifying Data Using Queries Action queries  Modify data in table  Add records to or delete records from table  Create new table Backup data before using action query Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  69
Access Action Queries Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  70
Process for Archiving Data Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  71
Archiving Data with Make-table Queries Make-table query  Creates table from some or all of the fields and records in existing table or query Access does not delete selected fields and records from existing table Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  72
Adding Records to Tables with Append Queries Append query  Select records from one or more tables by setting criteria  Add those records to end of another table Selected records also remain in original tables  Table to which records added must already exist Also use to bring data from another source into database Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  73
Removing Records from Tables with Delete Queries Delete query  Removes information from table  Based on specified criteria All records meeting criteria permanently removed from table Create select query first Convert to delete query Cascading deletes Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  74
Updating Data with an Update Query Update query  Changes values of data in one or more existing tables Create select query first Change type to update query Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  75
Making Decisions in Queries IF statement Tests condition  Takes one action if condition true  Takes another action if condition false IIF function Make if decision Format IIF(condition to test what to do if true, what to do if false) Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  76
Customizing Queries Using Structured Query Language Access designed as database management system (DBMS) for  Small businesses  Or departments within large businesses Structured query language Common query language of most DBMSs Use to query, update, and manage relational databases Create query in design view Access translates entries and criteria into SQL statements Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  77
Customizing Queries Using Structured Query Language (continued) View statements by switching from Design view to SQL view SELECT statement defines  What data query should retrieve from database  How it should present data Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  78
Exploring the Components of an SQL Query Keywords  Use to construct SQL statements Most developers place each statement on separate line  To make SQL code easy to read Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  79
Common SQL Keywords Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  80
Level 3 Summary Action queries Make new tables Append data Delete data Update data IFF function SQL Use SQL view to edit SQL directly Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  81
Chapter Summary Queries retrieve data from one or more tables Action queries update data Perform calculations Make decisions using IFF function SQL Used to interact with relational databases Use SQL view to view/edit SQL statements generated by Access Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach  82

Más contenido relacionado

La actualidad más candente

Access 2013 Unit A
Access 2013 Unit AAccess 2013 Unit A
Access 2013 Unit Ajarana00
 
Lecture2 slides
Lecture2 slidesLecture2 slides
Lecture2 slidesCyri Jones
 
Access lesson05
Access lesson05Access lesson05
Access lesson05Aram SE
 
Access lesson 01 Microsoft Access Basics
Access lesson 01 Microsoft Access BasicsAccess lesson 01 Microsoft Access Basics
Access lesson 01 Microsoft Access BasicsAram SE
 
Access lesson 04 Creating and Modifying Forms
Access lesson 04 Creating and Modifying FormsAccess lesson 04 Creating and Modifying Forms
Access lesson 04 Creating and Modifying FormsAram SE
 
Access lesson 03 Creating Queries
Access lesson 03 Creating QueriesAccess lesson 03 Creating Queries
Access lesson 03 Creating QueriesAram SE
 
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013guvensahin
 
Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPTokmomwalking
 
Access2007 part1
Access2007 part1Access2007 part1
Access2007 part1jigeno
 
MS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksMS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksskomadina
 
Access lesson 02 Creating a Database
Access lesson 02 Creating a DatabaseAccess lesson 02 Creating a Database
Access lesson 02 Creating a DatabaseAram SE
 

La actualidad más candente (19)

Ch03 cmpt110
Ch03 cmpt110Ch03 cmpt110
Ch03 cmpt110
 
Ch02 cmpt110
Ch02 cmpt110Ch02 cmpt110
Ch02 cmpt110
 
Ch01 CMPT110
Ch01 CMPT110Ch01 CMPT110
Ch01 CMPT110
 
Ch04 cmpt110
Ch04 cmpt110Ch04 cmpt110
Ch04 cmpt110
 
Ch07 cmpt110
Ch07 cmpt110Ch07 cmpt110
Ch07 cmpt110
 
Ch05 cmpt110
Ch05 cmpt110Ch05 cmpt110
Ch05 cmpt110
 
Ch06 cmpt110
Ch06 cmpt110Ch06 cmpt110
Ch06 cmpt110
 
Access 2007 Unit B
Access 2007 Unit BAccess 2007 Unit B
Access 2007 Unit B
 
Access 2013 Unit A
Access 2013 Unit AAccess 2013 Unit A
Access 2013 Unit A
 
Lecture2 slides
Lecture2 slidesLecture2 slides
Lecture2 slides
 
Access lesson05
Access lesson05Access lesson05
Access lesson05
 
Access lesson 01 Microsoft Access Basics
Access lesson 01 Microsoft Access BasicsAccess lesson 01 Microsoft Access Basics
Access lesson 01 Microsoft Access Basics
 
Access lesson 04 Creating and Modifying Forms
Access lesson 04 Creating and Modifying FormsAccess lesson 04 Creating and Modifying Forms
Access lesson 04 Creating and Modifying Forms
 
Access lesson 03 Creating Queries
Access lesson 03 Creating QueriesAccess lesson 03 Creating Queries
Access lesson 03 Creating Queries
 
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013
Dynamics AX 2009 Data Dictionary - Güven Şahin - 04.05.2013
 
Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPT
 
Access2007 part1
Access2007 part1Access2007 part1
Access2007 part1
 
MS Access teaching powerpoint tasks
MS Access teaching powerpoint tasksMS Access teaching powerpoint tasks
MS Access teaching powerpoint tasks
 
Access lesson 02 Creating a Database
Access lesson 02 Creating a DatabaseAccess lesson 02 Creating a Database
Access lesson 02 Creating a Database
 

Destacado

AIN102.2 Microsoft Access Queries
AIN102.2 Microsoft Access QueriesAIN102.2 Microsoft Access Queries
AIN102.2 Microsoft Access QueriesDan D'Urso
 
AIN102.1 Microsoft Access Queries Module 1
AIN102.1 Microsoft Access Queries Module 1AIN102.1 Microsoft Access Queries Module 1
AIN102.1 Microsoft Access Queries Module 1Dan D'Urso
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access pptanuj
 
ITT PROJECT ON CREATE QUERY(QUERY-SELECT WITH CONDITION, MAKE A TABLE,APPEND,...
ITT PROJECT ON CREATE QUERY(QUERY-SELECT WITH CONDITION, MAKE A TABLE,APPEND,...ITT PROJECT ON CREATE QUERY(QUERY-SELECT WITH CONDITION, MAKE A TABLE,APPEND,...
ITT PROJECT ON CREATE QUERY(QUERY-SELECT WITH CONDITION, MAKE A TABLE,APPEND,...Alok Mishra
 
Basic Access Notes
Basic Access NotesBasic Access Notes
Basic Access NotesPyi Soe
 
MS-ACCESS:CREATE TAB(QUERY-SELECT WITH CONDITIONS, MAKE A TABLE,DELETE,APPNED...
MS-ACCESS:CREATE TAB(QUERY-SELECT WITH CONDITIONS, MAKE A TABLE,DELETE,APPNED...MS-ACCESS:CREATE TAB(QUERY-SELECT WITH CONDITIONS, MAKE A TABLE,DELETE,APPNED...
MS-ACCESS:CREATE TAB(QUERY-SELECT WITH CONDITIONS, MAKE A TABLE,DELETE,APPNED...Ashish Saxena
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms accessjigeno
 
AIA101.2.Access Queries Accelerated
AIA101.2.Access Queries AcceleratedAIA101.2.Access Queries Accelerated
AIA101.2.Access Queries AcceleratedDan D'Urso
 
Access presentation
Access presentationAccess presentation
Access presentationDUSPviz
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft accessHardik Patel
 

Destacado (13)

AIN102.2 Microsoft Access Queries
AIN102.2 Microsoft Access QueriesAIN102.2 Microsoft Access Queries
AIN102.2 Microsoft Access Queries
 
AIN102.1 Microsoft Access Queries Module 1
AIN102.1 Microsoft Access Queries Module 1AIN102.1 Microsoft Access Queries Module 1
AIN102.1 Microsoft Access Queries Module 1
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access ppt
 
ITT PROJECT ON CREATE QUERY(QUERY-SELECT WITH CONDITION, MAKE A TABLE,APPEND,...
ITT PROJECT ON CREATE QUERY(QUERY-SELECT WITH CONDITION, MAKE A TABLE,APPEND,...ITT PROJECT ON CREATE QUERY(QUERY-SELECT WITH CONDITION, MAKE A TABLE,APPEND,...
ITT PROJECT ON CREATE QUERY(QUERY-SELECT WITH CONDITION, MAKE A TABLE,APPEND,...
 
Basic Access Notes
Basic Access NotesBasic Access Notes
Basic Access Notes
 
Network topology
Network topologyNetwork topology
Network topology
 
MS-ACCESS:CREATE TAB(QUERY-SELECT WITH CONDITIONS, MAKE A TABLE,DELETE,APPNED...
MS-ACCESS:CREATE TAB(QUERY-SELECT WITH CONDITIONS, MAKE A TABLE,DELETE,APPNED...MS-ACCESS:CREATE TAB(QUERY-SELECT WITH CONDITIONS, MAKE A TABLE,DELETE,APPNED...
MS-ACCESS:CREATE TAB(QUERY-SELECT WITH CONDITIONS, MAKE A TABLE,DELETE,APPNED...
 
Ms access 2010
Ms access 2010Ms access 2010
Ms access 2010
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms access
 
AIA101.2.Access Queries Accelerated
AIA101.2.Access Queries AcceleratedAIA101.2.Access Queries Accelerated
AIA101.2.Access Queries Accelerated
 
Networking basics
Networking basicsNetworking basics
Networking basics
 
Access presentation
Access presentationAccess presentation
Access presentation
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft access
 

Similar a Ch03 Access

Chapter.10
Chapter.10Chapter.10
Chapter.10klivsie
 
MS Access Ch 2 PPT
MS Access Ch 2 PPTMS Access Ch 2 PPT
MS Access Ch 2 PPTprsmith72
 
Part 2Provider Database (Open Office Database)Use the project.docx
Part 2Provider Database (Open Office Database)Use the project.docxPart 2Provider Database (Open Office Database)Use the project.docx
Part 2Provider Database (Open Office Database)Use the project.docxdewhirstichabod
 
creating data
creating datacreating data
creating datasabinji
 
HARJOT.ppt
HARJOT.pptHARJOT.ppt
HARJOT.pptsatgup78
 
Essential Excel for Business Analysts and Consultants
Essential Excel for Business Analysts and ConsultantsEssential Excel for Business Analysts and Consultants
Essential Excel for Business Analysts and ConsultantsAsen Gyczew
 
Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010home
 
ETL Microsoft Material
ETL Microsoft MaterialETL Microsoft Material
ETL Microsoft MaterialAhmed Hashem
 
Access 2 day course
Access 2 day courseAccess 2 day course
Access 2 day coursescacpa
 
Part 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docxPart 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docxdanhaley45372
 
Microsoft SQL Server - BI Consolidation Presentation
Microsoft SQL Server - BI Consolidation PresentationMicrosoft SQL Server - BI Consolidation Presentation
Microsoft SQL Server - BI Consolidation PresentationMicrosoft Private Cloud
 
Access Basics 01
Access Basics 01Access Basics 01
Access Basics 01Lets try
 
A Primer for Relational Database Design and Use
A Primer for Relational Database Design and UseA Primer for Relational Database Design and Use
A Primer for Relational Database Design and UseDavid Krumholz
 
La6 ict-topic-6-information-systems
La6 ict-topic-6-information-systemsLa6 ict-topic-6-information-systems
La6 ict-topic-6-information-systemsAzmiah Mahmud
 

Similar a Ch03 Access (20)

Access.05
Access.05Access.05
Access.05
 
Chapter.10
Chapter.10Chapter.10
Chapter.10
 
Chapter.10
Chapter.10Chapter.10
Chapter.10
 
Excel 2007 Unit H
Excel 2007 Unit HExcel 2007 Unit H
Excel 2007 Unit H
 
MS Access Ch 2 PPT
MS Access Ch 2 PPTMS Access Ch 2 PPT
MS Access Ch 2 PPT
 
Part 2Provider Database (Open Office Database)Use the project.docx
Part 2Provider Database (Open Office Database)Use the project.docxPart 2Provider Database (Open Office Database)Use the project.docx
Part 2Provider Database (Open Office Database)Use the project.docx
 
creating data
creating datacreating data
creating data
 
PowerBI Training
PowerBI Training PowerBI Training
PowerBI Training
 
HARJOT.ppt
HARJOT.pptHARJOT.ppt
HARJOT.ppt
 
Bi requirements checklist
Bi requirements checklistBi requirements checklist
Bi requirements checklist
 
Access chapter 2
Access chapter 2Access chapter 2
Access chapter 2
 
Essential Excel for Business Analysts and Consultants
Essential Excel for Business Analysts and ConsultantsEssential Excel for Business Analysts and Consultants
Essential Excel for Business Analysts and Consultants
 
Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010
 
ETL Microsoft Material
ETL Microsoft MaterialETL Microsoft Material
ETL Microsoft Material
 
Access 2 day course
Access 2 day courseAccess 2 day course
Access 2 day course
 
Part 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docxPart 2Provider Database (Open Office Database)Use the project des.docx
Part 2Provider Database (Open Office Database)Use the project des.docx
 
Microsoft SQL Server - BI Consolidation Presentation
Microsoft SQL Server - BI Consolidation PresentationMicrosoft SQL Server - BI Consolidation Presentation
Microsoft SQL Server - BI Consolidation Presentation
 
Access Basics 01
Access Basics 01Access Basics 01
Access Basics 01
 
A Primer for Relational Database Design and Use
A Primer for Relational Database Design and UseA Primer for Relational Database Design and Use
A Primer for Relational Database Design and Use
 
La6 ict-topic-6-information-systems
La6 ict-topic-6-information-systemsLa6 ict-topic-6-information-systems
La6 ict-topic-6-information-systems
 

Más de D

Chapter 12 Human Resource Management Ppt12
Chapter 12 Human Resource Management Ppt12Chapter 12 Human Resource Management Ppt12
Chapter 12 Human Resource Management Ppt12D
 
Chapter 19 Ppt19
Chapter 19 Ppt19Chapter 19 Ppt19
Chapter 19 Ppt19D
 
Chapter 17 Intro To Controlling Ppt17
Chapter 17 Intro To Controlling Ppt17Chapter 17 Intro To Controlling Ppt17
Chapter 17 Intro To Controlling Ppt17D
 
Chapter 18 Managing Operations Ppt18
Chapter 18 Managing Operations Ppt18Chapter 18 Managing Operations Ppt18
Chapter 18 Managing Operations Ppt18D
 
Chapter 15 Motivating Employees Ppt15
Chapter 15 Motivating Employees Ppt15Chapter 15 Motivating Employees Ppt15
Chapter 15 Motivating Employees Ppt15D
 
Chapter 14 Managers And Communication Ppt14
Chapter 14 Managers And Communication Ppt14Chapter 14 Managers And Communication Ppt14
Chapter 14 Managers And Communication Ppt14D
 
Chapter 13 Understanding Individual Behavior Ppt13
Chapter 13 Understanding Individual Behavior Ppt13Chapter 13 Understanding Individual Behavior Ppt13
Chapter 13 Understanding Individual Behavior Ppt13D
 
Chapter 10 Organizational Structure And Design Ppt10
Chapter 10 Organizational Structure And Design Ppt10Chapter 10 Organizational Structure And Design Ppt10
Chapter 10 Organizational Structure And Design Ppt10D
 
Chapter 11 Communication And Information Technology Ppt11
Chapter 11 Communication And Information Technology Ppt11Chapter 11 Communication And Information Technology Ppt11
Chapter 11 Communication And Information Technology Ppt11D
 
Chapter 9 Planning Tools Techniques Ppt09
Chapter 9 Planning Tools Techniques Ppt09Chapter 9 Planning Tools Techniques Ppt09
Chapter 9 Planning Tools Techniques Ppt09D
 
Chapter 8 Strategic Management Ppt08
Chapter 8 Strategic Management Ppt08Chapter 8 Strategic Management Ppt08
Chapter 8 Strategic Management Ppt08D
 
Chapter 7 Foundations Of Planning Ppt07
Chapter 7 Foundations Of Planning Ppt07Chapter 7 Foundations Of Planning Ppt07
Chapter 7 Foundations Of Planning Ppt07D
 
Chapter 6 Decision Making The Essence Of The Managers Job Ppt06
Chapter 6 Decision Making The Essence Of The Managers Job Ppt06Chapter 6 Decision Making The Essence Of The Managers Job Ppt06
Chapter 6 Decision Making The Essence Of The Managers Job Ppt06D
 
Chapter 5 Social Responsibility And Managerial Ethics Ppt05
Chapter 5 Social Responsibility And Managerial Ethics Ppt05Chapter 5 Social Responsibility And Managerial Ethics Ppt05
Chapter 5 Social Responsibility And Managerial Ethics Ppt05D
 
Chapter 4 Managing In A Global Environmen Ppt04
Chapter 4 Managing In A Global Environmen Ppt04Chapter 4 Managing In A Global Environmen Ppt04
Chapter 4 Managing In A Global Environmen Ppt04D
 
Chapter 3 Organiz Culture And Environ The Constraints Ppt03
Chapter 3 Organiz Culture And Environ The Constraints Ppt03Chapter 3 Organiz Culture And Environ The Constraints Ppt03
Chapter 3 Organiz Culture And Environ The Constraints Ppt03D
 
Chapter 2 Management Yesterday And Today Ppt02
Chapter 2 Management Yesterday And Today Ppt02Chapter 2 Management Yesterday And Today Ppt02
Chapter 2 Management Yesterday And Today Ppt02D
 
Stu R C8e Ch06
Stu R C8e Ch06Stu R C8e Ch06
Stu R C8e Ch06D
 
Stu R C8e Ch15
Stu R C8e Ch15Stu R C8e Ch15
Stu R C8e Ch15D
 
Stu R C8e Ch15 11
Stu R C8e Ch15 11Stu R C8e Ch15 11
Stu R C8e Ch15 11D
 

Más de D (20)

Chapter 12 Human Resource Management Ppt12
Chapter 12 Human Resource Management Ppt12Chapter 12 Human Resource Management Ppt12
Chapter 12 Human Resource Management Ppt12
 
Chapter 19 Ppt19
Chapter 19 Ppt19Chapter 19 Ppt19
Chapter 19 Ppt19
 
Chapter 17 Intro To Controlling Ppt17
Chapter 17 Intro To Controlling Ppt17Chapter 17 Intro To Controlling Ppt17
Chapter 17 Intro To Controlling Ppt17
 
Chapter 18 Managing Operations Ppt18
Chapter 18 Managing Operations Ppt18Chapter 18 Managing Operations Ppt18
Chapter 18 Managing Operations Ppt18
 
Chapter 15 Motivating Employees Ppt15
Chapter 15 Motivating Employees Ppt15Chapter 15 Motivating Employees Ppt15
Chapter 15 Motivating Employees Ppt15
 
Chapter 14 Managers And Communication Ppt14
Chapter 14 Managers And Communication Ppt14Chapter 14 Managers And Communication Ppt14
Chapter 14 Managers And Communication Ppt14
 
Chapter 13 Understanding Individual Behavior Ppt13
Chapter 13 Understanding Individual Behavior Ppt13Chapter 13 Understanding Individual Behavior Ppt13
Chapter 13 Understanding Individual Behavior Ppt13
 
Chapter 10 Organizational Structure And Design Ppt10
Chapter 10 Organizational Structure And Design Ppt10Chapter 10 Organizational Structure And Design Ppt10
Chapter 10 Organizational Structure And Design Ppt10
 
Chapter 11 Communication And Information Technology Ppt11
Chapter 11 Communication And Information Technology Ppt11Chapter 11 Communication And Information Technology Ppt11
Chapter 11 Communication And Information Technology Ppt11
 
Chapter 9 Planning Tools Techniques Ppt09
Chapter 9 Planning Tools Techniques Ppt09Chapter 9 Planning Tools Techniques Ppt09
Chapter 9 Planning Tools Techniques Ppt09
 
Chapter 8 Strategic Management Ppt08
Chapter 8 Strategic Management Ppt08Chapter 8 Strategic Management Ppt08
Chapter 8 Strategic Management Ppt08
 
Chapter 7 Foundations Of Planning Ppt07
Chapter 7 Foundations Of Planning Ppt07Chapter 7 Foundations Of Planning Ppt07
Chapter 7 Foundations Of Planning Ppt07
 
Chapter 6 Decision Making The Essence Of The Managers Job Ppt06
Chapter 6 Decision Making The Essence Of The Managers Job Ppt06Chapter 6 Decision Making The Essence Of The Managers Job Ppt06
Chapter 6 Decision Making The Essence Of The Managers Job Ppt06
 
Chapter 5 Social Responsibility And Managerial Ethics Ppt05
Chapter 5 Social Responsibility And Managerial Ethics Ppt05Chapter 5 Social Responsibility And Managerial Ethics Ppt05
Chapter 5 Social Responsibility And Managerial Ethics Ppt05
 
Chapter 4 Managing In A Global Environmen Ppt04
Chapter 4 Managing In A Global Environmen Ppt04Chapter 4 Managing In A Global Environmen Ppt04
Chapter 4 Managing In A Global Environmen Ppt04
 
Chapter 3 Organiz Culture And Environ The Constraints Ppt03
Chapter 3 Organiz Culture And Environ The Constraints Ppt03Chapter 3 Organiz Culture And Environ The Constraints Ppt03
Chapter 3 Organiz Culture And Environ The Constraints Ppt03
 
Chapter 2 Management Yesterday And Today Ppt02
Chapter 2 Management Yesterday And Today Ppt02Chapter 2 Management Yesterday And Today Ppt02
Chapter 2 Management Yesterday And Today Ppt02
 
Stu R C8e Ch06
Stu R C8e Ch06Stu R C8e Ch06
Stu R C8e Ch06
 
Stu R C8e Ch15
Stu R C8e Ch15Stu R C8e Ch15
Stu R C8e Ch15
 
Stu R C8e Ch15 11
Stu R C8e Ch15 11Stu R C8e Ch15 11
Stu R C8e Ch15 11
 

Ch03 Access

  • 1. Analyzing Data For Effective Decision Making 1 Chapter 3 “The human problems which I deal with every day—concerningemployees as well as customers—are the problems that fascinateme, that seem important to me.”—Hortense Odlum
  • 2. Chapter Introduction Filter data in Microsoft Office Access 2007 database Retrieve and examine only records you need Sort data Rearrange records in specified order Queries Provide quick answers to business questions Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 2
  • 3. Tools Covered In This Chapter Action queries (update, append, delete, crosstab, and make-table) Aggregate functions (Avg, Max, Min, Sum) Calculated field Comparison and logical operators Crosstab query Filter by Form and Filter by Selection Find duplicates query Find unmatched records query Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 3
  • 4. Tools Covered In This Chapter Immediate IF (IIF) function Parameter query Design view Select query Simple Query Wizard SQL commands (AS FROM, GROUP BY, HAVING, ORDER BY, SELECT, WHERE) Top Values query Wildcard characters Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 4
  • 5. Level 1 Objectives: Organizing and Retrieving Information from a Database Filter and sort data to make it more meaningful Create simple queries to answer business questions Develop queries using comparison criteria and wildcards Display and print query results Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 5
  • 6. Filtering and Sorting Data Filter Restricts data in single table to create temporary subset of records See only certain records in table based on specified criteria Sorting records Organizing in particular order or sequence Sort records regardless of whether table filtered Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 6
  • 7. Filtering by Selection Tools Filter by Selection Select particular field in datasheet Display only data that matches contents of field Specify only one criterion for filter Filter by Form Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 7
  • 8. Using Filter by Selection to Display a Temporary Subset of Records Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 8
  • 9. Filtering by Form Specify two or more criteria Filter for comparative data Use comparison operators AND criteria Selects records that contain all specified values OR criteria Selects records that contain any specified values Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 9
  • 10. Sorting Data to Increase Information Content Organizes data and increases information value Access sorts records based on primary key values Use sorting to change order To sort Select sort field Sort on multiple fields Move fields in datasheet view so that they are adjacent Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 10
  • 11. Sorting Data To Increase Information Content Primary sort field Access sorts records by this field first Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 11
  • 12. Sorting Types of Data Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 12
  • 13. Filtering Using the Filter Arrow Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 13
  • 14. Using Queries to Answer Business Questions Query Database object Stores criteria for selecting records from one or more tables based Save query Use it again More powerful than filter Display only some fields in table Create fields that perform calculations Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 14
  • 15. Using Queries to Answer Business Questions (continued) Capabilities of Access queries: Display selected fields and records from table Sort records on one or multiple fields Perform calculations Generate data for forms reports and other queries Update data in database Find and display data from two or more tables Create new tables Delete records in table based on one or more criteria Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 15
  • 16. Using Queries to Answer Business Questions (continued) Select query Ask question based on one or more tables in database Result displayed in datasheet Called recordset Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 16
  • 17. Using the Simple Query Wizard to Create a Query Simple query wizard Presents list of tables and queries in database And fields that they contain Select fields from one or more tables Wizard creates and displays results Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 17
  • 18. Advantages and Limitations of the Simple Query Wizard Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 18
  • 19. Including Summary Statistics in a Query for Data Analysis Summary query Groups records Calculate sum, average, minimum, or maximum value in each selected field Count records in table or query Click summary options button Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 19
  • 20. Creating a Summary Query with the Simple Query Wizard Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 20
  • 21. Creating a Query in Design View Select query window in Design view has two sections Area for field lists at top of window Design grid below it Add tables for query to top part of window Appear as field lists Query by example (QBE) Typing search value as a criterion Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 21
  • 22. Query Design View Tools Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 22
  • 23. Creating Queries with Multiple Criteria Most queries involve more than one criterion Represent AND criteria Entering conditions in same criteria row in query design grid Specify OR criteria Use “or” row of query design grid Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 23
  • 24. Setting Criteria for the Query in Design View Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 24
  • 25. Specifying Sort Order in Queries Query results appear in same order as data from underlying tables Unless specify sort order when designing query Sort order determined from left to right Multiple columns must be adjacent to sort on more than one field in datasheet view Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 25
  • 26. Running a Query Click Run button in the Results group on the Design tab Access displays datasheet of records Save query Save only design Not values from tables displayed in results Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 26
  • 27. Enhancing Query Criteria to Improve Data Analysis Expand criteria by using Wildcards Comparison operators Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 27
  • 28. Using Wildcards for Inexact Query Matches Wildcard character Placeholder Stands for one or more characters Memo fields Use same keywords throughout memos Easily retrieve records later Use wildcards when specifying keyword as a query criterion To select records that contain characters before and after keyword Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 28
  • 29. Wildcard Characters Used in Queries Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 29
  • 30. Using Wildcards for Inexact Query Matches (continued) Access inserts Word “LIKE” for criteria with wildcards quotation marks around text LIKE “*Spanish*” Pound signs around dates #12/*/2008# Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 30
  • 31. Using Comparison Operators to Refine Query Criteria Comparison operators Compare value in field with range of values in criterion Clear the grid Start with same field list but blank grid Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 31
  • 32. Comparison Operators Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 32
  • 33. Comparison Operators (continued) Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 33
  • 34. Verifying and Printing Query Results Verify query results before Distributing query to others Using it as basis for decisions Use business knowledge Determine whether results adequately answer question Print query datasheet Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 34
  • 35. Modifying Query Datasheets Improve appearance of query or table datasheet Resize column widths in any datasheet Double-click line between field names to resize columns to best fit Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 35
  • 36. Formatting Options for Query and Table Datasheets Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 36
  • 37. Level 1 Summary Use filtering and sorting to change data display Develop queries using Simple query wizard Design view Use comparison operators and wildcards to make queries more flexible Verify query results using business knowledge Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 37
  • 38. Level 2 Objectives:Creating More Complex Queries Design queries that compare data from more than one table Refine table relationships by specifying the join type Perform calculations in queries Customize queries and their results Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 38
  • 39. Evaluating Data Using Special Types of Queries Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 39
  • 40. Using Queries to Find Duplicate Records Duplicates Query Wizard Searches for duplicate values in fields Improve business operations Designed to identify records that contain same information in particular field Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 40
  • 41. Using Queries to Find Unmatched Records Find Unmatched Query Wizard Compares records in two specified tables or recordsets Finds all records in one table or query that have no related records in second table or query Requires that two tables being compared have common field Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 41
  • 42. Limiting the Records in the Query Results Limiting results to only a few records often aids analysis Top and Bottom Values Sorts and then filters records Display specified number of records that contain top or bottom values Top Values button on Design tab Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 42
  • 43. Top Values Query Design and Results Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 43
  • 44. Using Parameter Values in Queries Parameter values Phrase usually in form of a question or instruction Enclosed in square brackets Serves as prompt to user to enter value Example [Enter a job ID:] Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 44
  • 45. Parameter Query to Allow User Input when the Query Is Run Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 45
  • 46. Analyzing Data from More than One Table Data from more than one table required to answer question Combine records from two or more tables Display only information needed Work in design view to specify criteria for selecting records from multiple tables Lines between tables link primary key to foreign key field Primary key designated with 1 Foreign key designated with ∞ Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 46
  • 47. Analyzing Data from More than One Table (continued) Join tables Linking of tables using primary and foreign keys Established relationship Or Each table shares field with same or compatible data type One join field primary key If tables do not include fields that can be joined Add one or more extra tables or queries Link tables that contain the data Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 47
  • 48. Analyzing Data from More than One Table (continued) Use queries as source of underlying data for another query in place of one or more tables Create queries based on more than one object Should not use any table or query that does not have common field with at least one of the other tables or queries Otherwise Access displays every combination of records between two tables Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 48
  • 49. Refining Relationships with Appropriate Join Types Inner join Displays all records in one table that have corresponding values in common field in another table Records must match before being displayed in query results Outer join Display all records of one table Regardless of whether corresponding record stored in related table Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 49
  • 50. Inner Join Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 50
  • 51. Left Outer Join Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 51
  • 52. Right Outer Join Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 52
  • 53. Refining Relationships with Appropriate Join Types (continued) Outer join types Left Right Use join properties dialog box To change join type By default tables related using inner joins Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 53
  • 54. Using Logical Operators to Specify Multiple Conditions Logical operators Test values that can only be true or false Place conditions in separate fields in same criteria row of design grid All conditions in row must be met to select record NOT logical operator Excludes values that don’t meet criterion Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 54
  • 55. Logical Operators Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 55
  • 56. Performing Calculations with Queries Any information derived from fields in table or query should be calculated in query Rather than included as data in table Calculation types Predefined Compute amounts for groups of records or for all records combined in query Custom Performs numeric date and text computations on each record Using data from one or more fields Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 56
  • 57. Calculating Statistical Information Aggregate functions Arithmetic and statistical operations Apply to records that meet query’s selection criteria Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 57
  • 58. Aggregate Functions Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 58
  • 59. Using Aggregate Functions in a Query Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 59
  • 60. Creating Calculated Fields in a Query Expression Arithmetic formula used to make calculation Use standard arithmetic operators Use parenthesis for complex expressions Calculated field Add to query design grid Type expression Expression builder Build complex expressions Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 60
  • 61. Creating Calculated Fields in a Query (continued) Function Perform standard calculation Return value Date() Provides today’s date Field properties Change format and number of decimal places for calculated field Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 61
  • 62. Field Properties Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 62
  • 63. Concatenating in Queries Concatenation Combining contents of two or more fields Operator & Example Name [EmpFirst]& " " & [EmpLast] Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 63
  • 64. Level 2 Summary Use queries to select data from more than one table Join types Inner Right outer Left outer Calculated field types Predefined Custom Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 64
  • 65. Level 3 Objectives: Exploring Advanced Queries and Queries Written in Structured Query Language Calculate and restructure data to improve analysis Examine and create advanced types of queries Make decisions in a query using the immediate IF (IIF) function Develop queries using SQL Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 65
  • 66. Analyzing Query Calculations Crosstab queries Special type of totals query Performs aggregate function calculations on values of one database field Determine exactly how summary data appears in results Calculate and restructure data Analyze it more easily Work especially well with time-series data Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 66
  • 67. Creating a Crosstab Query To create use Use a wizard Often need to create query first Or design view Start with select query that includes numeric values or summary calculations Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 67
  • 68. Crosstab Field Settings Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 68
  • 69. Modifying Data Using Queries Action queries Modify data in table Add records to or delete records from table Create new table Backup data before using action query Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 69
  • 70. Access Action Queries Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 70
  • 71. Process for Archiving Data Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 71
  • 72. Archiving Data with Make-table Queries Make-table query Creates table from some or all of the fields and records in existing table or query Access does not delete selected fields and records from existing table Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 72
  • 73. Adding Records to Tables with Append Queries Append query Select records from one or more tables by setting criteria Add those records to end of another table Selected records also remain in original tables Table to which records added must already exist Also use to bring data from another source into database Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 73
  • 74. Removing Records from Tables with Delete Queries Delete query Removes information from table Based on specified criteria All records meeting criteria permanently removed from table Create select query first Convert to delete query Cascading deletes Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 74
  • 75. Updating Data with an Update Query Update query Changes values of data in one or more existing tables Create select query first Change type to update query Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 75
  • 76. Making Decisions in Queries IF statement Tests condition Takes one action if condition true Takes another action if condition false IIF function Make if decision Format IIF(condition to test what to do if true, what to do if false) Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 76
  • 77. Customizing Queries Using Structured Query Language Access designed as database management system (DBMS) for Small businesses Or departments within large businesses Structured query language Common query language of most DBMSs Use to query, update, and manage relational databases Create query in design view Access translates entries and criteria into SQL statements Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 77
  • 78. Customizing Queries Using Structured Query Language (continued) View statements by switching from Design view to SQL view SELECT statement defines What data query should retrieve from database How it should present data Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 78
  • 79. Exploring the Components of an SQL Query Keywords Use to construct SQL statements Most developers place each statement on separate line To make SQL code easy to read Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 79
  • 80. Common SQL Keywords Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 80
  • 81. Level 3 Summary Action queries Make new tables Append data Delete data Update data IFF function SQL Use SQL view to edit SQL directly Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 81
  • 82. Chapter Summary Queries retrieve data from one or more tables Action queries update data Perform calculations Make decisions using IFF function SQL Used to interact with relational databases Use SQL view to view/edit SQL statements generated by Access Succeeding in Business with Microsoft Office Access 2007: A Problem-Solving Approach 82