SlideShare una empresa de Scribd logo
1 de 34
Tutorial 5

Creating Advanced Queries and Enhancing
              Table Design
 Microsoft Access 2010
                ®
Objectives                                       XP


      • Review table and object naming standards
      • Use the Like, In, Not, and & operators in
        queries
      • Filter data using an AutoFilter
      • Use the IIf function to assign a conditional
        value to a calculated field in a query
      • Create a parameter query



New Perspectives on Microsoft Access 2010                   2
Objectives                                     XP

      • Use query wizards to create a crosstab
        query, a find duplicates query, and a find
        unmatched query
      • Create a top values query
      • Modify table designs using lookup fields, input
        masks, and data validation rules
      • Identify object dependencies
      • Review a Memo field’s properties
      • Designate a trusted folder

New Perspectives on Microsoft Access 2010                 3
Database Naming Conventions           XP




New Perspectives on Microsoft Access 2010        4
Using a Pattern Match in a Query XP
      • A pattern match selects records with a value for
        the designated field that matches the pattern of
        the simple condition value
      • The Like comparison operator selects records by
        matching field values to a specific pattern that
        includes one or more of these wildcard
        characters: asterisk (*), question mark (?), and
        number symbol (#)



New Perspectives on Microsoft Access 2010                  5
Using a List-of-Values Match in a               XP
      Query
      • A list-of-values match selects records whose
        value for the designated field matches one of
        two or more simple condition values
      • The In comparison operator lets you define a
        condition with a list of two or more values for
        a field




New Perspectives on Microsoft Access 2010                  6
Using the Not Logical Operator                 XP
      in a Query
      • The Not logical operator negates a criterion or
        selects records for which the designated field
        does not match the criterion




New Perspectives on Microsoft Access 2010                 7
Using an AutoFilter to Filter Data XP




New Perspectives on Microsoft Access 2010     8
Assigning a Conditional Value                            XP
      to a Calculated Field
      • The & (ampersand) operator is a concatenation
        operator that joins text expressions
      • The IIf (Immediate If) function assigns one value to a
        calculated field or control if a condition is true, and a
        second value if the condition is false
      • The IsNull function tests a field value or an
        expression for a null value; if the field value or
        expression is null, the result is true; otherwise, the
        result is false



New Perspectives on Microsoft Access 2010                           9
Creating a Parameter Query                             XP

      • A parameter query displays a dialog box that
        prompts the user to enter one or more criteria values
        when the query is run
      • Create a select query that includes all fields to appear
        in the query results. Also choose the sort fields and
        set the criteria that do not change when you run the
        query
      • Decide which fields to use as prompts when the
        query runs. In the Criteria box for each of these
        fields, type the prompt you want to appear in a
        dialog box when you run the query, and enclose the
        prompt in brackets
New Perspectives on Microsoft Access 2010                          10
Creating a Parameter Query            XP




New Perspectives on Microsoft Access 2010        11
Creating a Crosstab Query             XP




New Perspectives on Microsoft Access 2010        12
Creating a Crosstab Query                    XP


      • A crosstab query uses aggregate functions to
        perform arithmetic operations on selected
        records




New Perspectives on Microsoft Access 2010               13
Creating a Crosstab Query                           XP

      • In the Queries group on the Create tab, click the
        Query Wizard button
      • In the New Query dialog box, click Crosstab Query
        Wizard, and then click the OK button
      • Complete the Wizard dialog boxes to select the table
        or query on which to base the crosstab query, select
        the row heading field (or fields), select the column
        heading field, select the calculation field and its
        aggregate function, and enter a name for the
        crosstab query


New Perspectives on Microsoft Access 2010                      14
Creating a Crosstab Query             XP




New Perspectives on Microsoft Access 2010        15
Running a Crosstab Query              XP




New Perspectives on Microsoft Access 2010        16
Creating a Find Duplicates Query                       XP

      • A find duplicates query is a select query that finds
        duplicate records in a table or query
      • In the Queries group on the Create tab, click the
        Query Wizard button
      • Click Find Duplicates Query Wizard, and then click the
        OK button
      • Complete the Wizard dialog boxes to select the table
        or query on which to base the query, select the field
        (or fields) to check for duplicate values, select the
        additional fields to include in the query results, enter
        a name for the query, and then click the Finish button
New Perspectives on Microsoft Access 2010                          17
Creating a Find Unmatched QueryXP
      • A find unmatched query is a select query that finds all records
        in a table or query that have no related records in a second
        table or query
      • In the Queries group on the Create tab, click the Query Wizard
        button
      • Click Find Unmatched Query Wizard, and then click the OK
        button
      • Complete the Wizard dialog boxes to select the table or query
        on which to base the new query, select the table or query that
        contains the related records, specify the common field in each
        table or query, select the additional fields to include in the
        query results, enter a name for the query, and then click the
        Finish button

New Perspectives on Microsoft Access 2010                                 18
Creating a Find Unmatched QueryXP




New Perspectives on Microsoft Access 2010   19
Creating a Top Values Query                    XP


      • The Top Values property for a query lets you
        limit the number of records in the query
        results
      • Create a select query with the necessary fields
        and sorting and selection criteria
      • In the Query Setup group on the Design
        tab, enter the number of records (or
        percentage of records) you want selected in
        the Return (Top Values) text box

New Perspectives on Microsoft Access 2010                 20
Creating a Top Values Query           XP




New Perspectives on Microsoft Access 2010        21
Lookup Fields and Input Masks         XP




New Perspectives on Microsoft Access 2010        22
Creating a Lookup Field                         XP


      • A lookup field lets the user select a value from
        a list of possible values
      • You use a Lookup Wizard field in Access to
        create a lookup field in a table




New Perspectives on Microsoft Access 2010                  23
Creating a Lookup Field               XP




New Perspectives on Microsoft Access 2010        24
Using a Lookup Field                  XP




New Perspectives on Microsoft Access 2010        25
Using the Input Mask Wizard                          XP


      • A literal display character is a special
        character that automatically appears in
        specific positions of a field value; users don’t
        need to type literal display characters
         – Input mask




New Perspectives on Microsoft Access 2010                       26
Using the Input Mask Wizard           XP




New Perspectives on Microsoft Access 2010        27
Using the Input Mask Wizard           XP




New Perspectives on Microsoft Access 2010        28
Identifying Object Dependencies               XP


      • An object dependency exists between two
        objects when a change to the properties of
        data in one object affects the properties of
        data in the other object
      • The Object Dependencies pane displays a
        collapsible list of the dependencies among the
        objects in an Access database; you click the
        list’s expand indicators to show or hide
        different levels of dependencies

New Perspectives on Microsoft Access 2010                29
Identifying Object Dependencies       XP




New Perspectives on Microsoft Access 2010        30
Defining Data Validation Rules                       XP

      • To prevent a user from entering an incorrect value in
        the Zip field, you can create a field validation rule
      • The Validation Rule property value specifies the valid
        values that users can enter in a field
      • The Validation Text property value will be displayed
        in a dialog box if the user enters an invalid value
      • A table validation rule compares one field value in a
        table record to another field value in the same record
        to verify their relative accuracy


New Perspectives on Microsoft Access 2010                        31
Defining Data Validation Rules        XP




New Perspectives on Microsoft Access 2010        32
Working with Memo Fields                       XP


      • You use a Memo field for long comments and
        explanations
      • Text fields are limited to 255 characters, but
        Memo fields can hold up to 65,535 characters




New Perspectives on Microsoft Access 2010                 33
Designating a Trusted Folder                       XP

      • A trusted folder is a folder on a drive or network
        that you designate as trusted and where you
        place databases you know are safe




New Perspectives on Microsoft Access 2010                     34

Más contenido relacionado

La actualidad más candente

Defining Table Relationships
Defining Table RelationshipsDefining Table Relationships
Defining Table RelationshipsIIUI
 
basic database concepts
basic database conceptsbasic database concepts
basic database conceptsIIUI
 
Access 2010 Unit B PPT
Access 2010 Unit B PPTAccess 2010 Unit B PPT
Access 2010 Unit B PPTokmomwalking
 
Tutorial 6: Multiple Worksheets and Workbooks
Tutorial 6: Multiple Worksheets and WorkbooksTutorial 6: Multiple Worksheets and Workbooks
Tutorial 6: Multiple Worksheets and Workbookscios135
 
Excel 2010 Unit C PPT
Excel 2010 Unit C PPTExcel 2010 Unit C PPT
Excel 2010 Unit C PPTokmomwalking
 
Access 2010 Unit C PPT
Access 2010 Unit C PPTAccess 2010 Unit C PPT
Access 2010 Unit C PPTokmomwalking
 
Pagelayout & data tab of ms excel 2010
Pagelayout & data tab of ms excel 2010Pagelayout & data tab of ms excel 2010
Pagelayout & data tab of ms excel 2010Nitish Kumar
 
Access 2010 Unit D PPT
Access 2010 Unit D PPTAccess 2010 Unit D PPT
Access 2010 Unit D PPTokmomwalking
 
Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPTokmomwalking
 
Lecture2 slides
Lecture2 slidesLecture2 slides
Lecture2 slidesCyri Jones
 
Access lesson 01 Microsoft Access Basics
Access lesson 01 Microsoft Access BasicsAccess lesson 01 Microsoft Access Basics
Access lesson 01 Microsoft Access BasicsAram SE
 
Understand Charts in Excel - Chapter.03
Understand Charts in Excel - Chapter.03Understand Charts in Excel - Chapter.03
Understand Charts in Excel - Chapter.03chazaabdul
 
Access advanced tutorial
Access advanced tutorialAccess advanced tutorial
Access advanced tutorialcatacata1976
 
Access lesson 02 Creating a Database
Access lesson 02 Creating a DatabaseAccess lesson 02 Creating a Database
Access lesson 02 Creating a DatabaseAram SE
 
Chapter 10.1.3
Chapter 10.1.3Chapter 10.1.3
Chapter 10.1.3patcha535
 
Access lesson05
Access lesson05Access lesson05
Access lesson05Aram 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
 

La actualidad más candente (20)

Defining Table Relationships
Defining Table RelationshipsDefining Table Relationships
Defining Table Relationships
 
basic database concepts
basic database conceptsbasic database concepts
basic database concepts
 
Access.01
Access.01Access.01
Access.01
 
Access 2010 Unit B PPT
Access 2010 Unit B PPTAccess 2010 Unit B PPT
Access 2010 Unit B PPT
 
Tutorial 6: Multiple Worksheets and Workbooks
Tutorial 6: Multiple Worksheets and WorkbooksTutorial 6: Multiple Worksheets and Workbooks
Tutorial 6: Multiple Worksheets and Workbooks
 
Access Introduction
Access IntroductionAccess Introduction
Access Introduction
 
Excel 2010 Unit C PPT
Excel 2010 Unit C PPTExcel 2010 Unit C PPT
Excel 2010 Unit C PPT
 
Access 2010 Unit C PPT
Access 2010 Unit C PPTAccess 2010 Unit C PPT
Access 2010 Unit C PPT
 
Pagelayout & data tab of ms excel 2010
Pagelayout & data tab of ms excel 2010Pagelayout & data tab of ms excel 2010
Pagelayout & data tab of ms excel 2010
 
Access 2010 Unit D PPT
Access 2010 Unit D PPTAccess 2010 Unit D PPT
Access 2010 Unit D PPT
 
Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPT
 
Lecture2 slides
Lecture2 slidesLecture2 slides
Lecture2 slides
 
Base1
Base1Base1
Base1
 
Access lesson 01 Microsoft Access Basics
Access lesson 01 Microsoft Access BasicsAccess lesson 01 Microsoft Access Basics
Access lesson 01 Microsoft Access Basics
 
Understand Charts in Excel - Chapter.03
Understand Charts in Excel - Chapter.03Understand Charts in Excel - Chapter.03
Understand Charts in Excel - Chapter.03
 
Access advanced tutorial
Access advanced tutorialAccess advanced tutorial
Access advanced tutorial
 
Access lesson 02 Creating a Database
Access lesson 02 Creating a DatabaseAccess lesson 02 Creating a Database
Access lesson 02 Creating a Database
 
Chapter 10.1.3
Chapter 10.1.3Chapter 10.1.3
Chapter 10.1.3
 
Access lesson05
Access lesson05Access lesson05
Access lesson05
 
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
 

Destacado

Ms Access ppt
Ms Access pptMs Access ppt
Ms Access pptanuj
 
Access 2013 Unit C
Access 2013 Unit CAccess 2013 Unit C
Access 2013 Unit Cjarana00
 
Access 2013 Unit B
Access 2013 Unit BAccess 2013 Unit B
Access 2013 Unit Bjarana00
 
Computer Concepts Unit A 2013
Computer Concepts Unit A 2013Computer Concepts Unit A 2013
Computer Concepts Unit A 2013jarana00
 
Discovering Computers: Chapter 11
Discovering Computers: Chapter 11Discovering Computers: Chapter 11
Discovering Computers: Chapter 11Anna Stirling
 
Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)teng113
 
