Microsoft Access XP (2002) - Advanced Queries

Size: px
Start display at page:

Download "Microsoft Access XP (2002) - Advanced Queries"

Transcription

1 Microsoft Access XP (2002) - Advanced Queries Group/Summary Operations Change Join Properties Not Equal Query Parameter Queries Working with Text IIF Queries Expression Builder Backing up Tables Action Queries (Update, Make Table, Delete, & Append) Crosstab Queries

2 Table of Contents GROUP/SUMMARY OPERATIONS... 3 Using Summary Operators... 3 JOIN PROPERTIES... 8 Linking When Data Doesn t Match... 8 NOT EQUAL BETWEEN FIELDS PARAMETER QUERIES Parameter Query in a Text Field Parameter Query Using a Range in a Number Field Parameter Query Using a Range of Dates MANIPULATING TEXT FIELDS Joining Text Fields (Catenation) Display Partial Text (Truncation) IIF STATEMENTS IIF Statements using Text Calculations in IIF Statements Nested IIF Statements Using OR in IIF Statements Using AND in IIF Statements USING THE EXPRESSION BUILDER BACKING UP A TABLE BACKING UP A DATABASE FILE ACTION QUEIRES Update Query: Raise the Credit Limit of all U.S. Customers by $ Update Query: Replace the Manufacturer General Foods with Bob s Foods Make Table Query: Create a Table of Only Those Customers Living in the UK Delete Query: Delete all UK Customers from Sweets Customers Append Query: Copy Records from One Table to Another CROSSTAB QUERIES Access_2002-Adv_Queries.doc April 23, 2003 Page 2 of 32

3 GROUP/SUMMARY OPERATIONS Group/Summary operations allow the user to perform mathematical operations on unfiltered data in a table or multiple tables, data which meets a specific criteria, or data which has been broken down into groups. Operators available are sum, count, average, standard deviation, etc. The summary operations are performed in queries and can include one or linked tables. Using Summary Operators Use the Totals icon when you wish to perform summary operations. Note that because the Totals icon affects the way queries normally operate, you should only activate the Totals icon when you wish to perform summary operations. When the Totals row is active, a summary operator must be placed in the Totals row beneath each field placed on the grid. When performing summary operations involving multiple tables, only have the tables necessary to complete the links present. Having tables present that are not somehow involved in creating the link can yield erroneous results. Summary Operators: Group By: This will place identical data together in groups and then list one representative from each group in the answer. Note that if Group By is used in more than one field then Access will consider both fields as one when searching for identical data. Sum: Sums the numbers in the table or group. Count: Lists how many members are in the table or group. StDev: Finds the Standard Deviation of the fields in the table or group. Var: Finds the Variance of the fields in the table or group. Average: Finds the Average of the fields in the table or group. Min: Returns the smallest number found in the table or group. Max: Returns the largest number found in the table or group. First: Returns the data from the first record in the table or the first record in each group. Last: Returns the data from the last record in the table or the last record in each group. Where: Used when employing a criteria and summary operators. Expression: Used when employing calculations and summary operators in a query. Using Sum: What is the Total Quantity of Products Sold? The Order Detail table keeps track of the quantities sold. 1. Select the Tables tab in the Database Window. 2. Select the Order Detail table. 3. From the menu, click on: INSERT - QUERY 4. Select Design View and then click on Ok. 5. Double click the field Quantity to place it on the grid. 6. Click on the Totals icon to perform the summary operation. 7. Click in the Total row for the Quantity field. 8. Change the Total operator to by clicking the down arrow and select: Sum 9. Run the query (write the answer down for later use). Access_2002-Adv_Queries.doc April 23, 2003 Page 3 of 32

4 Grouping & Sum: How Many of Each Candy Have Been Sold? 1. Return to Design view. 2. Click & drag Candy ID to the query grid. 3. Set Candy ID s Total operator to: Group by 4. Run the query. You should see each Candy ID listed only once and its total quantity sold. Grouping & Count: How Many Times has each Candy Been Ordered? 1. Return to Design view. 2. Add another Quantity field to the query grid. 2. Set the Total for the newly added Quantity field to: Count 3. Run the query. Grouping & Linking: List the Sales People and the Total Quantity Each has Sold This involves the following tables: Order Detail, Orders, & Sweets Employees 1. Return to Design view. 2. Clear the grid: EDIT - CLEAR GRID 3. Add Orders & Sweets Employees : a. Click the icon Show Table b. Double click Orders c. Double click Sweets Employees 4. Close the Show Table box. 5. Set up the grid as shown: 6. Sort by Quantity in descending order. 7. Click Totals if it s not active. 8. Set the Total operator for First Name & Last Name to: Group By 9. Set the Quantity Total to: Sum 10. Run the query. Grouping and Linking: How Many Orders has Each Salesperson Taken? 1. Return to Design view. 2. Change the Total for Quantity to: Count 3. Run the query. Access_2002-Adv_Queries.doc April 23, 2003 Page 4 of 32

5 Grouping with a Criteria: Which Customers have Placed 2 or More Orders? 1. Close the current query. 2. Click on the Tables tab. 3. Select the table: Orders 4. From the menu, click on: INSERT - QUERY 5. Select Design View then click Ok. 6. Click on the Show Table icon. 7. Double click: Sweets Customers 8. Close the Show Table window. 9. Set up the query grid as shown. 10. Run the query. Note that Customer ID must come from the Orders table and that we could have used any field from Orders and we would have gotten the same answer. This is because Access is counting how many items exist in each group. It does not matter what the items are. However, if the fields being counted contain blanks, you will get an inaccurate count. It is therefore, a good idea to use a field such as Customer ID or Order ID that you can be fairly certain contains no blanks. Using Where: What was each Sales Person s Total Quantity Sold in May of 1989? 1. Return to Design view. 2. Use the menu to clear the grid: EDIT - CLEAR GRID 3. Click on the Show Table icon. 4. Double click the table: Order Detail 5. Close the Show Table window. 6. Make sure the Total row is turned on. 7. Set up the query grid as shown. 8. Run the query. Note the use of Where in the Total row beneath Order Date and that Show is not checked. This is because we are requesting a single total quantity for each group over a range of dates. Access_2002-Adv_Queries.doc April 23, 2003 Page 5 of 32

6 Grouping with Calculations: How Much Money has Each Company Spent with You? This query will use linked tables and a calculation between two tables to arrive at a dollar amount. 1. Return to Design view. 2. Use the menu to clear the grid: EDIT - CLEAR GRID 3. Click on the Show Table icon. 4. Double click the table: General Candy Info 5. Close the Show Table window. 6. Make sure the Total row is activated. 7. Set up the query grid as shown. The equation is: Spent: [Cost Per Unit]/[Quantity] 8. Run the query. To format the numbers with $ signs: 1. Return to Design view. 2. Right click the equation for Spent: 3. Select Properties from the list. 4. In the Format box, select: Currency 6. Rerun the query. Access_2002-Adv_Queries.doc April 23, 2003 Page 6 of 32

7 Expression: By Percent, do a Breakdown of the Quantity Sold of Each Candy. This query requires that you know the total quantity sold. To get the total quantity sold, see the first query example shown in this handout. 1. From the Database window, click on the Table tab. 2. Select the table: Order Detail 3. From the menu, click on: INSERT - QUERY. 4. Select Design View and click on Ok. 5. Click on the Show Table icon. 6. Double click the table: General Candy Info 7. Close the View Table window. 8. Set up the query as shown: 9. Activate the Totals row. 10. Set the Totals row options 11. Right-click the equation. 12. Select Properties. 13. Click in the Format box. 14. Select Percent 15. Close Properties. 16. Run the query. Access_2002-Adv_Queries.doc April 23, 2003 Page 7 of 32

8 JOIN PROPERTIES Linking When Data Doesn t Match This example shows what happens in a linked query when both tables do not contain the same data in the linked fields. Note that linked fields do not always have to contain exactly the same data; the purpose of this example is to increase your understanding of field links. Below are two tables. On the left is a table that lists every product we carry. On the right is a table of only those products sold. (Some are listed more than once because they have been sold more than once in different orders.) Note that in the table on the right, we have never sold Candy ID number 2 (Milky Way). Lists every product we carry. Lists only those products sold. When the tables are linked through their common field of Candy ID, the query produces the data below. Note that Candy ID number 2 is not listed (Milky Way). Milky Way is not listed because although it does exist in one of the tables, its Candy ID does not exist in both tables. By default, Access will only list records when the data contained in the linking fields exists in both tables. Note that this is not a bad thing, if you have not sold Candy 2, you probably would not want to list it anyway. Access_2002-Adv_Queries.doc April 23, 2003 Page 8 of 32

