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

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL: getting data for a null value column ??

Re: SQL: getting data for a null value column ??

From: <hrishy_at_gmail.com>
Date: 4 Aug 2005 02:09:50 -0700
Message-ID: <1123146590.531432.159010@g43g2000cwa.googlegroups.com>


Hi

if you are on 9i then you cna try this.Or upgrade to 9i :-)

SQL> select a.BANKCODE,nvl(b.bbankname,a.bankname) from tabA a full outer join tabB b
on
a.BANKCODE=b.BBANKCODE;

BANKCODE NVL(B.BBANKNAME
---------- ---------------
003 thirdbank
001 firstbank
004 Firstunionbank
004 fourthbank
002 secondbank

regards
Hrishy Received on Thu Aug 04 2005 - 04:09:50 CDT

Original text of this message

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