Access 2016 module 4 ppt presentation
Access 2016 module 4 ppt presentationAccess 2016 module 4 ppt presentation
Access 2016 module 4 ppt presentationdgdotson
 
Discovering Computers: Chapter 10
Discovering Computers: Chapter 10Discovering Computers: Chapter 10
Discovering Computers: Chapter 10Anna Stirling
 
Access 2016 module 3 ppt presentation
Access 2016 module 3 ppt presentationAccess 2016 module 3 ppt presentation
Access 2016 module 3 ppt presentationdgdotson
 
Access 2016 module 2 ppt presentation
Access 2016 module 2 ppt presentationAccess 2016 module 2 ppt presentation
Access 2016 module 2 ppt presentationdgdotson
 
Access 2013 Unit D
Access 2013 Unit DAccess 2013 Unit D
Access 2013 Unit Djarana00
 
Access 2016 module 1 ppt presentation
Access 2016 module 1 ppt presentationAccess 2016 module 1 ppt presentation
Access 2016 module 1 ppt presentationdgdotson
 
Access 2013 Unit A
Access 2013 Unit AAccess 2013 Unit A
Access 2013 Unit Ajarana00
 
Discovering Computers: Chapter 06
Discovering Computers: Chapter 06Discovering Computers: Chapter 06
Discovering Computers: Chapter 06Anna Stirling
 
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
 