9 Changing Join Properties: Which Candies Haven t We Sold? We would like to know which candies that we carry have never been sold. Or in other words, which candy ID s are listed in General Candy Info but not listed in Order Details? To accomplish this, we will need to change the properties of the query. 1. From the Database window, click on the Table tab. 2. Select the table: General Candy Info 3. From the menu, click on: INSERT - QUERY. 4. Select Design View and click on Ok. 5. Click on the Show Table icon. 6. Double click the table: Order Detail 7. Close the Show Table window. 8. Set up the query as follows: This Candy ID comes from Order Detail This Candy ID comes from G.C.I. 9. Double click the line connecting the two tables. 10. Select the option: Include ALL records from General Candy Info and only those records from Order Detail where the joined fields are equal. 11. Click on Ok. 12. Run the query. Brands that were not sold will have blanks in the Candy ID from the Order Detail table. 13. Return to Design view. 14. Add the Is Null criteria as shown. 15. Run the query again. Access_2002-Adv_Queries.doc April 23, 2003 Page 9 of 32

10 Changing Join Properties: Which Sweet s Employees Have Never Taken an Order? The table Sweets Employees contains a list of all of our employees. If they have made any sales, their Employee ID would exist in the table Orders. What we would like to know is, which employees exist in our employees table but do not exist in our orders table? 1. From the Database window, click on the Table tab. 2. Select the table: Orders. 3. From the menu, click on: INSERT - QUERY. 4. Select Design View and click on Ok. 5. Click on the Show Table icon. 6. Double click the table: Sweets Employees 7. Close the Show Table window. 8. Double click the line connecting the two tables. 9. Select the option shown. 10. Click on Ok. 11. Construct the query grid as shown. 12. Run the query. Access_2002-Adv_Queries.doc April 23, 2003 Page 10 of 32

11 NOT EQUAL BETWEEN FIELDS This example demonstrates how to find two fields that do not contain matching data in corresponding records. Note that this is not the same as the examples of joins above. Here, were are not interested in the linking fields. Syntax: <>[Table].[Field] Which Customers have a Billing Address that is Different Than Their Shipping Address? The Orders table contains the shipping addresses and the Sweets Customers table contains the billing addresses. 1. From the Database window, click on the Table tab. 2. Select the table: Orders. 3. From the menu, click on: INSERT - QUERY. 4. Select Design View and click on Ok. 5. Click on the Show Table icon. 6. Double click the table: Sweets Customers 7. Close the Show Table window. 8. This query can be constructed in two ways, see the examples below. If the criteria is in the Address field of the Sweets Customers table, then the code refers to the Ship Address from Orders.. If the criteria is in the Ship Address field of the Orders table, then the code refers to the Address from Sweets Customers. 9. Run the Query. Access_2002-Adv_Queries.doc April 23, 2003 Page 11 of 32

12 PARAMETER QUERIES A parameter query is a query which asks the user questions when the query is executed. Parameter queries are useful when the same fields are being queried but the criteria changes slightly. To create a parameter query, simply place your question in [ ] where you would normally place the criteria. Parameter Query in a Text Field This parameter query will prompt the user to enter the manufacturer they are searching for. 1. From the Database window, click on the Tables tab. 2. Select the table: General Candy Info. 3. From the menu, click on: INSERT - QUERY. 4. Select Design View and click on Ok. 5. Set up the query as shown. 6. Run the query. 7. Type in a manufacturer ( Nabisco for example) 8. Press ENTER 9. Save the query as Search by Manufacturer 10. Close the query. 11 In the Database window, click on the Queries tab. 12. Double click the query Search by Manufacturer 13. Type in: General Foods and click on Ok Parameter Query Using a Range in a Number Field This parameter query will prompt the user to enter the minimum cost per unit desired. 1. From the Database window, click on the Tables tab. 2. Select the table: General Candy Info 3. From the menu, click on: INSERT - QUERY. 4. Select Design View and click on Ok. 5. Set up the query as shown. 6. Run the query. 7. Type in 50 and press ENTER Access_2002-Adv_Queries.doc April 23, 2003 Page 12 of 32

13 Parameter Query Using a Range of Dates We wish to find employees who were born during a certain period. This parameter query asks the user for a beginning date and an ending date and lists only those records which match the criteria. 1. From the Database window, click on the Tables tab. 2. Select the table: Sweets Employees 3. From the menu, click on: INSERT - QUERY. 4. Select Design View and click on Ok. 5. Set up the query as shown. 6. Run the query. 7. Type in a beginning date and press ENTER. 8. Type in an ending date and press ENTER. Parameter Query: Multiple Criteria This query requests both a country and a credit limit using the Sweets Customers table. 1. Set up the query as shown. 2. Run the query. Access_2002-Adv_Queries.doc April 23, 2003 Page 13 of 32

14 MANIPULATING TEXT FIELDS Joining Text Fields (Concatenation) This example demonstrates how to take to separate columns and join them together in one column. We will perform a query on the Sweets Employees table that will join Last Name followed by a comma, a space, and then First Name. Use the & symbol to join text fields. Surround extra characters with quotes. Field names must be in square braces [ ]. The new column should be given a name by the user followed by a colon. 1. From the Database window, click on the Tables tab. 2. Select the table: Sweets Employees 3. From the menu, click on: INSERT - QUERY. 4. Select Design View and click on Ok. 5. Set up the query as shown. The code is: 6. Run the query. Name: [Last Name]&, &[First Name] Display Partial Text (Truncation) This example will display just the first letter of the first name and follow it with a period, a space, and then the last name. (i.e. L. Callahan instead of Linda Callahan). We will also sort by Last Name. To truncate, use the LEFT function. Syntax: Left([Field Name],Number of letters to display going left to right) Code: Name: Left([First Name],1)&. &[Last Name] 1. From the Database window, click on the Tables tab. 2. Select the table: Sweets Employees 3. From the menu, click on: INSERT - QUERY. 4. Select Design View and click on Ok. 5. Set up the query as shown. 6. Note that it is sorting by Last Name in Ascending order, but that the Last Name field will not show. 7. Run the query. Access_2002-Adv_Queries.doc April 23, 2003 Page 14 of 32

15 IIF STATEMENTS IIF Statements in Access are used to evaluate data based upon a predetermined condition and then take an action depending on what the evaluation found. Syntax: IIF(Condition,What to do if condition is True, What to do if condition is false) IIF Statements using Text This IIF statement will look at the Cost Per Unit in the General Candy Info table. If an item cost over $25, Approval is required to reorder, else it is ok to reorder. Text within IIF statements must be enclosed by quotes. 1. From the Database window, click on the Tables tab. 2. Select the table: General Candy Info 3. From the menu, click on: INSERT - QUERY. 4. Select Design View and click on Ok. 5. Set up the query as shown. 6. Run the Query. Note that you can press SHIFT + F2 on your keyboard for more room to type. STATUS: IIF([Cost Per Unit]>50, Approval Needed, OK to Reorder ) The condition What to do if the condition is true. What to do if the condition is false. In the status column, items costing $50 and under should have OK to Reorder and items costing over $50 should have Approval needed. Note that is was not necessary to include the Cost Per Unit column on the qrid. Access_2002-Adv_Queries.doc April 23, 2003 Page 15 of 32

16 Calculations in IIF Statements Sweets Candies gives a volume discount when a customer orders 1,000 or more of an item. The discount is 50%. This query will involve two tables: General Candy Info which contains the Cost Per Unit & Order Detail which contains the Quantity ordered. 1. From the Database window, click on the Tables tab. 2. Select the table: General Candy Info 3. From the menu, click on: INSERT - QUERY. 4. Select Design View and click on Ok. 5. Click on the Show Tables icon. 6. Double click the table: Order Detail 7. Close the Show Table window. 8. Construct the query as shown. 9. Run the query. Cost: IIf([Quantity]>=1000,[Quantity]*0.5,[Quantity])*[Cost Per Unit] Condition If True If False The IIF Statement Nested IIF Statements When there are more than two possible outcomes, nested IIF statements can be used. Nested IIF statements are simply an IIF statement within an IIF statement. Exercise: We are giving bonus based on hire date Employees hired prior to 8/2/88 are given $500. Employees hired between 8/2/88 and 1/1/91 are given $100. And employees hired after 1/1/91 are given a free dinner for two. Access_2002-Adv_Queries.doc April 23, 2003 Page 16 of 32

