I have an issue regarding multi-row comments in a table that I need to extract as a single string via SQL. I have two tables: test and comment. Here's some example data for each with the desired result set I'm looking for:
I'm honestly not even sure if what I'm looking for is possible without PL/SQL or some form of external programming language. I've been jousting with connect by for a bit and had no luck. Any help would be greatly appreciated.
EDIT: I should mention that the number of result_key values per comment_key value is variable, and that string format doesn't matter (spacing, etc.). So, in a nutshell, Result_Text(n)+Result_Text(n+1)+...