Take Control: Q&A Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

Updating the Movie Table

Update the RentalID

Type: 1

Run the Query

 

Microsoft Access will prompt you that you are about to update 32 rows. Click, “Yes.”

 

All 32 of the movies released in 2005 have a RentalID of 1, now. Can you edit the query to update the prices for the other movies?

 

Try it: Use the Update Query

Go back to Design View

Change the Criteria to 2004 and the Update for RentalID to 2. Run the query. You will update 22 rows.

 

One more time: Edit the Criteria

Change the Criteria to >2004 and the Update for RentalID to 3. Now, all of the movies that were released before 2004 will be updated.

 

Design -> Update Query