jayakrishnan Morayur

jayakrishnan Morayur

  • NA
  • 193
  • 258.3k

Product of two table feilds

Jul 22 2011 4:47 AM
I have a table bellow

productId       productQty     productRate
1                         10           100
2                         20           200
3                         30           300    
4                         40           400
5                         50           500    


i need the out put is bellow 

productQty
-----------
(10*100)+
(20*200)+
(30*300)+
(40*400)+
(50*500)

in SQL Server 2005



Answers (3)