| Team Fly |   | 
2. Next, display the records from temp2:
 
   
              ID DESC2
         ---------- -----
              456 ZZZZZ
              789 MMMMM
3. Use an inner join to join the two:
      SQL> select a.id, a.desc1, b.desc2
        2  from   temp1 a, temp2 b
        3  where  a.id = b.id;
              ID DESC1 DESC2
      ---------- ----- -----
             456 FGHIJ ZZZZZ
4. Create an outer join table called temp2, as in the following:
      SQL> select a.id, a.desc1, b.id, b.desc2
        2  from   temp1 a, temp2 b
        3  where  a.id = b.id(+);
              ID DESC1         ID DESC2
      ---------- ----- ---------- -----
             123 ABCDE
             456 FGHIJ        456 ZZZZZ
5. Generate outer join table temp1:
      SQL> select a.id, a.desc1, b.id, b.desc2
        2  from   temp1 a, temp2 b
        3  where  a.id(+) = b.id;
              ID DESC1         ID DESC2
      ---------- ----- ---------- -----
             456 FGHIJ        456 ZZZZZ
                              789 MMMMM
6. Now, outer join both sides, as in the following:
      SQL> select a.id, a.desc1, b.id, b.desc2
        2 from  temp1 a, temp2 b
        3 where a.id(+) = b.id(+);
      where a.id(+) = b.id(+)
                    *
      ERROR at line 3:
      ORA-01468: a predicate may reference only one outer-joined table
  | Team Fly |   |