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.

The answer to the exercise will be included and explained if you attend the Wise Owl courses listed below!

Category ==> Access 2010  (66 exercises)
Topic ==> Advanced queries  (16 exercises)
Level ==> Average difficulty
Courses ==> Access Querying  /  Access Developers
Before you can do this exercise, you'll need to download and unzip this file (if you have any problems doing this, click here for help).

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:

Ray Park in X-Men

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:

Jonathan Pryce role

At the other end of the scale ...

Close this query down.

This page has 0 threads Add post