+ Start a Discussion

How to get sum of column values of SOQL query data in a table?


I have input search field in vf page, as per the search given in that field i am displaying resulted data in a table (Item and price).

now, i have to show sum of price column values in a table(Soql query resulted data as per value given in a input search filed).

Kindly help to achieve this scenario.

Item         Price 
  A            100
  B            300
  C            500
      Total:  900

Thanks in Advance!!
can u tell me how you are display it in a table,,, try to post ur code so that it will be helpful to solve it