title: selecting first result from output of a subquery
body: <p>i want to select first and last outcome from a subquery in oracle.
  i cant use "rownum" since i am using "order by" which completely changes the sequence of "rownum".<br>
  pls suggest some solutions.
  thanx fr help.</p>