Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: same record multiple tables

Re: same record multiple tables

From: Reinhard Wahl <Reinhard_nospam.Wahl_at_gmx.de>
Date: Wed, 5 Nov 2003 10:32:27 +0100
Message-ID: <boag2m$1c2lgb$1@ID-119204.news.uni-berlin.de>


Hi Clive,

you should use table aliasses (Is this the right spelling?)!

If a the same column name exists in different tables that you join, then there must be a reference, what column you mean. There are two possibilities:
1) Full-quoting:

    select table_a.id

           , table_b.name
    from table_a

           , table_b
    where table_a.id = table_b.id;
2) Using Alias:

   select a.id

, b.name

    from table_a a

, table_b b

    where a.id = b.id;

HTH

-- 
Reinhard
--------------------------------------------------------------
For direct reply please remove _nospam from address
Received on Wed Nov 05 2003 - 03:32:27 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US