alexiop:
The query that r937 gave you may or may not do what you want. That is something that only you can decide.
The query that 937 gave does what you've requested. Take a look at the queries output.
Note that the WHERE clause in this code is something that is necessary to meet your request, but it could be what is keeping you from getting the results that you want.
-PatP