EXERCISE TOPIC▼
ACCESS EXERCISES▼
ACCESS EXERCISES▼
Access | Advanced queries exercise | Create a query comparing text lengths
This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.
You can learn how to do this exercise on the relevant Wise Owl classroom training course (sadly for the moment only in the UK).
Software ==> | Access (66 exercises) |
Version ==> | Access 2010 and later |
Topic ==> | Advanced queries (16 exercises) |
Level ==> | Average difficulty |
You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.
Create a query called Lengths which uses the Len function to calculate the total length of each character's role, defined as the sum of:
- the number of characters in the actor's name; plus
- the number of characters in the film's name; plus
- the number of characters in the name of the character being played.
Apply sorting to show that Ray Park in X-Men achieved film immortality, by having the lowest total length:

Thought: what was the name of Bo Derek's character in 10?
Now reverse the sort order to show that Jonathan Pryce also stands out:

At the other end of the scale ...
Close this query down.