Filter and Modify Data in SQL Server 2016