Hi All,

Could you please suggest a better way of doing this?

SELECT action_flag
      FROM participants
      WHERE rpt_num = 311118
      AND participant_order = (SELECT MAX(p_order)
                                FROM participants
                                WHERE role_ind BETWEEN 1 AND 20
                                AND rpt_num = 311118);

Thanks,
~G

-- 
You received this message because you are subscribed to the Google
Groups "Oracle PL/SQL" group.
To post to this group, send email to Oracle-PLSQL@googlegroups.com
To unsubscribe from this group, send email to
oracle-plsql-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/Oracle-PLSQL?hl=en

Reply via email to