Problem solve Get help with specific problems with your technologies, process and projects.

Difference between driving table and driver table in Oracle

I need to know the difference between the driving table and driver table in Oracle.

I need to know the difference between the driving table and driver table in Oracle. Also while writing the query which table should come fist and which one should come second in the from clause? Please explain with example.

When you perform a join of two tables, one table is the "driving table." The driving table is the one that Oracle...

processes first in the join. Oracle reads a record in the driving table and then tries to find matching records (determined by the join condition) in the other table.

In older versions of Oracle (pre-9i), the driving table was the first table in the FROM clause. You could also specify the driving table with the use of optimizer hints. In Oracle 9i and 10g, the Cost-Based Optimizer chooses the driving table. The order in the FROM clause is not necessarily used to determine the driving table with the newer CBO.

This was last published in July 2007

Dig Deeper on Oracle and SQL

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.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.