Discovering Computers: Chapter 09
Discovering Computers: Chapter 09Discovering Computers: Chapter 09
Discovering Computers: Chapter 09Anna Stirling
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms accessjigeno
 

Destacado (20)

Ms Access ppt
Ms Access pptMs Access ppt
Ms Access ppt
 
Access 2013 Unit C
Access 2013 Unit CAccess 2013 Unit C
Access 2013 Unit C
 
Access 2013 Unit B
Access 2013 Unit BAccess 2013 Unit B
Access 2013 Unit B
 
Computer Concepts Unit A 2013
Computer Concepts Unit A 2013Computer Concepts Unit A 2013
Computer Concepts Unit A 2013
 
MS Access 2010 tutorial 5
MS Access 2010 tutorial 5MS Access 2010 tutorial 5
MS Access 2010 tutorial 5
 
Discovering Computers: Chapter 11
Discovering Computers: Chapter 11Discovering Computers: Chapter 11
Discovering Computers: Chapter 11
 
Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)Ms access 2010 lesson 3 (Interface)
Ms access 2010 lesson 3 (Interface)
 
001.general
001.general001.general
001.general
 
Access 2016 module 4 ppt presentation
Access 2016 module 4 ppt presentationAccess 2016 module 4 ppt presentation
Access 2016 module 4 ppt presentation
 
