Created
May 11, 2010 18:58
-
-
Save DoubleBrotherProgrammer/397693 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
USE AdventureWorks; | |
-- create a comma delimited list of CountryRegionCode per CurrencyCode | |
SELECT CurrencyCode, | |
MAX( COALESCE( CountryRegionCode + ', ', '') + CountryRegionCode ) AS 'RegionCodes' | |
FROM Sales.CountryRegionCurrency | |
GROUP BY CurrencyCode; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment