Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 8968

Re: Union with constant value using CE script

$
0
0

Depending on your use case, I have had to use scalar variables in SQLScript in WHERE clauses between two select statements to achieve similar performance as branch-pruning graphical CalcViews. You'd use an input parameter rather than WHERE clause.

 

Example:

 

SELECT ..

FROM ..

WHERE :input_parameter = 'A'

 

UNION ALL

 

SELECT ..

FROM ..

WHERE :input_parameter = 'B'


Viewing all articles
Browse latest Browse all 8968

Trending Articles



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