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: another mental block - Help still wanted Pleeeeease!!!

Re: another mental block - Help still wanted Pleeeeease!!!

From: Charlie Edwards <charlie3101_at_hotmail.com>
Date: 6 Nov 2003 01:18:26 -0800
Message-ID: <217ac5a8.0311060118.6826764@posting.google.com>


> >
> > But what I need is
> >
> >
> > N_ID V_ V_T V_VAL
> > --------- -- --- ---------
> > 1111 AV TLL 150
> > 2222 AV TLP 100
> > 3333 AV TQD 100
> > 4444 AV 100
> > 5555 AJ RDL 120
> > 6666 AJ RPX 200
> > 7777 AJ RPN 125
> >
> > Any help/suggestions gratefully received (I'm getting desperate)
> >
> > CE
>
> Try the following:
>
> select n.n_id,
> n.v_cat,
> n.v_type,
> v.v_val
> from tclnvv n,
> tclval v
> where n.v_cat = v.v_cat
> and n.v_type = v.v_type
> union all
> select n.n_id,
> n.v_cat,
> n.v_type,
> v.v_val
> from tclnvv n,
> tclval v
> where n.v_cat = v.v_cat(+)
> and v.v_type is null
> order by 1
> /

Thanks, but unfortunately that gets me ...

     N_ID V_ V_T V_VAL
--------- -- --- ---------

     1111 AV TLL       150
     1111 AV TLL       100 <- Don't want this
     2222 AV TLP       100
     3333 AV TQD       100
     4444 AV           100
     5555 AJ RDL       120 
     5555 AJ RDL       200 <- Don't want this
     6666 AJ RPX       200
     7777 AJ RPN       125
     7777 AJ RPN       200 <- Don't want this

10 rows selected. Received on Thu Nov 06 2003 - 03:18:26 CST

Original text of this message

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