Using Functions in SQL Server 2016