I have a select statement that involves a "IN" clause:
SELECT *
FROM [database]
WHERE [variablename] IN (1..2..3..4..)
Some of my variables are a letter followed by a number in sequential order. For example, V1, V2, V3....V30.
I would like to avoid typing every variable within the statement, is there a way to create an array or list that could store those 30 variables for me and then call them in the query? Or generate the variables by range?