I need to concatenate data (strings) from <> rows. My table looks something like:
1 'X'
1 'YR'
2 'FI'
2 'E'
2 'AAA'
And I need a select statment that returns
1 'X YR'
2 'FI E AAA'.
I don't know how many rows each number has, and I don't know the size of the original string.
I think this can't be done with SQL, but I'd prefer to avoid doing it on my application code (with a for each statment) or with cursors. It has to be a single SELECT statment.
HELP!!!
NetAngel
1 'X'
1 'YR'
2 'FI'
2 'E'
2 'AAA'
And I need a select statment that returns
1 'X YR'
2 'FI E AAA'.
I don't know how many rows each number has, and I don't know the size of the original string.
I think this can't be done with SQL, but I'd prefer to avoid doing it on my application code (with a for each statment) or with cursors. It has to be a single SELECT statment.
HELP!!!
NetAngel