Discovering Computers: Chapter 10
Discovering Computers: Chapter 10Discovering Computers: Chapter 10
Discovering Computers: Chapter 10
 
Access 2016 module 3 ppt presentation
Access 2016 module 3 ppt presentationAccess 2016 module 3 ppt presentation
Access 2016 module 3 ppt presentation
 
Access 2016 module 2 ppt presentation
Access 2016 module 2 ppt presentationAccess 2016 module 2 ppt presentation
Access 2016 module 2 ppt presentation
 
Access 2013 Unit D
Access 2013 Unit DAccess 2013 Unit D
Access 2013 Unit D
 
Access 2016 module 1 ppt presentation
Access 2016 module 1 ppt presentationAccess 2016 module 1 ppt presentation
Access 2016 module 1 ppt presentation
 
Access 2013
Access 2013 Access 2013
Access 2013
 
Access 2013 Unit A
Access 2013 Unit AAccess 2013 Unit A
Access 2013 Unit A
 
Discovering Computers: Chapter 06
Discovering Computers: Chapter 06Discovering Computers: Chapter 06
Discovering Computers: Chapter 06
 
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...
 
Discovering Computers: Chapter 09
Discovering Computers: Chapter 09Discovering Computers: Chapter 09
Discovering Computers: Chapter 09
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms access
 

Similar a ADVANCED QUERIES AND TABLE DESIGN

Tutorial 11: Connecting to External Data
Tutorial 11: Connecting to External DataTutorial 11: Connecting to External Data
Tutorial 11: Connecting to External Datacios135
 
