Hello, can someone point me out how to declare and use variables?
I was trying to achive something like
SET FirstDayOfTheMonth = Today();
SQL SELECT * FROM MyTable Where Date = FirstDayOfTheMonth
But Im getting an error that says "FirstDayOfTheMonth" field cannot be found.
Thank you ,
Jose.
Try expanding that variable such as
That should work.SQL SELECT * FROM MyTable Where Date = $(FirstDayOfTheMonth)
Try expanding that variable such as
That should work.SQL SELECT * FROM MyTable Where Date = $(FirstDayOfTheMonth)
Let FirstDayOfTheMonth = Today();
SQL SELECT * FROM MyTable Where Date = '$(FirstDayOfTheMonth)';
LET is used with expressions and SET with values.