Created
March 15, 2014 15:24
-
-
Save dalmat36/9568965 to your computer and use it in GitHub Desktop.
SQL Server 2012 Concat function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*CONCAT function (2012) | |
Handles replacing nulls*/ | |
Use TSQL2012 | |
SELECT custid, country, region, city, | |
CONCAT(country, N',' + region, N',' + city) | |
AS location | |
FROM Sales.Customers; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment