Sql Calling A Function That Returns A Refcursor