I have table structure like this
id name salary manager
1 vishal 1000 Shiva
2 shweta 2000 ABC
3 Ankit 1500 Navodit
4 Smriti 1900 Navodit
5 Shiva 1100 Santosh
6 Navodit 2800 Santosh
and want an additional column which calculates the salary like for first record it should be same.but from second record it should be the addition of first and second record salary. in that case for shweta the salary would be 3000,for Ankit 4500 and so on.