The results of queries are cached until the next refresh: 1, 2.
Is it possible to refer to those cached results in other queries?
I imagine if there is, it might look something like this:
SELECT * FROM [data.stackexchange.com/<site-name>/revision/<query-id>/<revision-id>/#<table-number>?<query-parameters>]
Where <table-number>
is for if the batch has multiple result sets.
The reason I thought of this question is because it seems like it could be used as a technique to compose more complicated queries where various parts take a long time to execute.
I'm pretty new to SQL and TSQL. I know a bit about the WITH
statement, and nested queries, and today I learned there's an EXECUTE
thing, but I'm guessing those will all be part of the same execution timeout timer.
This could very well be an XY problem (with me just needing to learn how to write queries that execute better), but still, I ask.