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

Merge multiple rows of same ID into Single row

$
0
0

Hi All,

I need the requirements of merging multiple rows of same ID as single row.

My Table Data:

ID     Language1 Language2 Language3 Language4
1001 NULL         JAPANESE  NULL          NULL
1001 SPANISH   NULL          NULL          NULL
1001 NULL        NULL           NULL         ENGLISH
1001 NULL        NULL           RUSSIAN    NULL

Required Output Should be,

ID     Language1 Language2 Language3 Language4
1001 SPANISH    JAPANESE  RUSSIAN   ENGLISH

Please help me to achieve this output.
Tried grouping but its not working also producing the same result.

Thanks.


Live freee....Joy forever................ :)


Viewing all articles
Browse latest Browse all 12890

Trending Articles



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