17 1. From the Database window, click on the Tables tab. 2. Select the table: Sweets Employees 3. From the menu, click on: INSERT - QUERY. 4. Select Design View and click on Ok. 5. Construct the query as shown. 6. Run the Query. Bonus: IIf([Hire Date]<#8/2/88#,"$500",IIf([Hire Date]<#1/1/91#,"$100","Free Dinner")) Condition 1 If Condition 1 is True Condition 2 If Condition 2 is True If Condition 2 is False If Condition 1 is False Notes: Access reads IIF Statements from left to right and stops reading as soon as it finds a match. For example, 1/1/66 is less than 8/2/88 which would indicate $500; however, 1/1/66 is also less than 1/1/91 which would indicate $100, but because Access stops reading after the True part of condition 1, it never sees condition 2 and any mention of 1/1/91. Note that the IIF Statement ends in two closing round brackets. )). The number of opening and closing brackets must be equal. Access_2002-Adv_Queries.doc April 23, 2003 Page 17 of 32

18 Using OR in IIF Statements When the Or operator is used in IIF statements, data need only meet one of the possible conditions to validate the true portion of the IIF statement. Example: Sweets Candies does business in three countries, USA, Canada, and the UK. They would like a list that states whether the country is foreign or domestic. 1. From the Database window, click on the Tables tab. 2. Select the table: Sweets Customers 3. From the menu, click on: INSERT - QUERY 4. Select Design View and click on Ok. 5. Construct the query as shown. 6. Run the query. Status: IIf([Country]="Canada" Or [Country]="UK","Foreign","Domestic") Condition using the OR operator. i.e. If country equals Canada or UK What to do if condition is true. What to do if condition is False. Using AND in IIF Statements When the And operator is used in IIF statements, data must meet all of the possible conditions to validate the true portion of the IIF statement. In this example, if a customer is from the USA and their credit limit is over $30,000, they are considered a Preferred customer, else they are a Normal customer. Status: IIf([Country]="USA" And [Credit Limit]>30000,"Preferred","Normal") Condition using AND True False Access_2002-Adv_Queries.doc April 23, 2003 Page 18 of 32

19 USING THE EXPRESSION BUILDER The Expression Builder is a tool that can be used to help you build equations in queries, forms, and reports. It lists all Access functions, operators, and fields. Exercise: To get the dollar amount on an item, we multiply: [Cost Per Unit] x [Quantity] x [Ship Rate] There are two different ship rates based on weather they are domestic or foreign customers: Domestic Customers (USA) pay 10%. Foreign Customers pay 25%. We will use the Expression Builder to create the following equation. Note that the expression builder will also place the table names in the equation. This is acceptable. Total: IIF([Country]="USA",[COST PER UNIT]*1.10,[COST PER UNIT]*1.25)*[Quantity] Condition True section. (Cost with 10%) False section. (Cost with 25%) 1. From the Database window, click on the Tables tab. 2. Select the table: Orders. 3. From the menu, click on: INSERT - QUERY. 4. Select Design View and click on Ok. 5. Click on the Show Tables icon. 6. Add following tables: Order Detail, General Candy Info, and Sweets Customers 7. Close the Show Tables window. 8. Add the fields shown to the grid: 9. Click in the next available blank column in the field row (to the right of Cost Per Unit ). Access_2002-Adv_Queries.doc April 23, 2003 Page 19 of 32

20 10. Click on the Build icon: Construct your equations here. Common operators. Click add to the equation. Click a folder to view its contents. Double click folders with + signs to expand the folder. 11. Double click the Functions folder. 12. Click Built-in-Functions. 13. Select the All category. 14. Select IIF in the right column. 15. Click on the PASTE button. 16. In the expression window, click on the <<expr>> to select it. 17. Double click the Tables folder. 18. Click the table: Sweets Customers 19. Click the field: Country 20. Click on PASTE 21. Place the cursor after: [Country] 22. Click the = operator. 23. Select the <<expr>> 24. Type: USA (in quotes). 25. Select <<truepart>>. 26. Click in Tables folder: General Candy Info. 27. Select the field: Cost Per Unit 28. Click on PASTE Access_2002-Adv_Queries.doc April 23, 2003 Page 20 of 32

21 29. Click after [Cost Per Unit]. 30. Click on the multiplication operator: * 31. Select the <<Expr>> code. 32. Type: Select <<falsepart>> 34. Select the General Candy Info folder again. 35. Select the field Cost Per Unit and click on PASTE 36. Place the cursor after [Cost Per Unit] 37. Click on the multiplication operator: * 38. Select the <<Expr>> code. 39. Type: Click after the closing ) 41. Click the multiplication operator: * 42. Click on the Tables folder. 43. Select the table: Order Detail 44. Select the field: Quantity 45. Click on PASTE 46. Click in front of the equation. 47. Type: Total: 46. Click on Ok 47. Press ENTER to leave the field. 48. Run the query. Access_2002-Adv_Queries.doc April 23, 2003 Page 21 of 32

22 BACKING UP A TABLE Making a backup copy of a table is invaluable if you wish to protect your data from accidental deletions. Note that this only backs up the table and not the entire database file. If you wish to back up the entire file and all the objects it contains (tables, forms, reports, queries), see below Backing up a Database File. 1. Click on the Tables tab in the main Database window. 2. Select but do not open the table: General Candy Info 3. From the menu, click on: EDIT - COPY 4. From the menu, click on: EDIT - PASTE 5. Type in a name for the new table. 6. Select the option: Structure and Data 7. Click on Ok. A copy of General Candy Info is created within the Database window. BACKING UP A DATABASE FILE This uses the Window s Explorer to backup the entire database file including all tables, forms, reports, and queries it contains. 1. From the Windows Task Bar, right-mouse click the word START. 2. From the pop-up list, select: Explorer 3. Browse to and select the file to be copied. 4. From the menu, click on: EDIT - COPY 5. From the menu, click on: EDIT - PASTE A copy of the file is created. The copy will be named: Copy of Original File Name Access_2002-Adv_Queries.doc April 23, 2003 Page 22 of 32

23 ACTION QUEIRES By default, queries are SELECT queries which means they select data but they do not alter it. ACTION queries are another type of query which do alter data in some way. It is strongly recommended that before performing an action query that you back up your table. You can not undo an action query! There are several types of action queries: Update Query Update queries can be used to make global changes to your records based upon a criteria. For example, you would like to raise the credit limit of those people who live in the USA by 10%. Delete Query Delete queries can be used to delete records that meet a specific criteria. For example, you would like to delete the records of all customers who have not make a purchase in the last five years. Make Table Query Make table queries are used to make a new table. The new table can include some or all fields from the old table(s) and some or all of the records from the old table(s). For example, you wish to make a table of only those people who have made purchases under $5. Append Query Append Queries take data from one table and add it to another. This is useful when you have two people doing data entry into the same type of table and you now wish to merge the two together. Access_2002-Adv_Queries.doc April 23, 2003 Page 23 of 32

24 Update Query: Raise the Credit Limit of all U.S. Customers by $500 This query takes what already exists in a field and alters it mathematically. Note that to include the old data in some form in the update, the old field name must be present in the calculation. 1. From the Database window, click on the Tables tab. 2. Select the table: Sweets Customers 3. From the menu, select: INSERT - QUERY. 4. Select Design View 5. Construct the query as shown. 6. Run the query to verify that this will only affect people living in the USA. Note that if USA was not present, $500 would be added to the credit limit of all records. 7. Return to Design View 8. From the menu, click on: QUERY - UPDATE QUERY 9. Place the code in the Update To row in the Credit Limit column. Note that the code is: [Credit Limit]+500. If you would have typed just: +500 or 500 without the [Credit Limit] in front of it, Access would have replaced all U.S. customer s credit limit with Run the query. 11. Click on Yes if your message reads as follows. Note that if you run this query again, you will add another $500 to the credit limits. Also note that Access does not display the results of the action query. To see the results, change the query back to a select query and run it again. 12. From the menu, click on: INSERT - QUERY 13. Select: Select Query 14. Run the query. Access_2002-Adv_Queries.doc April 23, 2003 Page 24 of 32

