We help IT Professionals succeed at work.
Get Started

Parenthetical Hierarchy in the SELECT Statement

564 Views
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

SELECT *
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?

Thanks,
Fulano
Comment
Watch Question
CERTIFIED EXPERT
Top Expert 2010
Commented:
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