Concatenate names from all all the rows to one column
-
Hi all, I want to get concatenatenames of all rows in one column ..can any one help me. suppose i get A B C AS 3 3 DIFFERENT ROWS I WANT TO CONCATENATE GET ABC AS THE RESULT = NEW COLUMN.. CAN ANY ONE CAN HELP
-
Hi all, I want to get concatenatenames of all rows in one column ..can any one help me. suppose i get A B C AS 3 3 DIFFERENT ROWS I WANT TO CONCATENATE GET ABC AS THE RESULT = NEW COLUMN.. CAN ANY ONE CAN HELP
You can use COALESCE function of sql server for this purpose.
Do good and have good.
-
Hi all, I want to get concatenatenames of all rows in one column ..can any one help me. suppose i get A B C AS 3 3 DIFFERENT ROWS I WANT TO CONCATENATE GET ABC AS THE RESULT = NEW COLUMN.. CAN ANY ONE CAN HELP
-
You can use COALESCE function of sql server for this purpose.
Do good and have good.
You reckon? How exactly?
Regards, Rob Philpott.
-
-
An easy way would be writing a stored procedure, opening a cursor on the table, loop through it and while looping, concatenate the return string.
The need to optimize rises from a bad design.My articles[^]
I hate cursors so I love this concat function
DECLARE @Text VARCHAR(8000) SET @Text = '' SELECT @Text = @Text + ',' + class FROM PFClass SELECT @Text
Never underestimate the power of human stupidity RAH
-
I hate cursors so I love this concat function
DECLARE @Text VARCHAR(8000) SET @Text = '' SELECT @Text = @Text + ',' + class FROM PFClass SELECT @Text
Never underestimate the power of human stupidity RAH
-
I hate cursors so I love this concat function
DECLARE @Text VARCHAR(8000) SET @Text = '' SELECT @Text = @Text + ',' + class FROM PFClass SELECT @Text
Never underestimate the power of human stupidity RAH