Archives of the TeradataForum
Message Posted: Tue, 13 Jan 2004 @ 12:31:16 GMT
Subj: | | Re: How to concatenate the column values |
|
From: | | Jim Downey |
Do you know the max number of columns? if so, you just need to code for the max number of columns. Say you code for 20 and only get 19, the
last column will be '' which gives you the desired result.
It doesn't matter how many rows.
You could use a stored procedure to pass thru the table concatenating values until your activity count=0. I am not proficient enough to pop
off an example but I am pretty sure you could do it.
Jim
|