Using ASP Classic and MS Access (don't ask), how can I temporarily store the result of a subquery for re-use? For example, I want to run multiple queries from my ASP script like:
SELECT stuff FROM (subquery) WHERE ... conditions
SELECT otherstuff FROM (subquery INNER JOIN othertable) WHERE ... different conditions
And display the results of each. The subquery is the same in each case, and is quite expensive to run so I would like to run it just once. What is the best way to do this?