25 Update Query: Replace the Manufacturer General Foods with Bob s Foods This update query takes data in a text field and replaces it with other data. 1. From the Database window, click on the Tables tab. 2. Select the table: General Candy Info 3. From the menu, select: INSERT - QUERY. 4. Select Design View 5. Construct the query as shown. 6. Run the query to verify that this will only affect General Foods manufactureres. Note that if General Foods was not present, all manufacturers would change to Bob s Foods. 7. Return to Design View 8. From the menu, click on: QUERY - UPDATE QUERY 9. Place the code in the Update To row in the Manufacturer column. Note that it is not necessary to include the old field name in the code. This is because we are completely replacing old data rather than altering it as in the last example. 10. Run the Query. 11. Click on Yes if your message reads as follows. Note that Access does not display the results of the action query. To see the results, change the query back to a select query and run it again. Be sure to remove the criteria General Foods or the query will return an empty record set. (General Foods no longer exists.) 12. From the menu, click on: INSERT - QUERY 13. Select: Select Query 14. Run the query. Access_2002-Adv_Queries.doc April 23, 2003 Page 25 of 32

26 Make Table Query: Create a Table of Only Those Customers Living in the UK This query will copy only those customers who live in the UK into a new table called UK Customers. Note that you can include any columns desired in the new table but because we will be using this table in a later exercise, we will place all of the columns in the new table. 1. From the Database window, click on the Tables tab. 2. Select the table: Sweets Customers 3. From the menu, select: INSERT - QUERY. 4. Select Design View 5. Double click the table name Sweets Customers (All fields are selected.) 6. Click & drag any one of the selected fields to the first column of the data grid. (All fields are placed on the grid.) 7. Move to the Country column and place the letters UK in the criteria row. 8. Run the query to verify that only UK customers will be placed into the new table. 9. Return to Design View 10. From the menu, click on: QUERY - MAKE TABLE QUERY 11. Fill out the pop-up box as shown. 12. Click on Ok. 13. Run the Query. 14. When the information box opens, click on Yes to create the new table. To see the new table: a. Close the query. (Save it if you wish.) b. Click on the Tables tab in the main Database window. c. Double click the new table ( UK Customers ) to open it. Access_2002-Adv_Queries.doc April 23, 2003 Page 26 of 32

27 Delete Query: Delete all UK Customers from Sweets Customers From the Sweets Customers table, this query will delete the records of any customer living in the UK. 1. In the Database window, click on the Tables tab. 2. Select the table: Sweets Customers 3. From the menu, select: INSERT - QUERY. 4. Select Design View 5. Set up the query grid as shown. Note that placing Company Name on the grid was not necessary. 6. Run the query to verify only UK customers will be deleted. 7. Return to Design View 8. From the menu, click on: QUERY - DELETE QUERY Note that a Delete row is added and the where keyword is placed in the row for you. 9. Run the query. 10. Click Yes when you get the warning about deleting rows. Note that Access does not display the results of the action query. To see the results, change the query back to a SELECT query and run it again. Be sure to remove the criteria UK or the query will return an empty record set. (Records for UK customers no longer exist.) Access_2002-Adv_Queries.doc April 23, 2003 Page 27 of 32

28 Append Query: Copy Records from One Table to Another This query will copy records from the table UK Customers to the table Sweets Customers. Append Guidelines The table being appended to should always be backed up prior to executing the append. The query is based upon the table where data is being appended (copied) from. If you get an error message when attempting to append, consider any complications caused by a keyed table. For example, if you are appending into a table that has a primary key set but you are not appending any data into keyed field, Access will not allow the append because keyed fields can not contain blanks. Another problem sometimes arises when data is being appended into the keyed field. If the data being added duplicates data that is already in the keyed field, then Access will not allow the append. When appending from one table to another, if the field names are an exact match, Access will place data from one table into its corresponding field in the other table. When the field names do not match, the user must tell Access the corresponding fields. The field names do not have to be in the same order in both tables. Not all fields (columns) need to be copied into the table. Not all records need to be copied into the new table. You can append based upon a criteria. Appending has no affect on the table being appending from but can dramatically affect the table being appended to. 1. In the Database window, click on the Tables tab. 2. Select the table: UK Customers (Created above in the Make Table Query example.) 3. From the menu, select: INSERT - QUERY. 4. Select Design View 5. Double click the table name UK Customers (All fields are selected.) 6. Click & drag any one of the selected fields to the first column of the data grid. (All fields are placed on the grid and will be appended to the Sweets Customers table.) 7. From the menu, click on: QUERY - APPEND QUERY 8. Select Sweets Customers as the table you are appending to. 9. Make sure Current Database is selected and click on Ok. Access_2002-Adv_Queries.doc April 23, 2003 Page 28 of 32

29 This is the field being appended from. This is the table being appended from. This is the field data is being copied to. Note that if the field names between the two tables were not spelled the same, you would need to select the field name yourself from a drop down list. 10. Verify that the From and To field names match for each column. 11. Run the query. 12. Click Yes when you get the message about the append taking place. 13. Close the query and save if desired. 14. Open the Sweets Customers table. There should be customers listed who do live in the UK. CROSSTAB QUERIES A crosstab query takes data that is in a list and summarizes it into columns and rows. They are useful for performing data analysis by category. A crosstab query is not an action query and has no effect on the table it is based on. To perform a crosstab query, at least 3 different columns are needed. Crosstab queries are simple to create using the Crosstab Query Wizard. Crosstab queries can also be created manually but that procedure can be somewhat tedious. In this example, we have a list of movies made between 1972 and The list contains the name of the movie, its rating, release date, profit made, production company, and the type of movie it is. We would like to know the total profit for each year broken down by movie rating. 1. In the main Database window, click on the Tables tab. 2. From the menu, click on: INSERT - QUERY 3. Select Crosstab Query Wizard and click on Ok. 4. When asked for the table to base the query on, select the table MOVIES and click NEXT. Access_2002-Adv_Queries.doc April 23, 2003 Page 29 of 32

30 5. Select Rating for the Row Headings and then click on NEXT. 6. Select Year for the Column Headings and then click on NEXT. The Row Headings have been set to Rating and the Column Headings have been set to Years. The data that goes where these two intersect must now be selected. 7. Select Profit as the field to be calculated. 8. Select Sum as the function which is to be performed upon the profit field. 9. Make sure Yes, include row sums is checked. Access_2002-Adv_Queries.doc April 23, 2003 Page 30 of 32

31 10. Click on NEXT. 11. Type a name for the query. 12. Click on FINISH. You data is now summarized into columns and rows as shown below. Where Rating and Year intersect is the total profit for that category of movie. For example, the total profit for all G rated moves in 1972 was $109,890, Total of Profit is a special summary column which contains the total profit for all movies regardless of the year it was made, broken down by rating. For example, the total profit for all G rated movies was $2,185,869, Access_2002-Adv_Queries.doc April 23, 2003 Page 31 of 32

32 AUTOMATICALLY DELETE DUPLICATE RECORDS This procedure will delete all duplicate records from a table leaving only one record with the original data. The process takes several steps and involves: Creating a duplicate structure of the table that contains duplicates without any data in it. Making primary keys of all the fields that contain duplicates Running an append query from the original table to the new table. Because keyed tables do not allow duplicate records, Access will not allow any duplicates to be copied to the new table. In other words, you will get only on instance of the duplicate record. Step A: Copy the Structure of the Table Containing Duplicates 1. Click on the Tables tab. 2. Right mouse click Sweets Customers and select: Copy 3. Click the Paste button. 4. Name the table: Sweets Customers without Duplicates 5. Select: Structure Only 6. Click Ok. Step B: Assign Primary Keys to Duplicate Fields 1. Open Sweets Customers without Duplicates in Design View. 2. Assign a primary key to the Company Name field. 3. Save and close the table. Step C: Append from the Original Table to the New Table 1. Single click the Sweets Customers table. 2. From the menu, click: INSERT - QUERY - DESIGN VIEW 3. In the field list box, double click the asterisk (*) to tell Access to include all columns. 4. From the menu, select: QUERY - APPEND QUERY 5. Select Sweets Customers without Duplicates as the table to append to. 6. Click on Ok. 7. Run the query. 8. Click Yes to append all records. 9. Click Yes when access give you an error message. If you open Sweets Customers without Duplicates, it now contains records but no duplicates. Access_2002-Adv_Queries.doc April 23, 2003 Page 32 of 32

Microsoft Access XP (2002) Queries

Microsoft Access XP (2002) Queries Microsoft Access XP (2002) Queries Column Display & Sorting Simple Queries And & Or Conditions Ranges Wild Cards Blanks Calculations Multi-table Queries Table of Contents INTRODUCTION TO ACCESS QUERIES...

More information

Microsoft Access XP Queries. Student Manual

