title: Check Values in sys_refcursor
body: <p>I have the following code in a function </p>
  
  <pre><code>        CREATE OR REPLACE FUNCTION my_func (
          v_dt events.raised_date%TYPE
          )
          RETURN SYS_REFCURSOR
      IS    
              p_events    SYS_REFCURSOR;
  
          OPEN p_events FOR
                  SELECT  event_id
                    FROM  events
                   WHERE  raised_date = v_dt;
  RETURN p_events;
  END;
  </code></pre>
  
  <p>I would like to check whether  100 exists in <code>p_events</code> cursor or not. How can I do this inside my function.</p>
  
  <p>Any help is highly appreciable.</p>