I’m trying to get a SQL query in a variable. The query should be something like
select*fromMyTablewhereDate1>Date2
The underlined objects are all variables. I am able to get the expression to work up to thewhere clause. After that I seem to be getting errors. Find below my expression and kindly help me identify where I need to correct.
This is how far it works:
"select * from " + @[User::IPMTableName] +" where "
This is where errors come it:
"select * from " + @[User::IPMTableName] +" where " @[User::MaxDateSQL16] > @[User::MaxDate001]
Many thanks,
Mpumelelo