How to subtract two values in sql server which are in different columns in the same table
SELECT A, B, A-B AS C, B-A AS D FROM YourTable
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)