I have 3 numeric(18,2) columns in my table. I want to create a fourth column that is computed. I created the computed column in SSMS
numeric(18,2)
fourth column
computed
You need to convert the computed column to numeric(18,2)
computed column
Example :
CREATE TABLE computed ( a NUMERIC(18, 2), b NUMERIC(18, 2), c AS CONVERT(NUMERIC(18, 2), a * b) ) INSERT INTO computed VALUES (1,2) SELECT * FROM computed