There is a question related to this topic but is not the same that I am going to ask, I need to do something similar as we do in SQL but this time in Denodo.
This is in SQL:
DECLARE @curr varchar (10);
SET @curr = 'USD;
SELECT
Country,
Currency
FROM
Currencies
WHERE
Currency = @curr;
I have tried something like this in Denodo
SELECT
Country,
Currency
FROM
Currencies
WHERE
Currency = GETVAR('curr', 'VARCHAR', 'USD');
But is not showing results. Does anyone know how can we do something similar to SQL variable declaration in Denodo?
The error is caused because of the wrong data type You can use 'text' instead of using 'varchar' This change will save your query :)
Here is a sample usage