Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: query issue
curwen wrote:
>>To add to what Daniel said.. in a blunt way using nice friendly >>letters... empty your cup of preconceptions of what you think a RDBMS >>is and then fill it with some RTFM'ing.
Read The F***ing Manual
You can fill in the blanks, I'm sure. 8^)
>
>
>
>>>I've tried the the following , but doesn't work: >>> >>>select distinct numb,fk1 >>>from <table> >> >>It does work - just not the way you think. :-)
As sybrand would tell you, all our crystal balls are broken.
>
> anyway, to explain myself better, the desidered behaviour is the one
> that comes out from the following:
>
> select n_id,n_number,fk1 FROM numbers
> where n_id in
> (select max(n_id) from numbers group by n_number)
>
> I'm just worried about performances:
> my question was :'is there any way to avoid nestes queries'?
>
> ps ..and getting the same result, of course
>
> regards
> jc
Let's see, this query is DIFFERENT from the one in your original post, so it's good we didn't try to answer based on that post, right?
How about either explaining your business problem in prose OR provide a small set of sample data to demonstrate your problem? We still have no clue why you would want to write a query like that.
Just some additional thoughts:
-- Ed Prochak running http://www.faqs.org/faqs/running-faq/ netiquette http://www.psg.com/emily.html -- "Two roads diverged in a wood and I I took the one less travelled by and that has made all the difference." robert frostReceived on Mon Feb 09 2004 - 00:05:20 CST
![]() |
![]() |