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
What is set nocount on and what is set nocount off?
Explain about unique identifier data type in sql server?
What are the 2 types of classifications of constraints in the sql server?
What are the differences between INNER JOIN, LEFT JOIN and RIGHT JOIN in SQL Server?
How to use go command in "sqlcmd"?
Explain different types of self contained sub query?
Why we use functions in sql server?
What is a livelock?
Explain something about security and SQL Azure?
What to check if a User database is locked?
What is self contained scalar sub query?
what's the difference between a primary key and a unique key? : Sql server database administration
how can you check the level of fragmentation on a table? : Sql server administration
What area unit the various kinds of info compression introduced in sql server 2008?
what is difference between NULL and ISNULL in SQL Server 2008?