Skip to main content

Questions tagged [recursive]

Using recursion to solve database problems.

53 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0 votes
0 answers
76 views

Cleaner approach for Recursive CTE query

I have a table called entry_changes defined as follows: Table "public.entry_changes" Column | Type | ...
Victor's user avatar
  • 436
0 votes
2 answers
2k views

While Loop - Parent/Child Tree

I'm trying to recursively loop through and return all child_id's that have the root element of 9. The structure: ->9 ->->8 ->->->17 ->->22 ->->->11 Parent Child ...
Jordan Davis's user avatar
0 votes
0 answers
228 views

Oracle Database - Recursive sum?

I have an Oracle db and a table and I'd want to sum the VAL column until I have the value in column SUMM 100 and the difference in column DIF - as in this example: ID VAL SUMM DIF 1 40 40 ...
WDrgn's user avatar
  • 349

1
2