**My select statement returns **
ID1
ID2
ID3
ID4
ID5
ID6
ID7
. . . and so on My Output should be
ID1,ID2
ID3,ID4
ID4,ID5
ID5,ID6
ID7
. . . I have tried Group BY , List agg and rownum functions but it did not work. I use a SQL servlet with readonly access.
To group successive rows, use
CEIL(id/2):Result :
Demo here