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
check out this neat article here. It explains why "where (@param is null or Field=@param)" doesn't perform well and what to use instead.