I have several hard coded SQL statements in an input data that have a WHERE clause to limit the data between two dates i.e. WHERE DateField BETWEEN '2019-01-01' AND '2019-12-31'.
Is it possible to create a variable in place of dates in the between statement for each SQL statement in the SQL editor? That way instead of hard coding the dates to pull different years in each statement I can just update the variable for beginning and end dates and all SQL statements will be updated? i.d.
WHERE DateField BETWEEN [Variable1] AND [Variable2];
I'm new to Alteryx. If there is a better way to do the above without using variables how would I go about it?