Tutorial 10: Performing What-IF Analyses
Tutorial 10: Performing What-IF AnalysesTutorial 10: Performing What-IF Analyses
Tutorial 10: Performing What-IF Analysescios135
 
Tutorial 8: Developing an Excel Application
Tutorial 8: Developing an Excel ApplicationTutorial 8: Developing an Excel Application
Tutorial 8: Developing an Excel Applicationcios135
 
Tutorial 5: Excel Tables, PivotTables, and Pivot Charts
Tutorial 5: Excel Tables, PivotTables, and Pivot ChartsTutorial 5: Excel Tables, PivotTables, and Pivot Charts
Tutorial 5: Excel Tables, PivotTables, and Pivot Chartscios135
 
Access Chapter 02
Access Chapter 02Access Chapter 02
Access Chapter 02jgardne4
 
Tutorial 7: Advanced Functions and Conitional Formating
Tutorial 7: Advanced Functions and Conitional FormatingTutorial 7: Advanced Functions and Conitional Formating
Tutorial 7: Advanced Functions and Conitional Formatingcios135
 
Tutorial 3 Working with Formulas and Functions
Tutorial 3 Working with Formulas and FunctionsTutorial 3 Working with Formulas and Functions
Tutorial 3 Working with Formulas and Functionscios135
 
Excel2010 05-130206153751-phpapp01
Excel2010 05-130206153751-phpapp01Excel2010 05-130206153751-phpapp01
Excel2010 05-130206153751-phpapp01Vishal Kumar
 
MS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.ppt
MS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.pptMS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.ppt
MS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.pptJoshCasas1
 
Chapter 7 Designing a web form
Chapter 7 Designing a web formChapter 7 Designing a web form
Chapter 7 Designing a web formDr. Ahmed Al Zaidy
 
Chapter 13 Programming for web forms
Chapter 13 Programming for web formsChapter 13 Programming for web forms
Chapter 13 Programming for web formsDr. Ahmed Al Zaidy
 
Access lesson 03 Creating Queries
Access lesson 03 Creating QueriesAccess lesson 03 Creating Queries
Access lesson 03 Creating QueriesAram SE
 
Ch02 Access
Ch02 AccessCh02 Access
Ch02 AccessD
 
Access Chapter 02
Access Chapter 02Access Chapter 02
Access Chapter 02xtin101
 

Similar a ADVANCED QUERIES AND TABLE DESIGN (20)

Access.05
Access.05Access.05
Access.05
 
Tutorial 11: Connecting to External Data
Tutorial 11: Connecting to External DataTutorial 11: Connecting to External Data
Tutorial 11: Connecting to External Data
 
Tutorial 10: Performing What-IF Analyses
Tutorial 10: Performing What-IF AnalysesTutorial 10: Performing What-IF Analyses
Tutorial 10: Performing What-IF Analyses
 
Tutorial 8: Developing an Excel Application
Tutorial 8: Developing an Excel ApplicationTutorial 8: Developing an Excel Application
Tutorial 8: Developing an Excel Application
 
Tutorial 5: Excel Tables, PivotTables, and Pivot Charts
Tutorial 5: Excel Tables, PivotTables, and Pivot ChartsTutorial 5: Excel Tables, PivotTables, and Pivot Charts
Tutorial 5: Excel Tables, PivotTables, and Pivot Charts
 
Access Chapter 02
Access Chapter 02Access Chapter 02
Access Chapter 02
 
Tutorial 7: Advanced Functions and Conitional Formating
Tutorial 7: Advanced Functions and Conitional FormatingTutorial 7: Advanced Functions and Conitional Formating
Tutorial 7: Advanced Functions and Conitional Formating
 
Excel 2010 data tab
Excel 2010 data tabExcel 2010 data tab
Excel 2010 data tab
 
Tutorial 3 Working with Formulas and Functions
Tutorial 3 Working with Formulas and FunctionsTutorial 3 Working with Formulas and Functions
Tutorial 3 Working with Formulas and Functions
 
Excel2010 05-130206153751-phpapp01
Excel2010 05-130206153751-phpapp01Excel2010 05-130206153751-phpapp01
Excel2010 05-130206153751-phpapp01
 
Chapter.10
Chapter.10Chapter.10
Chapter.10
 
