Transact SQL to PL/SQL question

Original text of this message