home *** CD-ROM | disk | FTP | other *** search
/ Computer Based Training: …, Windows 95 & NT Basics / a1454501.iso / mo97a03 / AA02TASK.TXT < prev    next >
Encoding:
Text File  |  1997-05-15  |  2.4 KB  |  91 lines

  1. #exercise 01
  2. In this exercise you are required to define a crosstab query using a Crosstab Query Wizard.
  3. |
  4. Creating a new crosstab query
  5. |
  6. #task 0101
  7. 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.
  8. |
  9. click the New Object button (which displays the Query icon)
  10. |
  11. double-click Crosstab Query Wizard
  12. |
  13. click the Queries radio button
  14. |
  15. double-click Products Query
  16. |
  17. double-click Product Name
  18. |
  19. double-click Category
  20. |
  21. click Next
  22. |
  23. double-click Company Name
  24. |
  25. choose the Units Sold field
  26. |
  27. select the Sum function
  28. |
  29. click Next
  30. |
  31. click Finish to accept the current settings
  32. |
  33. You have completed this task successfully.
  34. |
  35. You have not completed this task successfully.
  36. |
  37. #exercise 02
  38. In this exercise you are required to create and run an action query to update data in a table.
  39. |
  40. Creating an update query
  41. |
  42. Entering an update expression
  43. |
  44. Running the query and viewing its results
  45. |
  46. #task 0102
  47. From the current window (Products : Table), create a new select query in Design view, and convert it to an update query.
  48. |
  49. click the New Object button (currently showing the Query icon)
  50. |
  51. click OK to accept Design view
  52. |
  53. click the down arrow on the Query button
  54. |
  55. choose Update Query
  56. |
  57. You have completed this task successfully.
  58. |
  59. You have not completed this task successfully.
  60. |
  61. #task 0103
  62. 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.
  63. |
  64. click the down-arrow in the first Field cell
  65. |
  66. choose Unit Price
  67. |
  68. type [Unit Price]*1.05 in the Update To row
  69. |
  70. click the View button
  71. |
  72. You have completed this task successfully.
  73. |
  74. You have not completed this task successfully.
  75. |
  76. #task 0104
  77. Return to Design view, and run the query. Then switch to the (open) Table window to see the effect of running your update query.
  78. |
  79. click the View button (currently showing the Design View icon)
  80. |
  81. click the Run button
  82. |
  83. click Yes
  84. |
  85. choose Products : Table from the Window menu
  86. |
  87. You have completed this task successfully.
  88. |
  89. You have not completed this task successfully.
  90. |
  91.