I would like to perform mathematical operations along with fetching records from table.
Example : I have table with below data
| orderid | value | orderdate |
----------------------------------
1 | 100 | 2013-08-08 |
2 | 200 | 2013-08-05 |
3 | 300 | 2013-08-06 |
4 | 400 | 2013-08-09 |
And I am looking to sum(value) along with fetching all records from table. Example output
sum(value)| orderid | value | orderdate |
-------------------------------------------
1000 | 1 | 100 | 2013-08-08 |
1000 | 2 | 200 | 2013-08-05 |
1000 | 3 | 300 | 2013-08-06 |
1000 | 4 | 400 | 2013-08-09 |