Last active
September 13, 2017 16:54
-
-
Save tompazourek/d24817cfbe8c021a070aa2bc4b3548a8 to your computer and use it in GitHub Desktop.
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
SELECT CONCAT('ABC', REPLICATE('0',6-LEN(CAST(other_id as nvarchar(max)))), CAST(other_id as nvarchar(max))) | |
FROM [experiments].[dbo].[Table_1] | |
SELECT CONCAT('ABC', FORMAT(Other_Id, '000000')) | |
FROM [experiments].[dbo].[Table_1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment