In this exercise you are required to define a crosstab query using a Crosstab Query Wizard.
|
Creating a new crosstab query
|
#task 0101
Use the wizard to create a crosstab query based on "Products Query". Show product names and categories as row headings, and customer companies as column headings. Calculate the total number of units sold, and include row sums in the query.
|
click the New Object button (which displays the Query icon)
|
double-click Crosstab Query Wizard
|
click the Queries radio button
|
double-click Products Query
|
double-click Product Name
|
double-click Category
|
click Next
|
double-click Company Name
|
choose the Units Sold field
|
select the Sum function
|
click Next
|
click Finish to accept the current settings
|
You have completed this task successfully.
|
You have not completed this task successfully.
|
#exercise 02
In this exercise you are required to create and run an action query to update data in a table.
|
Creating an update query
|
Entering an update expression
|
Running the query and viewing its results
|
#task 0102
From the current window (Products : Table), create a new select query in Design view, and convert it to an update query.
|
click the New Object button (currently showing the Query icon)
|
click OK to accept Design view
|
click the down arrow on the Query button
|
choose Update Query
|
You have completed this task successfully.
|
You have not completed this task successfully.
|
#task 0103
Insert the Unit Price field in the design grid, and type an update expression in the Update to row, multiplying [Unit Price] by 1.05 (to increase the current prices by 5 percent). Switch to Datasheet View to check which field entries will be updated.
|
click the down-arrow in the first Field cell
|
choose Unit Price
|
type [Unit Price]*1.05 in the Update To row
|
click the View button
|
You have completed this task successfully.
|
You have not completed this task successfully.
|
#task 0104
Return to Design view, and run the query. Then switch to the (open) Table window to see the effect of running your update query.
|
click the View button (currently showing the Design View icon)