Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
p1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Keleher
p1
Commits
974fd1ec
Commit
974fd1ec
authored
7 years ago
by
keleher
Browse files
Options
Downloads
Patches
Plain Diff
auto
parent
042f8056
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tst.sql
+31
-0
31 additions, 0 deletions
tst.sql
with
31 additions
and
0 deletions
tst.sql
0 → 100644
+
31
−
0
View file @
974fd1ec
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
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment