complex Subtract in sql server query
- by AmRoSH
Hello,
I have table like following
PK num1 num2 numsdiff
1 10 15 ?
2 20 25 ?
3 30 35 ?
4 40 45 ?
i need to get Subtract of 20 - 15 and 30 - 25 and 40 - 35 and so on by select query from this table.
any ideas?.
thanks