| Step by step exercise. Make-table queries |
| Objective. |
| Practice the procedures for Creating Make-table queries.
|
| Exercise 1. |
|
1 Open the Classes.mdb database. 2 Position yourself in the Queries tab of the Database window. 3 Click on the Create
query in Design view option, or click on the The Show table box will open next. 4 Click on the Students table, this way it will remain selected if it was not already before. 5 Click on the Add button. 6 Click on the Close button to close the dialogue box as the query will be based on only the Students table. We are going to add all the fields. 7 Double click on the students field * to select all the fields in one go. 8 Double click on the City field in order to add it to the grid so as to be able to indicate the search criteria. 9 Type Las Vegas in the Criteria: row to form the condition: City = 'Las Vegas' . 10 On the Show row uncheck the verification box of the City column so that the city does not appear twice (its already included in students.*). Now we have the query with which to obtain the data to save in the new table. 11 Drop down the 12 Type the name of the new table as Students from Las Vegas. Remember that you can not have a query with the same name.. 13 Click on the Ok button. 14 Click on the Datasheet view button
15 Click on the Design view 16 Click on the run button 17 Close the query and name it Create Students from Las Vegas.
|
|
|
|
Legal warning: Authorised on-line use only. It is not allowed the use of these courses in companies or private teaching centres.
|
|
© aulaClic. All rights reserved. Reproduction in any form whatsoever is prohibited.
April-2006.
|