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 have a table function (pipelined) which take as an argument a cursor. for each row in the cursor i go and execute another query which produce more than 5 rows.
for example, for one row in the cursor, my query can produce 5 rows. for another row in the cursor the query can produce 7 rows...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.