Skip to content
Snippets Groups Projects
Commit 974fd1ec authored by keleher's avatar keleher
Browse files

auto

parent 042f8056
No related branches found
No related tags found
No related merge requests found
tst.sql 0 → 100644
DROP TABLE IF EXISTS one;
DROP TABLE IF EXISTS two;
CREATE TABLE one (a int, b int);
CREATE TABLE two (b int, c int);
INSERT INTO one VALUES (1,2);
INSERT INTO one VALUES (2,3);
INSERT INTO two VALUES (1,2);
INSERT INTO two VALUES (2,1);
SELECT * FROM one;
SELECT * FROM two;
select ',' as query;
SELECT * FROM one,two;
select ' NATURAL JOIN ' as query;
SELECT * FROM one NATURAL JOIN two;
select ' INNER JOIN ' as query;
SELECT * FROM one INNER JOIN two;
select ' INNER JOIN on one.b=two.b;' as query;
SELECT * FROM one INNER JOIN two on one.b=two.b;
select ' CROSS JOIN on one.b=two.b;' as query;
SELECT * FROM one CROSS JOIN two on one.b=two.b;
select ' CROSS JOIN ' as query;
SELECT * FROM one CROSS JOIN two;
select ' LEFT OUTER JOIN on one.b=two.b;' as query;
SELECT * FROM one LEFT OUTER JOIN two on one.b=two.b;
select ' FULL OUTER JOIN on one.b=two.b;' as query;
SELECT * FROM one FULL OUTER JOIN two on one.b=two.b;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment