SQL, multiply two columns in the same row and create a "total" column -
that trying achieve, have except total column. total column result of number * product price. have tried several sum() queries, none coming out way want , finding difficult making new column in process. appreciated, thanks.
you should able append query so:
select transactionid, customerid, storeid, transactiondate, number, productname, productprice, number*productprice total dbo.table
Comments
Post a Comment