Q

Extracting data from 30 tables using a join condition

I am extracting the data interface from Oracle SQL tables into flat files. I started writing code in one select statement to select multiple fields from multiple tables with a join condition. I am extracting the data from 30 tables, so I made 29 join conditions in the 'where' clause. When I execute the entire SQL code, I am getting one cartesian in the output. What do I do to avoid the cartesian, because I am anable to check the condition in the entire bulk of the code.
Can you send me the query so that I can tell you which condition you are missing that is making your query a cartesian product? Do you need to use all 30 tables? Can you tell me what the format is for the flat file and how they relate to the columns from the 30 tables? It is very difficult to answer the question without more specifics.
This was first published in October 2004

Dig deeper on Using Oracle PL-SQL

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close