ACCESS PROJECT TWO. PROJECT ONE In project one you: -Created Tables -Created Forms -Created Reports In this project you will learn about queries. Databases.

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.
Customizing Reports. Custom Reports A report is a formatted hardcopy of the contents of one or more tables from a database. Although you can format and.
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
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 New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Querying a Database Using the Select Query Window
Staff Development Daze June 27 & 28 Tony Gauvin. Schedule  Monday June 27  Monday June 27  9:00 – 12:00 Basic Excel  12:00 – 1:00 Lunch for all workshop.
Creating And Maintaining A Database. 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of.
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.
Inventory Throughout this slide show there will be hyperlinks (highlighted in blue) follow the hyperlinks to navigate to the specified Topic or Figure.
Access Tutorial 3 Maintaining and Querying a Database
Datasheets II: Sum, sort, filter, and find your data Overview: Sum it up, and more Access 2007 makes it easier than ever to perform math functions on your.
Chapter 2 Querying a Database
Chapter 3 Maintaining a Database
Maintaining and Querying a Database Microsoft Access 2010.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
Database Applications – Microsoft Access Lesson 9 Designing Special Queries Updated 4/11.
Database Applications – Microsoft Access Lesson 9 Designing Special Queries.
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
Chapter 6 Advanced Report Techniques
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Web Feature Data Access Pages.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
Microsoft ® Office Access ® 2007 Training Datasheets II: Sum, sort, filter, and find your data ICT Staff Development presents:
Database Queries. Queries Queries are questions used to retrieve information from a database. Contain criteria to specify the records and fields to be.
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.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 6 Switchboards, PivotTables, and PivotCharts.
Microsoft Access 2000 Presentation 2 Creating Databases Part I (Creating Tables)
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.
XP New Perspectives on Microsoft Access 2002 Tutorial 21 Microsoft Access Tutorial 2 – Creating And Maintaining A Database.
Microsoft Office 2007 Access Chapter 2 Querying a Database.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Chapter 17 Creating a Database.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Access Project 7 Advanced Report and Form Techniques.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T7 PROBLEM SOLVING USING ACCESS.
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
For additional assistance, please call the Help Desk Searching 1. If a Search window does not appear after logging into the system, click the Search icon.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T7: Problem Solving Using Access 2007 Business Driven Technology.
Using Microsoft Access Now that data has been entered we are ready to sort or data To do this, first click on the field label which you want to sort If.
You can sort Access data so you can view records in the order you want to view them, and you can filter data so you only see the records you want to see.
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.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Work with Tables and Database Records Lesson 3. NAVIGATING AMONG RECORDS Access users who prefer using the keyboard to navigate records can press keys.
DAY 18: MICROSOFT ACCESS – CHAPTER 3 CONTD. Akhila Kondai October 21, 2013.
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.
Filters, Queries and Reports. Filters Limit the data, creating a dataset, or partial view of the whole database Single use – filters do not save with.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 2 ® Building Queries.
Access Module Implementing a Database with Microsoft Access A Great Module on Your CD.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T7: Problem Solving Using Access 2007 Business Driven Technology.
MICROSOFT ACCESS – CHAPTER 3 CONTD. Sravanthi Lakkimsetty Mar 09, 2016.
Maintaining a Database Using the Design and Update Features of Access
Maintaining a Database
Microsoft Office Illustrated Introductory, Windows Vista Edition
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
Tutorial 3 – Querying a Database
Presentation transcript:

ACCESS PROJECT TWO

PROJECT ONE In project one you: -Created Tables -Created Forms -Created Reports In this project you will learn about queries. Databases are meant to be searched to retrieve information, and that is what queries are – searches.

Queries Queries are used to find the answers for questions like: - Who hasn’t paid their bill? -How many clients do we have in Saskatoon? -How many of our client have spent more than $ in our company?

1. To begin this project, open the Fishley Inc database that you created in IP10. Then look for the Queries option on the database window and choose Create query using Design View.

2. You should now see this screen. Choose Client and select Add, and then close the Show Table window.

3. Click on the Maximize button to expand the window. Then adjust the size of the Client Field List and the size of the panes by dragging the Dividing Line.

4. Now we are ready to add fields to the Design Grid to answer a question or retrieve information. We would like to find out the Technician for each Client. This means we need to include the Client Number, Name, and Technician Number. To include a field, we simply double-click on the field we want.

5. Once we have added the desired fields, we RUN the query by clicking the Run button.

Our query should look like this: Click on the disk to save it, and call it query 1. Click on the blue triangle button to get back to design view.

6. Click on the Edit Menu and choose Clear Grid to empty the design grid. Then click on the asterisk (*) field. This will enter only Client* into the design grid. But when we run the query, watch what happens.

It displays the whole table. Save this as Query 2 using the disk icon and click on the blue triangle to get back to design view. Then clear your grid.

7. Next, let’s find out how much client DP34 has been Billed and how much client DP34 has Paid. Notice that we have listed DP34 as a Criteria for the search under the Client Number field.

