Hi, you could do something like:
Code:
SELECT casenum, seq_no, trim(text) ||
(SELECT trim(text) FROM table
WHERE casenum = t.casenum
AND seq_no = t.seq_no + 1) ||
(SELECT trim(text) FROM table
WHERE casenum = t.casenum
AND seq_no = t.seq_no + 2)
FROM table t
WHERE seq_no = 1
where the successive texts are retrieved with the subqueries in the SELECT clause. But I just tried it and it fails when there are less successive rows than subqueries. So this will only work if there is a fixed amount of rows per case and it's a shitty solution anyway, for one thing because of performance. I would definitely choose for some code wrapped around it to get what you want.
Regards