Microsoft Access XP Queries. Student Manual Microsoft Access XP Queries Student Manual Duplication is prohibited without the written consent of The Abreon Group. Foster Plaza 10 680 Andersen Drive Suite 500 Pittsburgh, PA 15220 412.539.1800 800.338.5185

More information

Using Microsoft Access

Using Microsoft Access Using Microsoft Access Creating Select Queries Norm Downey Chapter 2 pages 173 193 and Chapter 3 pages 218 249 2 1 This PowerPoint uses the Sample Databases on the class website Please download them now

More information

Microsoft Access XP (2002) Reports

Microsoft Access XP (2002) Reports Microsoft Access XP (2002) Reports AutoReports Report Wizards Manually Design a Report Table Relations Multitable Reports Mailing Labels Mail Merge with MS Word Table of Contents INTRODUCTION TO REPORTS...

More information

Access Intermediate

Access Intermediate Access 2013 - Intermediate 103-134 Advanced Queries Quick Links Overview Pages AC124 AC125 Selecting Fields Pages AC125 AC128 AC129 AC131 AC238 Sorting Results Pages AC131 AC136 Specifying Criteria Pages

More information

Using Microsoft Access

Using Microsoft Access Using Microsoft Access Creating Queries Norm Downey This PowerPoint uses the Sample Databases on the class website Please download them now 2 1 What is a Query? Queries allow the user to manipulate the

More information

Access - Introduction to Queries

Access - Introduction to Queries Access - Introduction to Queries Part of managing a database involves asking questions about the data. A query is an Access object that you can use to ask the question(s). The answer is contained in the

More information

Objective 1: Familiarize yourself with basic database terms and definitions. Objective 2: Familiarize yourself with the Access environment.

Objective 1: Familiarize yourself with basic database terms and definitions. Objective 2: Familiarize yourself with the Access environment. Beginning Access 2007 Objective 1: Familiarize yourself with basic database terms and definitions. What is a Database? A Database is simply defined as a collection of related groups of information. Things

More information

Access Intermediate

Access Intermediate Access 2010 - Intermediate 103-134 Advanced Queries Quick Links Overview Pages AC116 AC117 Selecting Fields Pages AC118 AC119 AC122 Sorting Results Pages AC125 AC126 Specifying Criteria Pages AC132 AC134

More information

Creating a Crosstab Query in Design View

Creating a Crosstab Query in Design View Procedures LESSON 31: CREATING CROSSTAB QUERIES Using the Crosstab Query Wizard box, click Crosstab Query Wizard. 5. In the next Crosstab Query the table or query on which you want to base the query. 7.

More information

Microsoft. Student Edition. The Richard Stockton College of New Jersey. Computer Courseware

Microsoft. Student Edition. The Richard Stockton College of New Jersey. Computer Courseware Microsoft Working with Queries in Access 2002 Student Edition The Richard Stockton College of New Jersey Computer Courseware CustomGuide.com granted to Computer and Telecommunication Services a license

More information

PowerPoint Presentation to Accompany GO! All In One. Chapter 13

PowerPoint Presentation to Accompany GO! All In One. Chapter 13 PowerPoint Presentation to Accompany GO! Chapter 13 Create, Query, and Sort an Access Database; Create Forms and Reports 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Objectives Identify Good

More information

Microsoft Access 2016 Intro to Select Queries

Microsoft Access 2016 Intro to Select Queries Microsoft Access 2016 Intro to Select Queries training@health.ufl.edu Access 2016: Intro to Select Queries 2.0 hours Queries compile data from tables into a desired dataset. You can choose multiple fields

More information

Skills Exam Objective Objective Number. Creating crosstab queries Create a crosstab query

Skills Exam Objective Objective Number. Creating crosstab queries Create a crosstab query 12 Advanced Queries SKILL SUMMARY Skills Exam Objective Objective Number Creating crosstab queries Create a crosstab query. 3.1.2 Creating a subquery Add fields. Remove fields. Group data by using comparison

More information

Name: Class: Date: Access Module 2

Name: Class: Date: Access Module 2 1. To create a new query in Design view, click CREATE on the ribbon to display the CREATE tab and then click the button to create a new query. a. Query b. Design View c. Query Design d. Select Query ANSWER:

More information

Microsoft Access 2010 Select Queries

Microsoft Access 2010 Select Queries Microsoft Access 2010 Select Queries Email: training@health.ufl.edu Web Page: http://training.health.ufl.edu Microsoft Access 2010: Select Queries 2.0 hours Topics include table filters, select queries,

More information

Step 1: Create a totals query to show the total cost price and total sale price of the wine for each supplier.

