PL/SQL (MOSC)

MOSC Banner

derive query on related tables

edited Apr 20, 2012 2:40AM in PL/SQL (MOSC) 3 commentsAnswered
 Hi ,
I am working on a script that will take a table name and query as inputs. The script will export data subset from this table and all related tables in the dependency chain.
The script will traverse all parent and children tables recursively and  generate query on a dependent table in the hierarchy.  What is the best method to deduce a query at dependent table?

what are the trade off to choose Join Vs In?

For e.g:

ORDER_DETAILS, query1= where order_date < sysdate - 2 
ORDERS,  query2 = where ORDER_ID in (select order_id from ORDER_DETAILS  <query1>)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center