Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Grouping data

$
0
0

How do I concat this

Project Name                           Code

G450 FSECU Reliability                 3
G450 FSECU Reliability                 4
Air Data Module (ADV-2012-070) COS 3
Air Data Module (ADV-2012-070) COS 5
Air Data Module (ADV-2012-070) COS 4
Elevator Control System Check [COS] 3

To look like this in SQL 2008 r2

Project Name                          Codes

G450 FSECU Reliability                 3,4
Air Data Module (ADV-2012-070) COS    3,4,5
Elevator Control System Check [COS] 3

Also sorting codes
Please help


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>