Step 1: Create a totals query to show the total cost price and total sale price of the wine for each supplier. Hands-On-2: Queries In D1 you used Select queries to extract required information from your database. You used these to list data that met certain criteria and also used totals queries (a special type

More information

Spreadsheet definition: Starting a New Excel Worksheet: Navigating Through an Excel Worksheet

Spreadsheet definition: Starting a New Excel Worksheet: Navigating Through an Excel Worksheet Copyright 1 99 Spreadsheet definition: A spreadsheet stores and manipulates data that lends itself to being stored in a table type format (e.g. Accounts, Science Experiments, Mathematical Trends, Statistics,

More information

Microsoft Excel 2010 Handout

Microsoft Excel 2010 Handout Microsoft Excel 2010 Handout Excel is an electronic spreadsheet program you can use to enter and organize data, and perform a wide variety of number crunching tasks. Excel helps you organize and track

More information

Microsoft Access XP (2002) Switchboards & Macros

Microsoft Access XP (2002) Switchboards & Macros Microsoft Access XP (2002) Switchboards & Macros Group/Summary Operations Creating a Switchboard Creating Macro Buttons From Wizards Creating Macros Manually Using the Condition Column Start Up Parameters

More information

Microsoft Office 2010: Introductory Q&As Access Chapter 2

Microsoft Office 2010: Introductory Q&As Access Chapter 2 Microsoft Office 2010: Introductory Q&As Access Chapter 2 Is it necessary to close the Navigation Pane? (AC 78) No. It gives you more room for the query, however, so it is usually a good practice to hide

More information

Lab Manual Access Module

Lab Manual Access Module Lab Manual Access Module Lab 3: Advanced Queries Custom calculations in queries Sometimes, you want to specify certain calculated variables that would show up in your query result. Access allows you to

More information

Enforce Referential. dialog box, click to mark the. Enforce Referential. Integrity, Cascade Update Related Fields, and. Cascade Delete Related

Enforce Referential. dialog box, click to mark the. Enforce Referential. Integrity, Cascade Update Related Fields, and. Cascade Delete Related PROCEDURES LESSON 8: MANAGING RELATIONSHIPS BETWEEN TABLES Renaming a Table 1 In the Navigation pane, right-click the table you want to rename 2 On the shortcut menu, click Rename 3 Type the new table

More information

Shelly Cashman Series Microsoft Office 365 and Access 2016 Introductory 1st Edition Pratt TEST BANK

Shelly Cashman Series Microsoft Office 365 and Access 2016 Introductory 1st Edition Pratt TEST BANK Shelly Cashman Series Microsoft Office 365 and Access 2016 Introductory 1st Edition Pratt TEST BANK Full clear download (no formatting errors) at: https://testbankreal.com/download/shelly-cashman-series-microsoft-office-365-access-

More information

Microsoft Access 2016

Microsoft Access 2016 Access 2016 Instructor s Manual Page 1 of 10 Microsoft Access 2016 Module Two: Querying a Database A Guide to this Instructor s Manual: We have designed this Instructor s Manual to supplement and enhance

More information

Microsoft Access 2016

Microsoft Access 2016 Access 2016 Instructor s Manual Page 1 of 10 Microsoft Access 2016 Module Two: Querying a Database A Guide to this Instructor s Manual: We have designed this Instructor s Manual to supplement and enhance

More information

Microsoft Access XP (2002) - Forms. Navigation Wizards Custom Forms Combo Boxes Calculations in Forms Pictures Multitable Input Summary Operations

Microsoft Access XP (2002) - Forms. Navigation Wizards Custom Forms Combo Boxes Calculations in Forms Pictures Multitable Input Summary Operations Microsoft Access XP (2002) - Forms Navigation Wizards Custom Forms Combo Boxes Calculations in Forms Pictures Multitable Input Summary Operations Table of Contents Exercise File Needed... 3 INTRODUCTION

More information

As your databases continue to evolve, you will need to incorporate advanced queries and reports. This chapter addresses how to create and use action

As your databases continue to evolve, you will need to incorporate advanced queries and reports. This chapter addresses how to create and use action As your databases continue to evolve, you will need to incorporate advanced queries and reports. This chapter addresses how to create and use action queries and how to create queries that perform more

More information

Microsoft Access 2010

Microsoft Access 2010 Microsoft Access 2010 Chapter 2 Querying a Database Objectives Create queries using Design view Include fields in the design grid Use text and numeric data in criteria Save a query and use the saved query

More information

Purchase Order Processor

Purchase Order Processor Purchase Order Processor Last Update: 6/26/13 Digital Gateway, Inc. All rights reserved ii Table of Contents PO PROCESSOR... 1 SETUP... 5 CONNECTION SETTINGS... 5 Overview... 5 PO Processor Settings Manager...

More information

DEVELOPING DATABASE APPLICATIONS (INTERMEDIATE MICROSOFT ACCESS, X405.5)

DEVELOPING DATABASE APPLICATIONS (INTERMEDIATE MICROSOFT ACCESS, X405.5) Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DEVELOPING DATABASE APPLICATIONS (INTERMEDIATE MICROSOFT ACCESS, X405.5) Section 4 AGENDA

More information

Princeton University Exercise Workbook Training Developed by Elisabetta Zodeiko, Princeton University

Princeton University Exercise Workbook Training Developed by Elisabetta Zodeiko, Princeton University ReportNet Query Studio Princeton University Exercise Workbook Training Developed by Elisabetta Zodeiko, Princeton University Cognos, Impromptu, PowerPlay, and ReportNet are registered trademarks of Cognos

More information

In this section you will learn some simple data entry, editing, formatting techniques and some simple formulae. Contents

In this section you will learn some simple data entry, editing, formatting techniques and some simple formulae. Contents In this section you will learn some simple data entry, editing, formatting techniques and some simple formulae. Contents Section Topic Sub-topic Pages Section 2 Spreadsheets Layout and Design S2: 2 3 Formulae

More information

Microsoft Access Illustrated. Unit B: Building and Using Queries

Microsoft Access Illustrated. Unit B: Building and Using Queries Microsoft Access 2010- Illustrated Unit B: Building and Using Queries Objectives Use the Query Wizard Work with data in a query Use Query Design View Sort and find data (continued) Microsoft Office 2010-Illustrated

More information

Visual Workflow Implementation Guide

Visual Workflow Implementation Guide Version 30.0: Spring 14 Visual Workflow Implementation Guide Note: Any unreleased services or features referenced in this or other press releases or public statements are not currently available and may

More information

Advanced Queries: Moving Beyond the Select Query Instructor: Edwin V. Bonilla

Advanced Queries: Moving Beyond the Select Query Instructor: Edwin V. Bonilla Advanced Queries: Moving Beyond the Select Query Instructor: Edwin V. Bonilla Based on slides by Robert Grauer, Keith Mast, Mary Anne Poatsy COMP1000 Pearson Education 2011 or UNSW, CRICOS Provider No:

More information

Microsoft Office Access 2013: Part 01. Lesson 04 - Creating Advanced Queries

Microsoft Office Access 2013: Part 01. Lesson 04 - Creating Advanced Queries Microsoft Office Access 2013: Part 01 Lesson 04 - Creating Advanced Queries Slide 1 Lesson 04: Creating Advanced Queries Create Parameter Queries Create Action Queries Create Unmatched and Duplicate Queries

More information

Using Basic Formulas 4

Using Basic Formulas 4 Using Basic Formulas 4 LESSON SKILL MATRIX Skills Exam Objective Objective Number Understanding and Displaying Formulas Display formulas. 1.4.8 Using Cell References in Formulas Insert references. 4.1.1

More information

Excel 2016: Part 1. Updated January 2017 Copy cost: $1.50

Excel 2016: Part 1. Updated January 2017 Copy cost: $1.50 Excel 2016: Part 1 Updated January 2017 Copy cost: $1.50 Getting Started Please note that you are required to have some basic computer skills for this class. Also, any experience with Microsoft Word is

More information

EXCEL 2007 TIP SHEET. Dialog Box Launcher these allow you to access additional features associated with a specific Group of buttons within a Ribbon.

EXCEL 2007 TIP SHEET. Dialog Box Launcher these allow you to access additional features associated with a specific Group of buttons within a Ribbon. EXCEL 2007 TIP SHEET GLOSSARY AutoSum a function in Excel that adds the contents of a specified range of Cells; the AutoSum button appears on the Home ribbon as a. Dialog Box Launcher these allow you to

More information

Collector and Dealer Software - CAD 3.1

Collector and Dealer Software - CAD 3.1 Collector and Dealer Software - CAD 3.1 Your Registration Number Thank you for purchasing CAD! To ensure that you can receive proper support, we have already registered your copy with the serial number

More information

Access 2007: Advanced Instructor s Edition

Access 2007: Advanced Instructor s Edition Access 2007: Advanced Instructor s Edition ILT Series COPYRIGHT Axzo Press. All rights reserved. No part of this work may be reproduced, transcribed, or used in any form or by any means graphic, electronic,

More information

SUM - This says to add together cells F28 through F35. Notice that it will show your result is

SUM - This says to add together cells F28 through F35. Notice that it will show your result is COUNTA - The COUNTA function will examine a set of cells and tell you how many cells are not empty. In this example, Excel analyzed 19 cells and found that only 18 were not empty. COUNTBLANK - The COUNTBLANK

More information

M I C R O S O F T A C C E S S : P A R T 2 G E T T I N G I N F O R M A T I O N O U T O F Y O U R D A T A

M I C R O S O F T A C C E S S : P A R T 2 G E T T I N G I N F O R M A T I O N O U T O F Y O U R D A T A M I C R O S O F T A C C E S S 2 0 1 0 : P A R T 2 G E T T I N G I N F O R M A T I O N O U T O F Y O U R D A T A Michael J. Walk ALC Instructor michael@jwalkonline.org www.jwalkonline.org/main @MichaelJWalk

More information

Getting started with Ms Access Getting Started. Primary Key Composite Key Foreign Key

Getting started with Ms Access Getting Started. Primary Key Composite Key Foreign Key Getting started with Ms Access 2007 Getting Started Customize Microsoft Office Toolbar The Ribbon Quick Access Toolbar Navigation Tabbed Document Window Viewing Primary Key Composite Key Foreign Key Table

More information

Excel 2016: Part 2 Functions/Formulas/Charts

Excel 2016: Part 2 Functions/Formulas/Charts Excel 2016: Part 2 Functions/Formulas/Charts Updated: March 2018 Copy cost: $1.30 Getting Started This class requires a basic understanding of Microsoft Excel skills. Please take our introductory class,

More information

Mail Merge Quick Reference Guide

Mail Merge Quick Reference Guide Mail Merge Letters To mail merge letters two documents are needed: 1. The letter, including all text that does not change. 2. Recipient names and addresses (a) The document containing recipient names and

More information

Microsoft Excel Level 2

Microsoft Excel Level 2 Microsoft Excel Level 2 Table of Contents Chapter 1 Working with Excel Templates... 5 What is a Template?... 5 I. Opening a Template... 5 II. Using a Template... 5 III. Creating a Template... 6 Chapter

More information

Microsoft Access 2003 Edition for ECDL Syllabus 4.5 (UK only)

Microsoft Access 2003 Edition for ECDL Syllabus 4.5 (UK only) ECDL Module 5 WORKBOOK Databases Microsoft Access 2003 Edition for ECDL Syllabus 4.5 (UK only) PAGE 2 - ECDL MODULE 5 (OFFICE 2003) - WORKBOOK 1995-2007 Cheltenham Courseware Ltd. All trademarks acknowledged.

More information

ABOUT PIVOTTABLES TABLE OF CONTENTS

ABOUT PIVOTTABLES TABLE OF CONTENTS University of Southern California Academic Information Services Excel 2007 - PivotTables ABOUT PIVOTTABLES PivotTables provide an excellent means of analyzing data stored in database format by rearranging

More information

Problem Solving Using Access 2007

Problem Solving Using Access 2007 P L U G - I N T7 Problem Solving Using Access 2007 LEARNING OUTCOMES Describe the process of using the Query Wizard using Access. Describe the process of using the Design view for creating a query using

More information

Advanced Reporting Tool

Advanced Reporting Tool Advanced Reporting Tool The Advanced Reporting tool is designed to allow users to quickly and easily create new reports or modify existing reports for use in the Rewards system. The tool utilizes the Active

More information

Introduction to Microsoft Access 2016

Introduction to Microsoft Access 2016 Introduction to Microsoft Access 2016 A database is a collection of information that is related. Access allows you to manage your information in one database file. Within Access there are four major objects:

More information

ADD AND NAME WORKSHEETS

ADD AND NAME WORKSHEETS 1 INTERMEDIATE EXCEL While its primary function is to be a number cruncher, Excel is a versatile program that is used in a variety of ways. Because it easily organizes, manages, and displays information,

More information

More on MS Access queries

More on MS Access queries More on MS Access queries BSAD 141 Dave Novak Topics Covered MS Access query capabilities Aggregate queries Different joins Review: AND and OR Parameter query Exact match criteria versus range Formatting

More information

INTRODUCTION... 1 UNDERSTANDING CELLS... 2 CELL CONTENT... 4

INTRODUCTION... 1 UNDERSTANDING CELLS... 2 CELL CONTENT... 4 Introduction to Microsoft Excel 2016 INTRODUCTION... 1 The Excel 2016 Environment... 1 Worksheet Views... 2 UNDERSTANDING CELLS... 2 Select a Cell Range... 3 CELL CONTENT... 4 Enter and Edit Data... 4

More information

Introduction to Microsoft Excel 2010

Introduction to Microsoft Excel 2010 Introduction to Microsoft Excel 2010 This class is designed to cover the following basics: What you can do with Excel Excel Ribbon Moving and selecting cells Formatting cells Adding Worksheets, Rows and

More information

EVALUATION COPY. Unauthorized Reproduction or Distribution Prohibited EXCEL ADVANCED

EVALUATION COPY. Unauthorized Reproduction or Distribution Prohibited EXCEL ADVANCED EXCEL ADVANCED Overview OVERVIEW... 2 ADVANCED FORMULAS... 4 VIEW THE PROJECT... 4 Viewing Available Excel Functions... 5 Help with Functions... 6 TEXT FUNCTIONS... 7 Text Functions Used in this Section:...

More information

8.1 OVERVIEW OF THE INVENTORY MODULE ADDING NEW ITEMS...

8.1 OVERVIEW OF THE INVENTORY MODULE ADDING NEW ITEMS... Chapter Module The module is used to record and track inventory and storeroom information. This Chapter describes how to use the Web Work module. Table of Contents 8.1 OVERVIEW OF THE INVENTORY MODULE...

More information

Microsoft Access XP Edition for ECDL Syllabus 4.5 (UK only)

Microsoft Access XP Edition for ECDL Syllabus 4.5 (UK only) ECDL Module 5 WORKBOOK Databases Microsoft Access XP Edition for ECDL Syllabus 4.5 (UK only) PAGE 2 - ECDL MODULE 5 (OFFICE XP) - WORKBOOK 1995-2007 Cheltenham Courseware Ltd. All trademarks acknowledged.

More information

Access Review. 4. Save the table by clicking the Save icon in the Quick Access Toolbar or by pulling

Access Review. 4. Save the table by clicking the Save icon in the Quick Access Toolbar or by pulling Access Review Relational Databases Different tables can have the same field in common. This feature is used to explicitly specify a relationship between two tables. Values appearing in field A in one table

More information

Microsoft Access 2013

Microsoft Access 2013 Microsoft Access 2013 Chapter 2 Querying a Database Objectives Create queries using Design view Include fields in the design grid Use text and numeric data in criteria Save a query and use the saved query

More information

Microsoft Access 2013

Microsoft Access 2013 Microsoft Access 2013 Chapter 2 Querying a Database Objectives Create queries using Design view Include fields in the design grid Use text and numeric data in criteria Save a query and use the saved query

More information

Advanced Topics in Access: Queries

Advanced Topics in Access: Queries I. Types of Queries A. Select: displays selected data from one or more tables B. Delete: removes records from a table based on criteria specified C. Make Table: creates a new table from existing table(s)

More information

Access 2013: Intermediate to advanced queries

Access 2013: Intermediate to advanced queries Access 2013: Intermediate to advanced queries Practical workbook Aims and Learning Objectives This document shows you how to do things with queries that take you slightly beyond the norm. It is not supposed

More information

INFORMATION SHEET 24002/1: AN EXCEL PRIMER

INFORMATION SHEET 24002/1: AN EXCEL PRIMER INFORMATION SHEET 24002/1: AN EXCEL PRIMER How to use this document This guide to the basics of Microsoft Excel is intended for those people who use the program, but need or wish to know more than the

More information

CAPITAL V8. Capital Business Software Tutorial Series. Supplier Accounts Using Capital Business Manager V8 1.0

CAPITAL V8. Capital Business Software Tutorial Series. Supplier Accounts Using Capital Business Manager V8 1.0 CAPITAL V8 Capital Business Software Tutorial Series Supplier Accounts Using Capital Business Manager V8 1.0 C A P I T A L O F F I C E B U S I N E S S S O F T W A R E Capital Business Software Tutorial

More information

Formulas Learn how to use Excel to do the math for you by typing formulas into cells.

Formulas Learn how to use Excel to do the math for you by typing formulas into cells. Microsoft Excel 2007: Part III Creating Formulas Windows XP Microsoft Excel 2007 Microsoft Excel is an electronic spreadsheet program. Electronic spreadsheet applications allow you to type, edit, and print

More information

Concepts of Database Management Eighth Edition. Chapter 2 The Relational Model 1: Introduction, QBE, and Relational Algebra

Concepts of Database Management Eighth Edition. Chapter 2 The Relational Model 1: Introduction, QBE, and Relational Algebra Concepts of Database Management Eighth Edition Chapter 2 The Relational Model 1: Introduction, QBE, and Relational Algebra Relational Databases A relational database is a collection of tables Each entity

More information

Access 2003 Introduction to Report Design

Access 2003 Introduction to Report Design Access 2003 Introduction to Report Design TABLE OF CONTENTS CREATING A REPORT IN DESIGN VIEW... 3 BUILDING THE REPORT LAYOUT... 5 SETTING THE REPORT WIDTH... 5 DISPLAYING THE FIELD LIST... 5 WORKING WITH

More information

DESCRIPTION 1 TO DEFINE A NAME 2. USING RANGE NAMES 2 Functions 4 THE IF FUNCTION 4 THE VLOOKUP FUNCTION 5 THE HLOOKUP FUNCTION 6

DESCRIPTION 1 TO DEFINE A NAME 2. USING RANGE NAMES 2 Functions 4 THE IF FUNCTION 4 THE VLOOKUP FUNCTION 5 THE HLOOKUP FUNCTION 6 Table of contents The use of range names 1 DESCRIPTION 1 TO DEFINE A NAME 2 USING RANGE NAMES 2 Functions 4 THE IF FUNCTION 4 THE VLOOKUP FUNCTION 5 THE HLOOKUP FUNCTION 6 THE ROUND FUNCTION 7 THE SUMIF

More information

Level 6 Relational Database Unit 3 Relational Database Development Environment National Council for Vocational Awards C30147 RELATIONAL DATABASE

Level 6 Relational Database Unit 3 Relational Database Development Environment National Council for Vocational Awards C30147 RELATIONAL DATABASE C30147 RELATIONAL DATABASE Level 6 Relational Database Unit 3 Relational Database Development Environment National Council for Vocational Awards This module has been developed to further the learner s

More information

Using Access. Introduction. Creating Simple Queries LEARNING OUTCOMES

Using Access. Introduction. Creating Simple Queries LEARNING OUTCOMES P L U G - I N T7 Problem Solving Using Access LEARNING OUTCOMES 1. Describe the process of using the Simple Query Wizard using Access. 2. Describe the process of using the Design view for creating a query

More information

1 THE PNP BASIC COMPUTER ESSENTIALS e-learning (MS Excel 2007)

1 THE PNP BASIC COMPUTER ESSENTIALS e-learning (MS Excel 2007) 1 THE PNP BASIC COMPUTER ESSENTIALS e-learning (MS Excel 2007) 2 THE PNP BASIC COMPUTER ESSENTIALS e-learning (MS Excel 2007) TABLE OF CONTENTS CHAPTER 1: GETTING STARTED... 5 THE EXCEL ENVIRONMENT...

More information

When you pass Exam : Access 2010, you complete the requirements for the Microsoft Office Specialist (MOS) - Access 2010 certification.

When you pass Exam : Access 2010, you complete the requirements for the Microsoft Office Specialist (MOS) - Access 2010 certification. Appendix 1 Microsoft Office Specialist: Access Certification Introduction The candidates for Microsoft Office Specialist certification should have core-level knowledge of Microsoft Office Access 2010.

More information

U005: Advanced Query. U005 Advanced Query Ver 2.4

U005: Advanced Query. U005 Advanced Query Ver 2.4 U005: Advanced Query 1 EXAMPLES NEEDED FOR TRAINING Slide 16: Perform an advanced query on a work order as instructed in the exercise. Slide 18: Create a Backlog view using an advanced query. 1. Assign

More information

Microsoft Access 2010 Queries II Action Queries & Lookups

Microsoft Access 2010 Queries II Action Queries & Lookups Microsoft Access 2010 Queries II Action Queries & Lookups Email: training@health.ufl.edu Web Page: http://training.health.ufl.edu Microsoft Access: Action Queries & Lookups 1.5 hours This workshop requires

More information

STIDistrict Query (Basic)

STIDistrict Query (Basic) STIDistrict Query (Basic) Creating a Basic Query To create a basic query in the Query Builder, open the STIDistrict workstation and click on Utilities Query Builder. When the program opens, database objects

More information

M I C R O S O F T A C C E S S : P A R T 2 G E T T I N G I N F O R M A T I O N O U T O F Y O U R D A T A

M I C R O S O F T A C C E S S : P A R T 2 G E T T I N G I N F O R M A T I O N O U T O F Y O U R D A T A M I C R O S O F T A C C E S S 2 0 1 3 : P A R T 2 G E T T I N G I N F O R M A T I O N O U T O F Y O U R D A T A Michael J. Walk ALC Instructor michael@jwalkonline.org www.jwalkonline.org/main @MichaelJWalk

More information

You can write a command to retrieve specified columns and all rows from a table, as illustrated

You can write a command to retrieve specified columns and all rows from a table, as illustrated CHAPTER 4 S I N G L E - TA BL E QUERIES LEARNING OBJECTIVES Objectives Retrieve data from a database using SQL commands Use simple and compound conditions in queries Use the BETWEEN, LIKE, and IN operators

More information

Microsoft Office Illustrated Introductory, Building and Using Queries

Microsoft Office Illustrated Introductory, Building and Using Queries Microsoft Office 2007- Illustrated Introductory, Building and Using Queries Creating a Query A query allows you to ask for only the information you want vs. navigating through all the fields and records

More information

Series 6 Technical Admin Guide Page 1

Series 6 Technical Admin Guide Page 1 Series 6 Technical Admin Guide Page 1 TABLE OF CONTENTS PRODUCT REGISTRATION... 6 Free Trial Registration and the Wizard...7 How the Trial Works...8 Register Invu Document Management...8 Privileges for

More information

QUERY USER MANUAL Chapter 7

QUERY USER MANUAL Chapter 7 QUERY USER MANUAL Chapter 7 The Spectrum System PeopleSoft Financials Version 7.5 1. INTRODUCTION... 3 1.1. QUERY TOOL... 3 2. OPENING THE QUERY TOOL... 4 3. THE QUERY TOOL PANEL... 5 3.1. COMPONENT VIEW

More information

using cells to create dynamic formulas

using cells to create dynamic formulas excel formulas A forumla is nothing more than an equation that you write up. In Excel a typical formula might contain cells, constants, and even functions. Here is an example Excel formula that we have

More information

Lesson 1: Creating and formatting an Answers analysis

Lesson 1: Creating and formatting an Answers analysis Lesson 1: Creating and formatting an Answers analysis Answers is the ad-hoc query environment in the OBIEE suite. It is in Answers that you create and format analyses to help analyze business results.

More information

CHAPTER 4: MICROSOFT OFFICE: EXCEL 2010

CHAPTER 4: MICROSOFT OFFICE: EXCEL 2010 CHAPTER 4: MICROSOFT OFFICE: EXCEL 2010 Quick Summary A workbook an Excel document that stores data contains one or more pages called a worksheet. A worksheet or spreadsheet is stored in a workbook, and

More information

MICROSOFT EXCEL VERSIONS 2007 & 2010 LEVEL 3. WWP Learning and Development Ltd Page 1

MICROSOFT EXCEL VERSIONS 2007 & 2010 LEVEL 3. WWP Learning and Development Ltd Page 1 MICROSOFT EXCEL VERSIONS 2007 & 2010 LEVEL 3 WWP Learning and Development Ltd Page 1 NOTE Unless otherwise stated, screenshots in this book were taken using Excel 2007 with a silver colour scheme and running

More information

Caterease User Training Guide

Caterease User Training Guide Caterease User Training Guide Copyright: 2016 Table of Contents Unit 1: Introducing Event Manager 15 Entering General Event Information 17 Searching for Events 19 Using the Event Finder 20 Reviewing and

More information

LIBRE OFFICE CALC What is Calc? Spreadsheets, sheets, and cells spreadsheets Spreadsheets Cells

LIBRE OFFICE CALC What is Calc? Spreadsheets, sheets, and cells spreadsheets Spreadsheets Cells 1 LIBRE OFFICE CALC What is Calc? Calc is the spreadsheet component of LibreOffice. You can enter data (usually numerical) in a spreadsheet and then manipulate this data to produce certain results. Alternatively,

More information

Chapter 4. Microsoft Excel

Chapter 4. Microsoft Excel Chapter 4 Microsoft Excel Topic Introduction Spreadsheet Basic Screen Layout Modifying a Worksheet Formatting Cells Formulas and Functions Sorting and Filling Borders and Shading Charts Introduction A

More information

Microsoft Access 2010

Microsoft Access 2010 2013\2014 Microsoft Access 2010 Tamer Farkouh M i c r o s o f t A c c e s s 2 0 1 0 P a g e 1 Definitions Microsoft Access 2010 What is a database? A database is defined as an organized collection of data

More information

Excel Tutorial 1

Excel Tutorial 1 IT٢.we Excel 2003 - Tutorial 1 Spreadsheet Basics Screen Layout Title bar Menu bar Standard Toolbar Other Tools Task Pane Adding and Renaming Worksheets Modifying Worksheets Moving Through Cells Adding

More information

Crystal Reports 2008 OFT - 700

Crystal Reports 2008 OFT - 700 Crystal Reports 2008 OFT - 700 Today s road map Why use Crystal Reports Definition of a report and its components How to use the Standard Report Creation Wizard: query the database and organize the data

More information

GCSE CCEA GCSE EXCEL 2010 USER GUIDE. Business and Communication Systems

GCSE CCEA GCSE EXCEL 2010 USER GUIDE. Business and Communication Systems GCSE CCEA GCSE EXCEL 2010 USER GUIDE Business and Communication Systems For first teaching from September 2017 Contents Page Define the purpose and uses of a spreadsheet... 3 Define a column, row, and

More information

Prepared By: Graeme Hilson. U3A Nunawading

Prepared By: Graeme Hilson. U3A Nunawading 0 Prepared By: Graeme Hilson U3A Nunawading - 2015 1 CONTENTS This Course Page 3 Reference Material Page 3 Introduction page 3 Microsoft Excel Page 3 What is a Spreadsheet Page 4 Excel Screen Page 4 Using

More information

Microsoft Access II 1.) Opening a Saved Database Music Click the Options Enable this Content Click OK. *

Microsoft Access II 1.) Opening a Saved Database Music Click the Options Enable this Content Click OK. * Microsoft Access II 1.) Opening a Saved Database Open the Music database saved on your computer s hard drive. *I added more songs and records to the Songs and Artist tables. Click the Options button next

More information

Learning Worksheet Fundamentals

Learning Worksheet Fundamentals 1.1 LESSON 1 Learning Worksheet Fundamentals After completing this lesson, you will be able to: Create a workbook. Create a workbook from a template. Understand Microsoft Excel window elements. Select

More information

Using Microsoft Excel

Using Microsoft Excel Using Microsoft Excel in Excel Although calculations are one of the main uses for spreadsheets, Excel can do most of the hard work for you by using a formula. When you enter a formula in to a spreadsheet

More information

Exam 2 Study Guide. Denny Hood Computer Science 101

Exam 2 Study Guide. Denny Hood Computer Science 101 Exam 2 Study Guide Denny Hood denny.hood@mail.wvu.edu Computer Science 101 A Brief Word About Your Exam Your exam will be MONDAY, APRIL 10. You will have 50 minutes to complete Exam 2. 1. If you arrive

More information

Formulas and Functions

Formulas and Functions Conventions used in this document: Keyboard keys that must be pressed will be shown as Enter or Ctrl. Controls to be activated with the mouse will be shown as Start button > Settings > System > About.

More information