Access: Queries IV Participation Project

Slides:



Advertisements
Similar presentations
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Advertisements

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.
Creating Custom Forms. 2 Design and create a custom form You can create a custom form by modifying an existing form or creating a new form. Either way,
Querying a Database Using the Select Query Window
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.
Build a database IV: Create queries for a new Access database Overview: Ask your data — create queries It’s time to create queries, one of the most powerful.
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
Chapter 2 Querying a Database
Chapter 3 Maintaining a Database
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.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
® Microsoft Access 2010 Tutorial 6 Using Form Tools and Creating Custom Forms.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
1 By: Nour Hilal. Microsoft Access is a database software where data is stored in one or more Tables. A Database is a group of related Tables. Access.
Microsoft ® Access ® 2010 Training Create Queries for a New Database If a yellow security bar appears at the top of the screen in PowerPoint, click Enable.
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.
Tutorial 9 Using Action Queries and Advanced Table Relationships.
MS-ACCESS BY SANGEETHA PARTHASARATHY Topics Covered Understanding different types of Queries Creating a Query Creating a Query using a Wizard Changing.
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.
Microsoft Access Lesson 5 Lexington Technology Center February 25, 2003 Bob Herring On the Web at
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 2 ® Building Queries.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6 – Creating Custom Forms.
Creating Advanced Queries and Enhancing Table Design.
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
® Microsoft Access 2010 Tutorial 9 Using Action Queries and Advanced Table Relationships.
Mail Merge Introduction to Word Processing ITSW 1401 Instructor: Glenda H. Easter Introduction to Word Processing ITSW 1401 Instructor: Glenda H. Easter.
Tutorial 1 Creating a Database
Using Macros, Switchboards, PivotTables, and PivotCharts
Maintaining a Database Using the Design and Update Features of Access
Microsoft Access 2007 – Level 2
Access Maintaining and Querying a Database
Microsoft Access 2013 Bobby Wan.
Maintaining a Database
Practical Office 2007 Chapter 10
Access Tutorial 3 Maintaining and Querying a Database
Access Chapter 2 Querying a Database.
Plug-In T7: Problem Solving Using Access 2007
Objectives Create an action query to create a table
Querying a Database Using the Select Query Window
Access Creating a Database
Microsoft Access 2003 Illustrated Complete
Access Creating a Database
Access Maintaining and Querying a Database
Exploring Microsoft Office Access 2010
Microsoft Office Access 2003
Microsoft Office Access 2003
Access: Access Basics Participation Project
Chapter 1 Databases and Database Objects: An Introduction
Access: Queries II Participation Project
Excel: Solver Participation Project
Access Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Access: Queries I Participation Project
Access: Forms Participation Project
Access: Queries III Participation Project
Lesson 3 Chapter 10.
Access: Reports Participation Project
Tutorial 7 Creating Custom Reports
Tutorial 9 Using Action Queries and Advanced Table Relationships
Assignment 3 Querying and Maintaining a Database
Tutorial 5 Advanced Queries and Enhanced Table Design
Presentation transcript:

Access: Queries IV Participation Project WV K-12 Education Problem WV Senate Problem

Topics Covered Use results from another query in a new query Copy an existing query Use wildcards in query criteria Display unique values in query results Use a parameter query Create a query to update records Create a query to delete records

Use Results from One Query in Another Query Both tables and queries can be used as data sources for queries. For complex situations, it can be helpful to perform initial calculations and processing in earlier queries and then to include those results in a later query.

Use results from another Query in a new Query: Part 1 Go to the Create ribbon. In the Queries section, click the Query Design button. In the Show Table dialog box, go to the Queries tab and add an existing query.

Use results from another Query in a new Query: Part 2 Add needed fields from the existing query to the design grid. Click the Run button. Remember that criteria set on your included queries will impact the records coming into this query.

Copy An Existing Query Right-click on the query in the Query Objects pane and select Copy. Right-click in an empty area on the Query Objects pane and select Paste. When prompted, give your query its own unique name. Click the OK button.

Use Wildcards In Query Criteria: Part 1 By using the LIKE statement with the wildcard symbol (*), you can display records including specific words plus other text. Syntax for criteria: LIKE "*required_text*" In a query, add LIKE criteria on the field which must contain the text. For example, to search for schools that include PK (pre-K), add criteria of LIKE "PK*" Use * wherever you want to allow any other letters

Use Wildcards In Query Criteria: Part 2 Click the Run button to run the query. Look at the results. Notice that all the grades listed begin with PK as specified in the criteria

Display Unique Values In Query Results: Part 1 By displaying only unique (distinct) values, each value will only be shown once even if it appears in multiple records. Go to the Create ribbon. In the Queries section, click the Query Design button. Add fields to the query. In the gray space of the query, right-click and select Properties.

Display Unique Values In Query Results: Part 2 In the Property Sheet pane, make sure the Query Properties are shown. Change the Unique Values option to Yes. Close the Property Sheet pane. Click the Run button.

Use a Parameter Query: Part 1 Parameter queries prompt for query criteria to use when query is run rather than writing it into the query directly. Syntax for criteria: [Prompt to ask user] In a query, add parameter criteria on the field to be filtered. Put the prompt that users will be asked inside of square brackets (e.g., [Enter the school year] )

Use a Parameter Query: Part 2 Click the Run button. When prompted, enter a valid criteria. Click the OK button. The results will now only show records which meet the entered criteria.

Enable Active Content By default, Access does not run queries that will modify existing data. You must enable active content to run update or delete queries. If present, click the Enable Content button in the Security Warning bar near top of screen.

Create a Query to Update Records: Part 1 Update queries modify the values of existing records. Go to the Create ribbon. In the Queries section, click the Query Design button. Add the table containing records to update. In the Query Type section, click the Update button. Select the field you wish to update. In Update To field, enter the new value. In Criteria field, enter old value to replace.

Create a Query to Update Records: Part 2 Click the Run button. Access will display a warning about how many rows are going to be updated. Click the Yes button to finish updating the records.

Create a query to delete records: Part 1 Delete queries remove existing records from the database. Go to the Create ribbon. In the Queries section, click the Query Design button. Add the table containing records to be deleted. Add field(s) you are going to set criteria on. In the Query Type section, click the Delete button. Add criteria for records to delete.

Create a query to delete records: Part 2 Click the Run button. Access will display a warning about how many rows are going to be deleted. Click the Yes button to finish deleting the records.

'ff' WestVuginiaUniversity. COMPUTER SCIENCE 101