SELECT DISTINCT ContractNumber, AccountID WHERE ContractNumber IN ( (CASE WHEN @PorC = 'P' THEN (PNumber) ELSE (@TNumber) END) ) This works when @TNumber is a single value, but the parameter is ...
A small social media poll from Visual Studio guru Mads Kristensen split respondents over whether the IDE should add more database tooling, while the discussion quickly turned to existing SQL project ...