SQL is not one of my strong suits. I have a SQL Server 2008 database. This database has a stored procedure that takes in eight int parameters. For the sake of keeping this q
WHERE coalesce(active,1) = (CASE WHEN @isActive = -1 THEN coalesce(active,1) ELSE @isActive END)