Skip to content
Advertisement

Can we concat as well as replace string values in SQL Server (SSMS)?

NAMES_TABLE

I executed below query, but I got result as null values.

Instead I want my output to be:

Advertisement

Answer

The more recent versions of SQL Server support concat_ws():

In older versions, you can use:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement