Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Inner Join vs. listing tables

Inner Join vs. listing tables
Thread Tools
apostacy
Junior Member
Join Date: Dec 2003
Location: New Jersey
Status: Offline
Reply With Quote
Sep 17, 2005, 09:13 AM
 
Anyone know if there's any possible difference between listing the tables and using a where clause to attach them, or using an inner join? (See below.)


select * from order_header, order_line
where order_header.order_no = order_line.order_no
and order_header.order_no = 100001


select * from order_header
inner join order_line on order_header.order_no = order_line.order_no
where order_header.order_no = 100001
MacBook 2.4 GHz
Mac OS X 10.5.8
     
Tritium
Junior Member
Join Date: Jan 2003
Status: Offline
Reply With Quote
Sep 19, 2005, 01:54 AM
 
There is no difference between those, the default join is an inner join. Outer joins are different though.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 06:32 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,