Re: query issue
From: curwen <josephcurwen_at_despammed.com>
Date: 29 Jan 2004 01:35:03 -0800
Message-ID: <cc68edc4.0401290135.42671458_at_posting.google.com>
Date: 29 Jan 2004 01:35:03 -0800
Message-ID: <cc68edc4.0401290135.42671458_at_posting.google.com>
> JC, there is no guarantee that the order that the rows display in is
> the same as the insert order since Oracle is going to look for and
> insert into blocks with free space in them. Guido, pointed you at the
> solution: you have to use the max progressive id for a numb fk1 value
> combination to find the last inserted value pair.
>
> HTH -- Mark D Powell --
ok, do you mean something like this:
select * from numbers where n_id in
in your opinion is there any way to avoid the nested query?
(select max(n_id) from numbers group by n_number);