To add a more visual response i did 10 tests on the query window and created an image of the input and results.

http://i90.photobucket.com/albums/k252/Tewl187/mirc.png