How To Use FIRST_VALUE & LAST_VALUE Function In SQL Server