Constructing the SQL Statement in SQL Developer - Orapoint