MS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.ppt
MS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.pptMS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.ppt
MS ACCESS DEFINING DESIGN VIEW AND DATASHEET VIEW.ppt
 
a2-110.ppt
a2-110.ppta2-110.ppt
a2-110.ppt
 
Chapter 7 Designing a web form
Chapter 7 Designing a web formChapter 7 Designing a web form
Chapter 7 Designing a web form
 
Chapter 13 Programming for web forms
Chapter 13 Programming for web formsChapter 13 Programming for web forms
Chapter 13 Programming for web forms
 
06 Excel.pdf
06 Excel.pdf06 Excel.pdf
06 Excel.pdf
 
Access lesson 03 Creating Queries
Access lesson 03 Creating QueriesAccess lesson 03 Creating Queries
Access lesson 03 Creating Queries
 
Ch02 Access
Ch02 AccessCh02 Access
Ch02 Access
 
Excel.t03
Excel.t03Excel.t03
Excel.t03
 
Access Chapter 02
Access Chapter 02Access Chapter 02
Access Chapter 02
 

Más de Anna Stirling

Technology Training in the California Community College System
Technology Training in the California Community College SystemTechnology Training in the California Community College System
Technology Training in the California Community College SystemAnna Stirling
 
Discovering Computers: Chapter 15
Discovering Computers: Chapter 15Discovering Computers: Chapter 15
Discovering Computers: Chapter 15Anna Stirling
 
Discovering Computers: Chapter 14
Discovering Computers: Chapter 14Discovering Computers: Chapter 14
Discovering Computers: Chapter 14Anna Stirling
 
Discovering Computers: Chapter 13
Discovering Computers: Chapter 13Discovering Computers: Chapter 13
Discovering Computers: Chapter 13Anna Stirling
 
Discovering Computers: Chapter 12
Discovering Computers: Chapter 12Discovering Computers: Chapter 12
Discovering Computers: Chapter 12Anna Stirling
 
Discovering Computers: Chapter 08
Discovering Computers: Chapter 08Discovering Computers: Chapter 08
Discovering Computers: Chapter 08Anna Stirling
 
Discovering Computers: Chapter 07
Discovering Computers: Chapter 07Discovering Computers: Chapter 07
Discovering Computers: Chapter 07Anna Stirling
 
Discovering Computers: Chapter 05
Discovering Computers: Chapter 05Discovering Computers: Chapter 05
Discovering Computers: Chapter 05Anna Stirling
 
Discovering Computers: Chapter 04
Discovering Computers: Chapter 04Discovering Computers: Chapter 04
Discovering Computers: Chapter 04Anna Stirling
 
Discovering Computers: Chapter 03
Discovering Computers: Chapter 03Discovering Computers: Chapter 03
Discovering Computers: Chapter 03Anna Stirling
 
Discovering Computers: Chapter 02
Discovering Computers: Chapter 02Discovering Computers: Chapter 02
Discovering Computers: Chapter 02Anna Stirling
 
Discovering Computers: Chapter 01
Discovering Computers: Chapter 01Discovering Computers: Chapter 01
Discovering Computers: Chapter 01Anna Stirling
 

Más de Anna Stirling (12)

Technology Training in the California Community College System
Technology Training in the California Community College SystemTechnology Training in the California Community College System
Technology Training in the California Community College System
 
Discovering Computers: Chapter 15
Discovering Computers: Chapter 15Discovering Computers: Chapter 15
Discovering Computers: Chapter 15
 
Discovering Computers: Chapter 14
Discovering Computers: Chapter 14Discovering Computers: Chapter 14
Discovering Computers: Chapter 14
 
Discovering Computers: Chapter 13
Discovering Computers: Chapter 13Discovering Computers: Chapter 13
Discovering Computers: Chapter 13
 
Discovering Computers: Chapter 12
Discovering Computers: Chapter 12Discovering Computers: Chapter 12
Discovering Computers: Chapter 12
 
Discovering Computers: Chapter 08
Discovering Computers: Chapter 08Discovering Computers: Chapter 08
Discovering Computers: Chapter 08
 
Discovering Computers: Chapter 07
Discovering Computers: Chapter 07Discovering Computers: Chapter 07
Discovering Computers: Chapter 07
 
Discovering Computers: Chapter 05
Discovering Computers: Chapter 05Discovering Computers: Chapter 05
Discovering Computers: Chapter 05
 
