Answers for "how to combine rows in sql server procedure"

SQL
0

how to combine rows in sql server procedure

select id, a.name + coalesce('/'+b.name, '') + coalesce('/'+c.name, '')
from myTable a
left outer join myTable b on a.id=b.id and b.seqno = 2
left outer join myTable c on a.id=c.id and c.seqno = 3
where a.seqno = 1;
Posted by: Guest on March-02-2021

Code answers related to "how to combine rows in sql server procedure"

Code answers related to "SQL"

Browse Popular Code Answers by Language