Created
May 16, 2013 23:43
-
-
Save tangentstorm/5595987 to your computer and use it in GitHub Desktop.
relational division
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 a (x integer); | |
create table b (y integer); | |
insert into a values (1); | |
insert into a values (2); | |
insert into b values (1); | |
insert into b values (2); | |
insert into b values (3); | |
select * from a,b; | |
-- result: | |
-- 1|1 | |
-- 1|2 | |
-- 1|3 | |
-- 2|1 | |
-- 2|2 | |
-- 2|3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment