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?
In the table below:
table1
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.
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
Received on Mon Nov 13 2006 - 08:27:59 CST