Remove outer join simulation using UNION now that we have had outer
authorBruce Momjian
Tue, 1 Feb 2005 02:35:48 +0000 (02:35 +0000)
committerBruce Momjian
Tue, 1 Feb 2005 02:35:48 +0000 (02:35 +0000)
joins for quite a long time.

doc/FAQ
doc/src/FAQ/FAQ.html

diff --git a/doc/FAQ b/doc/FAQ
index 128d589f7c5f31f9557c24c91288db7ae8581f7e..4c03f78c24eb554b94e57b853446c33cfdb28faa 100644 (file)
--- a/doc/FAQ
+++ b/doc/FAQ
@@ -1,7 +1,7 @@
 
                 Frequently Asked Questions (FAQ) for PostgreSQL
                                        
-   Last updated: Mon Jan 31 21:31:39 EST 2005
+   Last updated: Mon Jan 31 21:35:15 EST 2005
    
    Current maintainer: Bruce Momjian ([email protected])
    
     4.16) How do I create a column that will default to the current time?
     
    Use CURRENT_TIMESTAMP:
-    CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP );
+    CREATE TABLE test (x int, modtime TIMESTAMP DEFAULT CURRENT_TIMESTAMP );
 
     4.17) How do I perform an outer join?
     
    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:
-    SELECT tab1.col1, tab2.col2
-    FROM tab1, tab2
-    WHERE tab1.col1 = tab2.col1
-    UNION ALL
-    SELECT tab1.col1, NULL
-    FROM tab1
-    WHERE tab1.col1 NOT IN (SELECT tab2.col1 FROM tab2)
-    ORDER BY col1
-
     4.18) How do I perform queries using multiple databases?
     
    There is no way to query a database other than the current one.
index d5e816926ccaf300e361bc52b0e2b631c5d7ddb1..ab201442235f9210a566da99a21364c9360c2b7c 100644 (file)
@@ -10,7 +10,7 @@
   alink="#0000ff">
     

Frequently Asked Questions (FAQ) for PostgreSQL

 
-    

Last updated: Mon Jan 31 21:31:39 EST 2005

+    

Last updated: Mon Jan 31 21:35:15 EST 2005

 
     

Current maintainer: Bruce Momjian (

@@ -1006,7 +1006,7 @@ length
 
     

Use CURRENT_TIMESTAMP:

 
-    CREATE TABLE test (x int, modtime timestamp DEFAULT CURRENT_TIMESTAMP );
+    CREATE TABLE test (x int, modtime TIMESTAMP DEFAULT CURRENT_TIMESTAMP );
 
 
     

4.17) How do I perform an outer join?

@@ -1032,23 +1032,6 @@ length
     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:
-    
-    

-
-    SELECT tab1.col1, tab2.col2
-    FROM tab1, tab2
-    WHERE tab1.col1 = tab2.col1
-    UNION ALL
-    SELECT tab1.col1, NULL
-    FROM tab1
-    WHERE tab1.col1 NOT IN (SELECT tab2.col1 FROM tab2)
-    ORDER BY col1
-
-
     

4.18) How do I perform queries using

     multiple databases?