Don't get hung up on using data controls, you can solve the problem with the answer provided in the topic labelled:

Topic: How to do this using SQL ? Please help!!