Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perform query on existing query

Status
Not open for further replies.

NigeB

Technical User
Nov 29, 2000
53
GB
Is there a way to perform a query and generate a table then perform a query on that table to give another? This is probobly easy, but I require this to be done each time the first query is run to bring back data to a web page (PHP)

Many thanks in advance

Nigel.
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top