Quantcast
Channel: SQL Server Analysis Services Forum
Viewing all articles
Browse latest Browse all 2472

Can named query be based on a different named query (to save proccessing time)

$
0
0

Hi,

I have 2 named queries which are almost the same.

Is it possible instead, to have one query be based on results of the other query?

Ex:

Q1: SELECT * FROM myView

Q2: SELECT * FROM Q1 WHERE X=Y

My point is to save double runtime of myView, and also if changes need be made then only one place will need to change the code.

If it is possible- what's the syntax to refer to the first named query?

Thanks


Namnami


Viewing all articles
Browse latest Browse all 2472

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>