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
![](https://secure.gravatar.com/avatar/cf2eaef781c3c8b4fdc152b8900e7f1d?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
-
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