I concur with the others. Post your code please.
I'm not sure how old either o the others are but:
I'd say you need a table or query on your query.
Joking aside, you don't have many posts.
Please read the following and you will find the riches will be flowing:
How to ask questions the smart way
Be mindful of the following:
Be clear and consise with your subject heading, this gets people reading your posts
Be the same with your question:
Say what the problem or challange you have is
How the problem occured, or what is causing the you trouble with the challange
Post any code which doesn't work and explain where it didn't work, or post the code you have got so far towards an answer
Tell us what you have done to try and fix it
Tell what you expect to happen and give example of code/outputs
When people do help you, tell them they have, or explain to them they haven't and why. (Unlike your other 2 posts)
And finally, never post the same question twice.
Sorry if it's off topic, but you will feel the benefits, I promise you this helpful advise not just throwing mud.
Cheers,