Let’ say I have a table with 3 columns
ID INTEGER,
OFFSET INTEGER,
STR VARCHAR(50)
Containing values:
ID OFFSET STR
1 1 TestSTR1
1 2 TestSTR3
1 3 TestSTR5
2 1 TestSTR4
2 2 TestSTR2
3 1 TestSTR6
I would like to pull the concatenated “STR” for each ID (ordered by OFFSET). So basically, what I want is:
ID STR
1 TestSTR1TestSTR3TestSTR5
2 TestSTR4TestSTR2
3 TestSTR6
Any thoughts on how would you construct a similar query?