T-SQL

Technical Article

Concatenating Row Values in Transact-SQL

  • Article

It is an interesting problem in Transact SQL, for which there are a number of solutions and considerable debate. How do you go about producing a summary result in which a distinguishing column from each row in each particular category is listed in a 'aggregate' column? A simple, and intuitive way of displaying data is surprisingly difficult to achieve. Anith Sen gives a summary of different ways, and offers words of caution over the one you choose.

(1)

You rated this post out of 5. Change rating

2008-08-22

4,249 reads

Blogs

Advice I Like: Celebrate Success

By

“On the way to a grand goal, celebrate the smallest victories as if each...

Programmatically Retrieving MLV Lineage and Refresh Times

By

Materialized lake views (MLVs) in Microsoft Fabric are an effective way to implement medallion...

SWAG Saves the Day

By

PASS Summit East is in one week. I was on the road last week...

Read the latest Blogs

Forums

BCA KCP Gandaria City Telpon/WA:08137887595

By tanehome

BCA KCP Gandaria City Telpon/WA:08137887595.Gedung Mal Gandaria City Mainstreet-Upper Ground M-U25, Jl. Sultan Iskandar...

BCA KCP Mayestik Telpon/WA:08137887595

By tanehome

BCA KCP Mayestik Telpon/WA:08137887595.Jl. Kyai Maja No.77, Gunung, Kec. Kby. Baru, Kota Jakarta Selatan,...

BCA KCP Tebet Timur Telpon/WA:08137887595

By tanehome

BCA KCP Tebet Timur Telpon/WA:08137887595.Jl. Tebet Timur Dalam Raya Blok GG No. 97, Tebet...

Visit the forum

Question of the Day

Increase Deadlock Detection

How can I alter the deadlock detection interval to 2 seconds instead of 5 seconds on my SQL Server 2025 instance?

See possible answers