Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Possible Use of a Cursor
So now I have a solution for finding the first step of all the
instructions I want. I used the following query:
select
distinct(papp.INSTRUCTION_NR),papp.MACHINE_PROC,pa pp.POSITIONS_NR
from w100.papp,
(select min (papp.POSITIONS_NR)
from w100.papp)
where papp.MACHINE_PROC in (3530,3430,3500)
Now I'm interested in finding out the second step in an INSTRUCTION can I do something like MIN + 1 to get the 2nd step and MIN + 2 to get the 3rd step and so on... Is this possible? Received on Wed Feb 23 2005 - 04:57:29 CST