I am having trouble writing a select statement for an sql. I want to select all items for using three variables that can each have values of 0,1,2,3. I want items that are "0" to always be included. This is my select statement:
"SELECT * FROM [Table1] WHERE [Variable1] = 0 OR [Variable1] = 1 AND WHERE [Variable2] = 3 AND [Variable3] = 2"
The select statement doesn't seem to recognize the input for [Variable3] or [Variable2].
What's wrong?
"SELECT * FROM [Table1] WHERE [Variable1] = 0 OR [Variable1] = 1 AND WHERE [Variable2] = 3 AND [Variable3] = 2"
The select statement doesn't seem to recognize the input for [Variable3] or [Variable2].
What's wrong?