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?