Discovering Computers: Chapter 04
Discovering Computers: Chapter 04Discovering Computers: Chapter 04
Discovering Computers: Chapter 04
 
Discovering Computers: Chapter 03
Discovering Computers: Chapter 03Discovering Computers: Chapter 03
Discovering Computers: Chapter 03
 
Discovering Computers: Chapter 02
Discovering Computers: Chapter 02Discovering Computers: Chapter 02
Discovering Computers: Chapter 02
 
Discovering Computers: Chapter 01
Discovering Computers: Chapter 01Discovering Computers: Chapter 01
Discovering Computers: Chapter 01
 

Último

Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxMichelleTuguinay1
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsPooky Knightsmith
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...DhatriParmar
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWQuiz Club NITW
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxDhatriParmar
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 

Último (20)

Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptxDIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
DIFFERENT BASKETRY IN THE PHILIPPINES PPT.pptx
 
Mental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young mindsMental Health Awareness - a toolkit for supporting young minds
Mental Health Awareness - a toolkit for supporting young minds
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
Blowin' in the Wind of Caste_ Bob Dylan's Song as a Catalyst for Social Justi...
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptxMan or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
Man or Manufactured_ Redefining Humanity Through Biopunk Narratives.pptx
 
Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"Mattingly "AI & Prompt Design: Large Language Models"
Mattingly "AI & Prompt Design: Large Language Models"
 
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptxINCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
INCLUSIVE EDUCATION PRACTICES FOR TEACHERS AND TRAINERS.pptx
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 

