Orders
ProductPrice ProductQuantity TotalCost
-- --
£2.50 2
£1.75 3
£12.99 2
Can anyone please help me?You don't need a trigger, you need a computed column:
CREATE TABLE [dbo].[xxx](
[col_a] [int] NOT NULL default(2),
[col_b] [int] NOT NULL default(2),
[col_axb] as a * b,
) ON [PRIMARY]
GO|||Thank you for the help!
No comments:
Post a Comment