hi,
i have a table called names and field name
select * from names
name
a
b
c
d
i want to display like this
name
a,b,c,d
how it is possible
Regards
Baiju
Answer Posted / kulwinder
DECLARE @chrString as varchar(200)
select @chrString=@chrString + ',' + Name from Names
? @chrString
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Why do we use non clustered index?
How to assign null values to variables or columns?
Determine when to use stored procedure to complete sql server tasks?
can SSRS reports Cache results?
What are the acid properties?
Is null vs coalesce?
What is cursors? And what are the different types of cursor?
What is efficiency data?
What is buffer cash and log cache in sql server?
Which data type columns are the best candidates for full-text indexing?
What is report server project?
What is database mirroring?
How you provide security to cube? : sql server analysis services, ssas
How do I create a trace in sql server?
What extended events?