SQL Server| Refactor for clarity

Thanks remh!