when you say type=HEAP, do you refer to the first table or the second which the ultimate query will be performed upon.
To give a little more information -
1st query - select last 3 outings for each team
2nd query - select all records less than 4 months old.
3rd query - group each team and printf [fastest time] for each team
I have no problem writing the individual queries, but I am unable to write one query to cover all criterea. (having done the same task in access, it took 3 sepertae queries)
And how do I remove all the records once the data has been retreived and displayed, should this be done prior to the first query and should I delete the tables or after the last query?
Many thanks in advance for your advice.
Nigel.