MS-ACCESS BY SANGEETHA PARTHASARATHY Topics Covered Understanding different types of Queries Creating a Query Creating a Query using a Wizard Changing.

Slides:



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

The Ribbon Standard to all Office 2007 applications Organized by feature and functionality Navigation Pane Access to all objects in the current database.
1 After completing this lesson, you will be able to: Create a database. Create a table using the Table Wizard. Create and modify a table in Design view.
Microsoft Access 2010 Chapter 2 Querying a Database.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Access Lesson 8 Using Advanced Queries Microsoft Office 2010 Advanced Cable / Morrison 1.
Access Lesson 2 Creating a Database
Microsoft Office 2007 Access Chapter 2 Querying a Database.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 2 Querying a Database Using the Select Query Window.
Access Tutorial 3 Maintaining and Querying a Database
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 3 1 Microsoft Office Access 2003 Tutorial 3 – Querying a Database.
XP Chapter 3 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Analyzing Data For Effective Decision Making.
Querying a Database Using the Select Query Window
Querying a Database Microsoft Office Access 2003.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 3 Maintaining a Database Using the Design and Update Features of Access.
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Chapter 2 Querying a Database
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
Chapter 3 Maintaining a Database
Maintaining and Querying a Database Microsoft Access 2010.
Copyright 2007, Paradigm Publishing Inc. BACKNEXTEND 3-1 LINKS TO OBJECTIVES Save a Filter as a Query Save a Filter as a Query Parameter Query Inner, Left,
© Paradigm Publishing, Inc Access 2010 Level 2 Unit 1Advanced Tables, Relationships, Queries, and Forms Chapter 3Advanced Query Techniques.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
Lesson 31: Querying a Database. 2 Learning Objectives After studying this lesson, you will be able to:  Create, save, and run select queries  Design.
You can use a query to view a subset of your data or to answer questions about your data. For example, if you want to view a list of student names and.
Chapter 1 Databases and Database Objects: An Introduction
Queries. What is a query? A query is actually the name for any database manipulation operation. The most commonly used type is a select query, which is.
Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin TECHNOLOGY PLUG-IN T8 DECISION MAKING USING ACCESS.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Access 2003 Lab 3 Analyzing Data and Creating Reports.
Microsoft Access 2010 Building and Using Queries.
Analyzing Data For Effective Decision Making Chapter 3.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 6 – Designing.
Lesson 2.  To help ensure accurate data, rules that check entries against specified values can be applied to a field. A validation rule is applied to.
Course ILT Access basics Unit objectives Define database and database-related terminology, and plan a database Start Access and open, create, view, and.
Microsoft Office 2007 Access Chapter 2 Querying a Database.
MS-ACCESS BY SANGEETHA PARTHASARATHY Topics to be covered §Comparing Values in Selection Criteria §Calculating Values in a Query §Changing the appearance.
Database Systems Microsoft Access Practical #3 Queries Nos 215.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T7 PROBLEM SOLVING USING ACCESS.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
1 After completing this lesson, you will be able to: Create and run a query. Specify criteria in a query. Create a calculated field. Create a multiple-table.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
1 Access Lesson 3 Creating Queries. 2 Creating a Query with the Simple Query Wizard Query-- database object that lets you ask the database about the data.
© Paradigm Publishing, Inc Access 2010 Level 1 Unit 1Creating Tables and Queries Chapter 3Performing Queries.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
T7-1 LEARNING OUTCOMES – ACCESS PROBLEM SOLVING 1.Describe the process of using the Simple Query Wizard using Access 2.Describe the process of using the.
Microsoft Access 2000 Presentation 5 Creating Databases Part IV (Creating Queries)
Key Applications Module Lesson 22 — Managing and Reporting Database Information Computer Literacy BASICS.
Microsoft Access Lesson 5 Lexington Technology Center February 25, 2003 Bob Herring On the Web at
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 2 Querying a Database Using the Select Query Window.
Lesson 4: Querying a Database. 2 Learning Objectives After studying this lesson, you will be able to:  Create, save, and run select queries  Set query.
1 11 Chapter 7 Action Queries Exploring Microsoft Office Access 2007.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
Access Tutorial 3 Maintaining and Querying a Database
Access Chapter 2 Querying a Database.
Objectives Query for top values Create a parameter query
Objectives Create an action query to create a table
Querying a Database Using the Select Query Window
Creating and Using a Database
Microsoft Access 2003 Illustrated Complete
Access: Queries IV Participation Project
Tutorial 9 Using Action Queries and Advanced Table Relationships
New Perspectives on Microsoft
Presentation transcript:

