Joining strings in SQL Server: +, CONCAT, CONCAT_WS and STRING_AGG

preview_player
Показать описание
In this video, we will be looking at how to combine text in SQL Server.
My SQL Server Udemy courses are:
----
My Excel for PC courses are:
----
Joining strings is very easy in SQL - you can just use a + sign.
However, there are advantages to using CONCAT, if you are joining a string to a NULL.
Need a separator between string items? Then is when you can use CONCAT_WS.
However, what if you want to join together strings in multiple rows into one big string? You can use STRING_AGG to do this, and include a separator as well if you wish.
Рекомендации по теме
Комментарии
Автор

appreciate for another clear, understandable, and simply great movie :)

shadowitself
Автор

Instructions as I really appreciate it. To the point, with plenty of examples. Very smooth.

stevevanniman
Автор

Thank you for that information bro, I really appreciated

joseusechec.
Автор

Thanks for your valuable video, can you advise how can i use this command please:

tameral-zoubi
Автор

Actually I have created the same code. But it is showing LOB error?

krishnasowmya