More Efficient Way To Merge Unique Values From Dynamically Selected Tables using Oracle PLSQL
问题 Given a declared PLSQL Procedure PROCEDURE GET_DISTINCT_TIMES(dtypes IN VARCHAR2, start IN NUMBER, end IN NUMBER distinct_times_cursor OUT SYS_REFCURSOR) Where: 'Dtypes' is a comma delimited string, with each value corresponding to a general type of data I want to retrieve. One data type may correspond to one or many different tables where distinct times need to be retrieved 'Start' & 'End' are the two times I am querying between I have written implementations that dynamically create the SQL