Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9284533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T18:55:43+00:00 2026-06-18T18:55:43+00:00

Would it be faster to join a given select this way select … join

  • 0

Would it be faster to join a given select this way

select ...
join table1 
on condition1
join table2
on condition2

then this

select ...
join table1
join table2
on condition1
and condition2

because you keep the temp-tables smaller?

(Let us assume: condition1 has nothing to do with table2.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T18:55:44+00:00Added an answer on June 18, 2026 at 6:55 pm

    In theory, filter conditions should be stated “as soon as possible”, that is, option 1 may perform better.

    In practice, most of the time, the SQL parser will optimize either version to the same execution plan. That is, unless your conditions are really twisted, or table1 or table2 are actually subqueries.

    If you have actual queries to play with, check the execution plan: EXPLAIN [your query here]

    (sorry, it is hard to be more specific if you don’t feed us with more… specifics)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Which query would run faster? SELECT * FROM topic_info LEFT JOIN topic_data ON topic_info.id
Which would be faster? Method A: UPDATE table1 SET table1.column1 = table2.column1 FROM table2
I am wondering which way would end up being faster, selecting elements by: $('element[href=#my_link]');
Are JOIN queries faster than several queries? (You run your main query, and then
i asked this question around a single join or multiple (select n + 1)
Database Table1 Id Table2Id ... Table2 Id StartTime Duration //in hours Query select *
For example,We have a DWORD = $12345678 Which of the instructions would be faster
I would like to know if ParseExact is faster than Parse. I think that
I would like to know what performs faster and its preferable a condition in
What is faster: Function pointers or switch? The switch statement would have around 30

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.