SQL, multiply two columns in the same row and create a "total" column -


enter image description here

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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -