SQL FIRST_VALUE and LAST_VALUE Function Tutorial