We help IT Professionals succeed at work.
Get Started

Parenthetical Hierarchy in the SELECT Statement

Last Modified: 2012-05-06
Hi, I'm using Access 2003. I'm not an SQL Guru, but rather I'm trying to learn as much as I can so that I can write good sound SQL statements. My question is regarding the parenthesis in the SELECT statement and how they are processed.

In a mathematical computation, there is a hierarchy as to which part of the equation is resolved first and which follows second and so on. -- Does that same hierarchy apply to the parenthesis; or better put, the statements within those parenthesis inside an SQL statement.

The parenthesis I'm referring to are like the ones below

FROM ((Table1
LEFT JOIN Table2 ON ...)
LEFT JOIN Table3 ON ...)
LEFT JOIN Table4 ON...

Does Table1 get evaluated first or which one if any gets evaluated first and why?

Watch Question
Top Expert 2010
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE