Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Jakob Huber
postgres-lambda-diff
Commits
505cdd58
Commit
505cdd58
authored
24 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Update FAQ.
parent
5f93794f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/FAQ
+11
-6
11 additions, 6 deletions
doc/FAQ
doc/src/FAQ/FAQ.html
+16
-11
16 additions, 11 deletions
doc/src/FAQ/FAQ.html
with
27 additions
and
17 deletions
doc/FAQ
+
11
−
6
View file @
505cdd58
...
...
@@ -948,15 +948,20 @@ SELECT *
4.24) How do I do an outer join?
PostgreSQL 7.1 and later supports outer joins. Here is an example:
PostgreSQL 7.1 and later supports outer joins. Here are two examples:
SELECT *
FROM t1 LEFT OUTER JOIN t2 ON (t1.col = t2.col);
or
SELECT *
FROM t1 LEFT OUTER JOIN t2 USING (col);
This will join t1.col to t2.col, and return any unjoined rows in t1
with NULL values for t2 columns. A RIGHT join would return unjoined
rows of table t2. A FULL join would return unjoined rows from t1 and
t2. The word OUTER is optional and is assumed in LEFT, RIGHT, and FULL
joins. Ordinary joins are called INNER joins.
These identical queries join t1.col to t2.col, and return any unjoined
rows in t1. A RIGHT join would return unjoined rows of table t2. A
FULL join would return unjoined rows from t1 and t2. The word OUTER is
optional and is assumed in LEFT, RIGHT, and FULL joins. Ordinary joins
are called INNER joins.
In previous releases, outer joins can be simulated using UNION and NOT
IN. For example, when joining tab1 and tab2, the following query does
an outer join of the two tables:
...
...
This diff is collapsed.
Click to expand it.
doc/src/FAQ/FAQ.html
+
16
−
11
View file @
505cdd58
...
...
@@ -1224,21 +1224,26 @@ Lobby your company to join W3C, see http://www.w3.org/Consortium
<H4><A
name=
"4.24"
>
4.24
</A>
) How do I do an
<I>
outer
</I>
join?
<BR>
</H4>
<P>
PostgreSQL 7.1 and later supports outer joins. Here is an
example:
</P>
<P>
PostgreSQL 7.1 and later supports outer joins. Here are two
examples:
</P>
<PRE>
SELECT *
FROM t1 LEFT OUTER JOIN t2 ON (t1.col = t2.col);
</PRE>
or
<PRE>
SELECT *
FROM t1 LEFT OUTER JOIN t2 USING (col);
</PRE>
Th
is will
join t1.col to t2.col, and return any
unjoined rows in t1
with
<SMALL>
NULL
</SMALL>
values for t2 columns. A
<SMALL>
RIGHT
</SMALL>
join would return
unjoined rows of table t2. A
<SMALL>
FULL
</SMALL>
join would return unjoined rows from t1 and t2.
The word
<SMALL>
OUTER
</SMALL>
is
optional and is assumed in
<SMALL>
LEFT
</SMALL>
,
<SMALL>
RIGHT
</SMALL>
, and
<SMALL>
FULL
</SMALL>
joins. Ordinary joins
are called
<SMALL>
INNER
</SMALL>
joins.
<
BR
>
<BR>
In previous releases, outer joins can be simulated using
Th
ese identical queries
join t1.col to t2.col, and return any
unjoined rows in t1. A
<SMALL>
RIGHT
</SMALL>
join would return
unjoined rows of table t2. A
<SMALL>
FULL
</SMALL>
join would return
unjoined rows from t1 and t2. The word
<SMALL>
OUTER
</SMALL>
is
optional and is assumed in
<SMALL>
LEFT
</SMALL>
,
<SMALL>
RIGHT
</SMALL>
, and
<SMALL>
FULL
</SMALL>
joins. Ordinary joins
are called
<SMALL>
INNER
</SMALL>
joins.
<
/P
>
<P>
In previous releases, outer joins can be simulated using
<SMALL>
UNION
</SMALL>
and
<SMALL>
NOT IN
</SMALL>
. For example, when
joining
<I>
tab1
</I>
and
<I>
tab2,
</I>
the following query does an
<I>
outer
</I>
join of the two tables:
<BR>
...
...
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