Lets says I got a table like this -
id | name | salary
01 | ABCD | 1000
02 | EFGH | 2000
03 | IJKL | 3000
Now is it possible to get result set like this?
id | name | salary | SUM
01 | ABCD | 1000 | 6000
02 | EFGH | 2000
03 | IJKL | 3000
I tried SELECT id, name, salary, SUM(salary) FROM table
but it just gives me one row. Is there any way to get all the rows with an extra column ?