Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How can I select an element that doesn't exists in a table?
This is what I was looking for.
Thanks for your help.
Regards,
Jose Luis.
Charles Hooper wrote:
> jose_luis_fdez_diaz wrote:
> > Laurenz Albe wrote:
> > > jose_luis_fdez_diaz <gfiuni2_at_gmail.com> wrote:
> > > > Idem.
> > >
> > > 'Idem' is Latin for 'the same'.
> > >
> > > What do you want to tell us?
> > > Or, more to the point, what is your question?
> > >
> > > If it is the question in the subject, please clarify what you want.
> > >
> > > Are you looking for 'SELECT 42 FROM dual' ?
> > >
> > > Yours,
> > > Laurenz Albe
> > In the table below:
> >
> > table1
> > ---------
> > 1
> > 2
> > 4
> > 5
> >
> >
> > select 3 from table1 where not exists (select * from table1 where
> > row1!=3)
> >
> > returns:
> >
> > 3
> > 3
> > 3
> > 3
> >
> > I only want "one" 3.
> >
> > How can I get it?
> >
> > PD: Sorry for my little explanation in the last post.
> >
> >
> > Regards,
> > Jose Luis.
> >
>
>
>
>
>
>
> NOT_IN
> ==========
> 3
>
>