You can find many useful documents in the Help section of you administration panel. Go to "GT Module Documentation", and you'll find all you need. Take a look at "GT::SQL::Table", which deals with selects.
Ivan
-----
Iyengar Yoga Resources / GT Plugins
Ivan
-----
Iyengar Yoga Resources / GT Plugins