Deck 9: Using Action Queries and Advanced Table Relationships
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/12
Play
Full screen (f)
Deck 9: Using Action Queries and Advanced Table Relationships
1
What is an action query
Access allows users to query its database to access, modify, update and delete the data stored in its tables.
The Queries used by Access to modify, update and delete data from multiple tables or multiple records from a table at once are called as Action Queries.
Types of Action Queries:
• Make-Table Query: This query is used to view the data in a table. In other words, a make-table action query creates a new table from existing tables by satisfying the criteria specified in the query. Here the records in the old tables are not deleted.
• Append Query: This query simply appends the selected fields and records from an existing table to another table. For example, consider a supermarket is maintaining its yearly sales. Using an append query it can append the present half-yearly sales to previous half-yearly sales and thus maintain the whole year sales in one table. Advantage of this query is data that is appended to another table is not deleted from the existing table.
• Update Query: Update Query is used to update field values in records for a table.
• Delete Query: Delete Query is for deleting the records from the tables. Records once deleted are permanently erased.
The Queries used by Access to modify, update and delete data from multiple tables or multiple records from a table at once are called as Action Queries.
Types of Action Queries:
• Make-Table Query: This query is used to view the data in a table. In other words, a make-table action query creates a new table from existing tables by satisfying the criteria specified in the query. Here the records in the old tables are not deleted.
• Append Query: This query simply appends the selected fields and records from an existing table to another table. For example, consider a supermarket is maintaining its yearly sales. Using an append query it can append the present half-yearly sales to previous half-yearly sales and thus maintain the whole year sales in one table. Advantage of this query is data that is appended to another table is not deleted from the existing table.
• Update Query: Update Query is used to update field values in records for a table.
• Delete Query: Delete Query is for deleting the records from the tables. Records once deleted are permanently erased.
2
What precautions should you take before running an action query
Access allows users to query its database to access, modify, update and delete the data stored in its tables.
The Queries used by Access to modify, update and delete data from multiple tables or multiple records from a table at once are called as Action Queries.
Before creating an action query, first it is necessary to test the query on the tables. This can be done by creating a select query to the action that must be implemented.
The select query must be executed first. Once the result is as expected then convert the select query to action query. Then it can be executed against the database.
The Queries used by Access to modify, update and delete data from multiple tables or multiple records from a table at once are called as Action Queries.
Before creating an action query, first it is necessary to test the query on the tables. This can be done by creating a select query to the action that must be implemented.
The select query must be executed first. Once the result is as expected then convert the select query to action query. Then it can be executed against the database.
3
What is the difference between a make-table query and an append query
• Make-Table Query is used to view the data in a table. In other words, a make-table action query creates a new table from existing tables by satisfying the criteria specified in the query. Here the records in the old tables are not deleted.
Append Query simply appends the selected fields and records from an existing table to another table.
• Make-Table query does not delete the records from original tables. These queries are used to create customized tables.
Append Query are used to create history tables. Therefore, once data is appended from a table to another, the user can delete the records.
• The tables created using Make-Table query represent current data.
In Append query, the data will change as updates occur.
Append Query simply appends the selected fields and records from an existing table to another table.
• Make-Table query does not delete the records from original tables. These queries are used to create customized tables.
Append Query are used to create history tables. Therefore, once data is appended from a table to another, the user can delete the records.
• The tables created using Make-Table query represent current data.
In Append query, the data will change as updates occur.
4
What does a delete query do
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
5
What does an update query do
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
6
How does the design grid change when you create an update query
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
7
What are the three types of relationships you can define between tables
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
8
What is an entity subtype
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
9
What is the difference between an inner join and an outer join
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
10
What is a self-join
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
11
What is an index
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck
12
Figure 9-30 lists the field names from two tables: tblDepartment and tblEmployee.
Unlock Deck
Unlock for access to all 12 flashcards in this deck.
Unlock Deck
k this deck