ABS (SQL Server Compact)
Returns the absolute, positive value of the given numeric expression.
The following example returns the absolute value of the difference between the number of products in stock and number of products that have been ordered.
SELECT [Units In Stock] - [Units On Order] AS Expr1, ABS([Units In Stock] - [Units On Order]) AS Expr2 FROM Products or SELECT [Units In Stock] - [Units On Order] , ABS([Units In Stock] - [Units On Order]) FROM Products