Quantcast
Channel: SCN : Unanswered Discussions - Semantic Layer
Viewing all articles
Browse latest Browse all 1291

IDT - Universes - Dynamic SQL with Parameters

$
0
0

Hi all,

 

Is it possible to create "dynamic" SQL statements with Parameters?

 

For example, I created a parameter called "CUSTOM_PARAM".

 

I set it to something like "(CASE WHEN COMPANY_ID > 100 THEN 1 ELSE 0 END) AS CUST_ATTR".


I then created a Derived Table:

SELECT

     a.*,

     @Prompt(CUSTOM_PARAM)

FROM company_table a

 

Unfortunately when I show values, the CUSTOM_PARAM is showing up as a string.

 

Any idea how I can make my SQL script or Derived Table dynamic?


Viewing all articles
Browse latest Browse all 1291

Trending Articles



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