Hi
I am trying to execute a multi-line formatted SQL statement using a SQL() in a script.
here is the example.
Column_1 = ISNULL(NULLIF(CASE WHEN CASE WHEN NULLIF (Column_1, 0) > 1 THEN NULLIF (Column_1, 0) / 100 ELSE NULLIF (Column_1, 0)
END > .25 THEN 1 - CASE WHEN NULLIF (Column_1, 0) > 1 THEN NULLIF (Column_1, 0) / 100 ELSE NULLIF (Column_1, 0)
END ELSE CASE WHEN NULLIF (Column_1, 0) > 1 THEN NULLIF (Column_1, 0) / 100 ELSE NULLIF (Column_1, 0)
END END,0),COALESCE(NULLIF(Theo_Win,0) / NULLIF(Coin_In,0),
NULLIF(Column_2,0)/NULLIF(Column_4,0),Column1)),
Column_3 = ISNULL(NULLIF(CASE WHEN CASE WHEN NULLIF (Column_3, 0) > 1 THEN NULLIF (Column_3, 0) / 100 ELSE NULLIF (Column_3, 0)
END > .25 THEN 1 - CASE WHEN NULLIF (Column_3, 0) > 1 THEN NULLIF (Column_3, 0) / 100 ELSE NULLIF (Column_3, 0)
END ELSE CASE WHEN NULLIF (Column_3, 0) > 1 THEN NULLIF (Column_3, 0) / 100 ELSE NULLIF (Column_3, 0)
END END,0),COALESCE(NULLIF(Net_Win,0) / NULLIF(Coin_In,0),
NULLIF(Net_Win_PUPD,0)/NULLIF(Column_4,0),
Column_3)),
is there a way i can pass a multi line sql statement to a sql function?
Thanks,