Archives of the TeradataForum
Message Posted: Tue, 13 Jan 2004 @ 12:31:16 GMT
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.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 27 Dec 2016|