Этот пример должен иллюстрировать то, чего вы хотите достичь.
create table #table
(
ordernum int identity(1,1) primary key,
orderdate smalldatetime,
custemail varchar(50),
subtotal money,
salestax money,
shipping money,
total AS(subtotal+salestax+shipping)
)
insert into #table
(
orderdate,
custemail,
subtotal,
salestax,
shipping
)
select
getDate(),
'some@email.com',
1.00,
1.00,
1.00
select * from #table
drop table #table
ура, Джон