Run the query – it should appear as shown below. Save it as query 3 and go back to Design View using the blue triangle icon. Then clear your grid.

8. Suppose that we want to find out which clients have names beginning with the letter “H”. To do this we used what is called a WILDCARD. This allows us to specify that we want the first however many criteria to match, but the rest of the characters don’t matter. To do this we use an asterisk (*) to represent a character or a combination of characters.

Run the query – it should appear as shown below. Save it as query 4 and go back to Design View using the blue triangle icon. Then clear your grid.

9. Suppose that we want to find all of the people who live in Saskatoon. However, since we know the city is Saskatoon, we do not want to display the city. We still need to use the field in our search, but do not want to display the field. To do this we add “Saskatoon” to the City criteria line, and click on the checked box for that field. This removes the check mark and therefore will not show the field.

Run the query – it should appear as shown below. Save it as query 5 and go back to Design View using the blue triangle icon. Then clear your grid.

10. Suppose that we want to find all of the clients who have not paid anything toward their bill. To do this we add 0 to the Paid criteria line.

Run the query – it should appear as shown below. Save it as query 6 and go back to Design View using the blue triangle icon. Then clear your grid.

11. Suppose that we want to find all of the clients who have been billed more than $300. To do this we use the signs and type >300 in the Billed criteria line.

Run the query – it should appear as shown below. Save it as query 7 and go back to Design View using the blue triangle icon. Then clear your grid.

12. Suppose that we want to find all of Technician 02’s clients who have been billed more than $300. To do this we use the signs and type >300 in the Billed criteria line and type 02 in the criteria line of the Technician Number field.

Run the query – it should appear as shown below. Save it as query 8 and go back to Design View using the blue triangle icon. Then clear your grid.

13. Suppose that we want to find all of the clients who have been billed more than $300 OR all of the clients who belong to Tech 2. To do this we use the signs and type >300 in the Billed criteria line and type 02 in the OR line of the Technician Number field.

Run the query – it should appear as shown below. Save it as query 8 and go back to Design View using the blue triangle icon. Then clear your grid.

14. Suppose that we want to find an alphabetical list of the cities we serve. To do this we use the City field and use the SORT line on the field. Then we choose Ascending.

Run the query – it should appear as shown below. Save it as query 9 and go back to Design View using the blue triangle icon. Then clear your grid.

15. Notice on the last query that some cities were listed twice. To fix this problem we need to alter our query slightly. Click in the Field row of the empty column next to city. It will bring up a menu – choose Properties. Then find Unique Values and select Yes. Click on the red X button to close Properties. Everything else in the query stays the same.

Run the query – it should appear as shown below. Save it as query 10 and go back to Design View using the blue triangle icon. Then clear your grid.

16. Suppose we wanted to create a list of all of the clients sorted by technician and listed from those who have been billed the most to those who have been billed the least. To do this we include the Client Number, Name, Technician Number, and Billed fields.

Run the query – it should appear as shown below. Save it as query 11 and go back to Design View using the blue triangle icon. Then clear your grid.

17. Suppose we wanted to create a list with information from both tables. To do this we must first add the Technician Table and join it to the Client Table. Go up to the QUERY menu and choose Show Table. Select the Technician Table and resize the windows appropriately. Notice that there is a dark line connecting the Technician Number field on the Client Table to the Technician Number field on the Technician Table.

Our next step is to select/add the Client Number, Name, and Tech Number fields from the Client Table and the Last Name and First Name fields from the Technician Table.

Run the query – it should appear as shown below. Save it as query 12 and go back to Design View using the blue triangle icon. Then clear your grid.

18. Next, suppose that we wanted to create a list of technicians which have billed clients more than $300. Create the following query.

Run the query – it should appear as shown below. Save it as query 13 and go back to Design View using the blue triangle icon. Then clear your grid.

19. Suppose that we want to find out how much money is owing to the company. We can use Access to calculate a field. Create the following query.

Then right-click in the field row of the third column and choose Zoom off of the shortcut menu. The following window will appear. Enter the text as shown below and click “OK”.

The following design grid will appear; run the query.

Run the query – it should appear as shown below. Save it as query 13 and go back to Design View using the blue triangle icon. Then clear your grid.

20. Suppose that we want to find out the average amount that the technicians have billed. To do this we need to add a Totals row to the design grid. To do this we right-click on the grid and choose Totals. Then add “Billed” to the design grid.

We choose AVG (or average) and then run the query. The result of our query should look like this:

21. Suppose that we want to find out the average amount that Technician 12 has billed. To do this we add the tech number field and choose Where off of the Totals list. Then put 12 in the Criteria field. Run the query. The result of our query should look like this:

22. Suppose that we want to find out the average amount that each Technician has billed. To do this we clear the grid. Then we add the Tech Number field and the Billed field. Choose Group By under the Tech Number field, and Avg under the Billed field. Run the query. The result of our query should look like this:

Saving a Query Access will allow you to save your queries. Make sure you name them so that you know what the query contains.