Oracle Sql Declare Variable In Select Statement With Or Function