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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can a second query be based on temporary one? 1

Status
Not open for further replies.
Jul 6, 2005
52
GB
I have 2 queries, the second of which simply groups the results of the first. I would like to do this in code without creating any saved queries, i.e. making the first query temporary. Can this be done and if so how? If not, is there another way?
 
A starting point:
SELECT A.*
FROM (SELECT blah blah) AS A

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top