Re: SQL: getting data for a null value column ??
- From: "baka" <mesundara@xxxxxxxxxxx>
- Date: 3 Aug 2005 19:49:07 -0700
Thanks hrishy san (&)
you are right in one way, but, i mentioned tabB is a master table
so i have to take name from tabB only. if it not exists then,i have to
take it from transaction table i.e tabB.
o/p what i want is (without using union)
001 tabBbankname
002 secondbank
003 tabBthirdbank
004 fourthbank
005 Firstunionbank
PS: about union
SELECT a.bankcode,a.bankname
FROM
taba a,tabb b where a.bankcode=b.bbankcode(+)
union
SELECT b.bbankcode,b.bbankname
FROM taba a,tabb b where b.bbankcode(+)=a.bankcode
Thans Mr.Arun for reading my mail. but what..
Thanks so For
-baba
> hrishy@xxxxxxxxx wrote:
> > Hi
> >
> > SQL> l
> > 1 select a.bankcode,a.bankname
> > 2 from taba a ,tabb b
> > 3* where a.bankcode=b.bbankcode(+)
> > SQL> /
> >
> > BANKCODE BANKNAME
> > ---------- ---------------
> > 001 firstbank
> > 002 secondbank
> > 003 thirdbank
> > 004 fourthbank
> > 004 Firstunionbank
> >
> > regards
> > Hrishy
> > baka wrote:
> >
> >>Thank you for replying to my questions so far. and for this also
> >>First it not an home work(Just curios),
> >>and what i have given is an image .
> >>there several table are also linked , so i avoided using
> >>union
> >>any more ideas?
> >>
> >>PS:
> >>004 Firstunionbank should be read as
> >>005 Firstunionbank
> >
> >
>
> ???
> Why not just:
>
> select * from taba;
>
> Anurag
.
- Follow-Ups:
- Re: SQL: getting data for a null value column ??
- From: hrishy
- Re: SQL: getting data for a null value column ??
- From: hrishy
- Re: SQL: getting data for a null value column ??
- From: Chris ( Val )
- Re: SQL: getting data for a null value column ??
- References:
- SQL: getting data for a null value column ??
- From: baka
- Re: SQL: getting data for a null value column ??
- From: Chris ( Val )
- Re: SQL: getting data for a null value column ??
- From: baka
- Re: SQL: getting data for a null value column ??
- From: hrishy
- Re: SQL: getting data for a null value column ??
- From: Anurag Varma
- SQL: getting data for a null value column ??
- Prev by Date: Re: Does Oracle Have a Way to Store Historical Changes to Records?
- Next by Date: Re: SQL: getting data for a null value column ??
- Previous by thread: Re: SQL: getting data for a null value column ??
- Next by thread: Re: SQL: getting data for a null value column ??
- Index(es):
Relevant Pages
|