What is the best way to include an input param in the WHERE clause but exclude it if it is null?
WHERE
There are a number of ways I believe, but I can\'t seem
How about
WHERE (Column1 = @Var1 OR @Var1 IS NULL) AND (Column2 = @Var2 OR @Var2 IS NULL)