Align BETWEEN with comparison operators
It's currently possible to align operations in WHERE which is great, but BETWEEN is not aligned.
Example - currently:
WHEREModifiedDate BETWEEN DATEADD(MONTH, -6, GETDATE()) AND GETDATE()
AND City__________= 'Bothell'
OR LEFT(PostalCode, 2)= 'CB'
OR PostalCode_______= @prefix + @suffix
Expected:
Example - currently:
WHEREModifiedDate_BETWEEN DATEADD(MONTH, -6, GETDATE()) AND GETDATE()
AND City________= 'Bothell'
OR LEFT(PostalCode, 2)= 'CB'
OR PostalCode_______= @prefix + @suffix
-
Klaus Ondrich commented
Sorry, it was not possible to explain it exactly in the suggestion editor. BETWEEN keyword should be at the same column position like = and so on:
WHERE_ModifiedDate___BETWEEN DATEADD(MONTH, -6, GETDATE()) AND GETDATE()
AND City______________= 'Bothell'
OR LEFT(PostalCode, 2)_= 'CB'
OR PostalCode_________= @prefix + @suffix