MS-ACCESS BY SANGEETHA PARTHASARATHY

Topics Covered Understanding different types of Queries Creating a Query Creating a Query using a Wizard Changing Fields in a Query Retriving selective records Creating a Query to summarize values Display a query in design view

Understanding different types of Queries Select Query :This retrives and displays records in the Table window in Datasheet View. Crosstab Query : This displays summarized values(sums,count,average) from one field in a table and groups them by one set of fields in the left side of datasheet and another set of fields listed across the top of the datasheet. Action Query:`This performs operations that match the criteria. Cont

Action Queries : There are four kinds of queries. (I) Delete Queries-Delete matching records from atable (ii) Update Queries-Make changes to matching records in a table (iii) Append Queries-Add new records to the end of the table (records not matching your criteria are added to the table) (iv) Make- Table Queries - Create new tables based on matching records. Parameter Query: Allows you to prompt for a single piece of information to use as selection criteria in the query. For example: To find customer information in each state, we could enter state as a parameter to retrieve the records.

Creating a Query In the Database Window,click Queries tab,and then Click New. In the New Query Dialog box,click Design view,and then click OK. Select the table or Query containing the records you want to retrieve. Click Add. Click Close to display the query in Design view. In the field list at the top part of the design view window,double-click each field you want to include. In the Design grid,enter search criteria in the Criteria box. Click the Sort drop-down arrow to specify a sort order for the records. Click the Save button on the Query Design Toolbar,type a name to save the query.

Create a Query using a Query Wizard In the Queries tab in the Database Window,Click New button and Click the Wizard that corresponds to your kind of query. Click the Table/Queries drop down arrow and select a table with fields to include in the query. Click each available field that has to included and click Add button(>). To include all,Click Add All(>>). Click Next to continue. If you have selected numeric fields and want a summary of it, Click Summary Options to specify the calculation for the field. Click Next to continue. In the final wizard dialog box,type the name of the query. Click an option to view the query results or display the query in Design view. Click Finish.

Add a Field to a Query Display the query in Design view. In the field list at the top of the Design view window,double-click a field name to place the field in the next available column in the design grid, or click and drag a field to a specific column in the design grid.

Remove a Field from Query Display the Query in Design View. Select the field by clicking its column selector and press Delete. When you remove a field from a query design grid you are only removing it from the query specifications and not from the underlying table.

Add a Field from Another Table to a Query Display the query in Design view. Click the Show Table button on the Query Design Toolbar. Select the table that contains the fields you want to include in the query. Click Add. Click Close. Double-click or drag the fields you want to include to the design grid.

Retrieving records with Criteria Display the query in Design view. Click the Criteria box for the field for which you want to define a selection criteria. Type the first criterion you want for the Query.

Expand the Criteria with OR Display the Query in Design View. In the Criteria row, type the first criteria you want for the query. For each additional OR criteria,enter the criteria in a separate “or” row for the field.

Restrict Criteria with an AND condition Display the query in Design view. In the Criteria row, enter the first criteria you want for the query. In the same Criteria row, enter the additional AND Criteria for the other field(s) in the query.

Create a Parameter Query to Prompt you a Criteria Display the Query in Design view. Click the Criteria box for the field for which you want to be prompted to enter a value. Type the text of your prompt surrounded by square brackets. Click the Run Button on the Query Design Toolbar. Enter the criteria information. Click OK.

Create a Crosstab Query From the Queries tab in the Database Window,Click New,Click Crosstab Wizard, and then click OK. From the list at the top of the dialog box,select the table or query that contains the records you want to retrieve,and then click Next. Select the fields for the rows in the Crosstab Query, and then Click Next. Select the field for the columns in the Crosstab Query, and then click Next. Cont

In the Fields box,click the field whose values you want to be calculated and displayed for each row and column intersection. In the Functions box,click the function you want for the calculation to be performed. Click the check box if you want to see a total for each row, or clear the check box if you do not want to see a total for each row. Click Next to display the final Crosstab Query Wizard dialog box. Type a name for your Query. Click Finish.

Change to Design View from the Database Window In the Database Window,select the Query whose design you want to use. Click Design.

Switch Between Design and Datasheet View In Design View,click the View button on the Query Design Toolbar. In Datasheet view,click the View button on the Table Datasheet Toolbar.