Created
December 7, 2017 13:53
-
-
Save shaneis/8e92cd9243687549a8e1a0db595c5206 to your computer and use it in GitHub Desktop.
Sample tables for Itzik Joins
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
CREATE TABLE dbo.table1 ( | |
Col1 int NOT NULL | |
); | |
CREATE TABLE dbo.table2 ( | |
Col1 int NOT NULL | |
); | |
CREATE TABLE dbo.table3 ( | |
Col1 int NOT NULL | |
); | |
INSERT INTO dbo.table1 (Col1) VALUES (1), (2), (3), (4), (5), (6); | |
INSERT INTO dbo.table2 (Col1) VALUES (2), (3), (4), (6); | |
INSERT INTO dbo.table3 (Col1) VALUES (1), (3), (6); | |
SELECT * FROM dbo.table1; | |
SELECT * FROM dbo.table2; | |
SELECT * FROM dbo.table3; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment