» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 11-27-2006, 04:34 AM
sparrow sparrow is offline
Junior Member
 
Join Date: Nov 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sparrow is on a distinguished road
Default Join order..........

hi guys,
Would the ordered of the joins make a difference on large tables i.e.
SELECT T1.*, T2.*, T3.* FROM T1
LEFT JOIN T2 ON T1.id = T2.id
LEFT JOIN T3 ON T1.id = T3.id
WHERE ......

be any different from
SELECT T1.*, T2.*, T3.* FROM T1
LEFT JOIN T3 ON T1.id = T3.id
LEFT JOIN T2 ON T1.id = T2.id
WHERE ......

and would the following make a difference as welljoin order

SELECT T1.*, T2.*, T3.* FROM T1
LEFT JOIN T2 ON T1.id = T2.id
LEFT JOIN T3 ON T2.id = T3.id
WHERE .....

Thanks in advance -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 11-27-2006, 04:35 AM
evy evy is offline
Senior Member
 
Join Date: Oct 2006
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 16
evy is on a distinguished road
Default

Ofcourse, it makes a difference depending on the relative sizes of the tables without indexes or on the number of matching rows in each table with indexes. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
order of the join issue? Tamgo MySQL Forums 1 12-19-2006 04:26 AM
ORDER BY a column? kinsley ASP forums and Tips 1 08-24-2006 03:28 PM
Welcome to order carisoprodol on OutSourcingPlans... osp Introductions 0 08-13-2006 11:27 PM
"Fuzzy" search on keys with relevance parrod MySQL Forums 1 08-09-2006 11:01 AM
upgraded 3.23 to 5.0.16 and inner join query gives an error???? Kendrick MySQL Forums 0 08-01-2006 01:18 PM


All times are GMT. The time now is 04:37 AM.