Created
May 13, 2011 08:01
-
-
Save FilipDeVos/970174 to your computer and use it in GitHub Desktop.
Create Collation safe TempTables
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
| SELECT cast(null as varchar(50)) as name, cast(null as varchar(400)) as information | |
| INTO #RockStarInfo2 | |
| WHERE 1=2 | |
| INSERT INTO #RockStarInfo2 VALUES ('Mick Jagger', 'Alive and kicking') | |
| INSERT INTO #RockStarInfo2 VALUES ('Jim Morrison', 'Passed away') | |
| SELECT * | |
| FROM Rockstars s | |
| LEFT JOIN #RockStarInfo2 i | |
| ON s.name = i.name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment