segmentfault
Programmer
i have a table that contain the following
visit days total_days
1 2
2 3
3 1
4 2
what i want to do is sum up the days so that the output looks like this
visit days total_days
1 2 2
2 3 5
3 1 8
4 2 10
can i do this with rollup and group by? i tried but i couldn't do it. please help.
visit days total_days
1 2
2 3
3 1
4 2
what i want to do is sum up the days so that the output looks like this
visit days total_days
1 2 2
2 3 5
3 1 8
4 2 10
can i do this with rollup and group by? i tried but i couldn't do it. please help.