Why would someone use WHERE 1=1 AND in a SQL clause (Either SQL obtained through concatenated strings, either view definition)
WHERE 1=1 AND
I\'ve
1 = 1 expression is commonly used in generated sql code. This expression can simplify sql generating code reducing number of conditional statements.