Have a database with three columns – gamekey, teamed, final score. I am trying to find the score differential for each gamekey.
Gamekey. Teamed. Finalscore 16 27 21 16 7 24 17 22 17 17 21 10 18 15 9 18 11 3
Desire output would be
Gamekey. Scorediff 16 3 17 7 18 6
Looks like you want the absolute value of the difference, so you could use;
–adding the below for validation you ran (granted the below was tested in SQL Server)