ADVANCED QUERIES AND TABLE DESIGN

  • 1. Tutorial 5 Creating Advanced Queries and Enhancing Table Design Microsoft Access 2010 ®
  • 2. Objectives XP • Review table and object naming standards • Use the Like, In, Not, and & operators in queries • Filter data using an AutoFilter • Use the IIf function to assign a conditional value to a calculated field in a query • Create a parameter query New Perspectives on Microsoft Access 2010 2
  • 3. Objectives XP • Use query wizards to create a crosstab query, a find duplicates query, and a find unmatched query • Create a top values query • Modify table designs using lookup fields, input masks, and data validation rules • Identify object dependencies • Review a Memo field’s properties • Designate a trusted folder New Perspectives on Microsoft Access 2010 3
  • 4. Database Naming Conventions XP New Perspectives on Microsoft Access 2010 4
  • 5. Using a Pattern Match in a Query XP • A pattern match selects records with a value for the designated field that matches the pattern of the simple condition value • The Like comparison operator selects records by matching field values to a specific pattern that includes one or more of these wildcard characters: asterisk (*), question mark (?), and number symbol (#) New Perspectives on Microsoft Access 2010 5
  • 6. Using a List-of-Values Match in a XP Query • A list-of-values match selects records whose value for the designated field matches one of two or more simple condition values • The In comparison operator lets you define a condition with a list of two or more values for a field New Perspectives on Microsoft Access 2010 6
  • 7. Using the Not Logical Operator XP in a Query • The Not logical operator negates a criterion or selects records for which the designated field does not match the criterion New Perspectives on Microsoft Access 2010 7
  • 8. Using an AutoFilter to Filter Data XP New Perspectives on Microsoft Access 2010 8
  • 9. Assigning a Conditional Value XP to a Calculated Field • The & (ampersand) operator is a concatenation operator that joins text expressions • The IIf (Immediate If) function assigns one value to a calculated field or control if a condition is true, and a second value if the condition is false • The IsNull function tests a field value or an expression for a null value; if the field value or expression is null, the result is true; otherwise, the result is false New Perspectives on Microsoft Access 2010 9
  • 10. Creating a Parameter Query XP • A parameter query displays a dialog box that prompts the user to enter one or more criteria values when the query is run • Create a select query that includes all fields to appear in the query results. Also choose the sort fields and set the criteria that do not change when you run the query • Decide which fields to use as prompts when the query runs. In the Criteria box for each of these fields, type the prompt you want to appear in a dialog box when you run the query, and enclose the prompt in brackets New Perspectives on Microsoft Access 2010 10
  • 11. Creating a Parameter Query XP New Perspectives on Microsoft Access 2010 11
  • 12. Creating a Crosstab Query XP New Perspectives on Microsoft Access 2010 12
  • 13. Creating a Crosstab Query XP • A crosstab query uses aggregate functions to perform arithmetic operations on selected records New Perspectives on Microsoft Access 2010 13
  • 14. Creating a Crosstab Query XP • In the Queries group on the Create tab, click the Query Wizard button • In the New Query dialog box, click Crosstab Query Wizard, and then click the OK button • Complete the Wizard dialog boxes to select the table or query on which to base the crosstab query, select the row heading field (or fields), select the column heading field, select the calculation field and its aggregate function, and enter a name for the crosstab query New Perspectives on Microsoft Access 2010 14
  • 15. Creating a Crosstab Query XP New Perspectives on Microsoft Access 2010 15
  • 16. Running a Crosstab Query XP New Perspectives on Microsoft Access 2010 16
  • 17. Creating a Find Duplicates Query XP • A find duplicates query is a select query that finds duplicate records in a table or query • In the Queries group on the Create tab, click the Query Wizard button • Click Find Duplicates Query Wizard, and then click the OK button • Complete the Wizard dialog boxes to select the table or query on which to base the query, select the field (or fields) to check for duplicate values, select the additional fields to include in the query results, enter a name for the query, and then click the Finish button New Perspectives on Microsoft Access 2010 17
  • 18. Creating a Find Unmatched QueryXP • A find unmatched query is a select query that finds all records in a table or query that have no related records in a second table or query • In the Queries group on the Create tab, click the Query Wizard button • Click Find Unmatched Query Wizard, and then click the OK button • Complete the Wizard dialog boxes to select the table or query on which to base the new query, select the table or query that contains the related records, specify the common field in each table or query, select the additional fields to include in the query results, enter a name for the query, and then click the Finish button New Perspectives on Microsoft Access 2010 18
  • 19. Creating a Find Unmatched QueryXP New Perspectives on Microsoft Access 2010 19
  • 20. Creating a Top Values Query XP • The Top Values property for a query lets you limit the number of records in the query results • Create a select query with the necessary fields and sorting and selection criteria • In the Query Setup group on the Design tab, enter the number of records (or percentage of records) you want selected in the Return (Top Values) text box New Perspectives on Microsoft Access 2010 20
  • 21. Creating a Top Values Query XP New Perspectives on Microsoft Access 2010 21
  • 22. Lookup Fields and Input Masks XP New Perspectives on Microsoft Access 2010 22
  • 23. Creating a Lookup Field XP • A lookup field lets the user select a value from a list of possible values • You use a Lookup Wizard field in Access to create a lookup field in a table New Perspectives on Microsoft Access 2010 23
  • 24. Creating a Lookup Field XP New Perspectives on Microsoft Access 2010 24
  • 25. Using a Lookup Field XP New Perspectives on Microsoft Access 2010 25
  • 26. Using the Input Mask Wizard XP • A literal display character is a special character that automatically appears in specific positions of a field value; users don’t need to type literal display characters – Input mask New Perspectives on Microsoft Access 2010 26
  • 27. Using the Input Mask Wizard XP New Perspectives on Microsoft Access 2010 27
  • 28. Using the Input Mask Wizard XP New Perspectives on Microsoft Access 2010 28
  • 29. Identifying Object Dependencies XP • An object dependency exists between two objects when a change to the properties of data in one object affects the properties of data in the other object • The Object Dependencies pane displays a collapsible list of the dependencies among the objects in an Access database; you click the list’s expand indicators to show or hide different levels of dependencies New Perspectives on Microsoft Access 2010 29
  • 30. Identifying Object Dependencies XP New Perspectives on Microsoft Access 2010 30
  • 31. Defining Data Validation Rules XP • To prevent a user from entering an incorrect value in the Zip field, you can create a field validation rule • The Validation Rule property value specifies the valid values that users can enter in a field • The Validation Text property value will be displayed in a dialog box if the user enters an invalid value • A table validation rule compares one field value in a table record to another field value in the same record to verify their relative accuracy New Perspectives on Microsoft Access 2010 31
  • 32. Defining Data Validation Rules XP New Perspectives on Microsoft Access 2010 32
  • 33. Working with Memo Fields XP • You use a Memo field for long comments and explanations • Text fields are limited to 255 characters, but Memo fields can hold up to 65,535 characters New Perspectives on Microsoft Access 2010 33
  • 34. Designating a Trusted Folder XP • A trusted folder is a folder on a drive or network that you designate as trusted and where you place databases you know are safe New Perspectives on Microsoft Access 2010 34