Надеюсь, что следующие запросы помогут вам ....
Create table #temp
(
id int,
price varchar(5),
qty int
)
insert into #temp values(1,'50',1)
insert into #temp values(2,'500',4)
insert into #temp values(3,'100',6)
--Select All queries together
DECLARE @StdRevenue TABLE
(
ProductID int,
Revenue money
);
--insert values to columns
INSERT INTO @StdRevenue (ProductID, Revenue)
SELECT id, price * qty
FROM #temp
SELECT * from @StdRevenue;
---- До здесь