convert MSSQL Query to Oracle Query

Original text of this message