Jan 28, 2015 08:51 AM|Zhi Lv - MSFT|LINK
As for this issue, I suppose you need to create a temporary table and use the ABS function, and perhaps you need to use stored procedure.
From my point of view, you could query the initial table and get the first two lines and insert them into the temporary table. Then query the initial table and use the ABS function
to get the third line, and insert it to the temporary table. At last, query the temporary table, and get the desired values.
Here are some relevant articles, you could refer to them.
Temporary Tables in SQL Server: https://www.simple-talk.com/sql/t-sql-programming/temporary-tables-in-sql-server/