I am trying to subtract 2 columns in a database table and call the column calc, and its giving me an error:
Invalid operator for data type. Operator equals subtract, type equals nvarchar.
Anyone shed some light on this? Thanks.
SELECT
,[old]
,[new]
, (new - old) as calc
FROM database
database:
what i want to show with calc column:


Try: