Jump to content

Recommended Posts

That won't do it because if A exists and B doesn't you won't get A and vice versa...
[!--quoteo(post=354504:date=Mar 13 2006, 09:36 AM:name=obsidian)--][div class=\'quotetop\']QUOTE(obsidian @ Mar 13 2006, 09:36 AM) [snapback]354504[/snapback][/div][div class=\'quotemain\'][!--quotec--]
you can do a simple query and join the records in the WHERE clause:
[code]
SELECT * FROM table1 a, table2 b WHERE a.field1 = b.field1;
[/code]
[/quote]
Link to comment
https://forums.phpfreaks.com/topic/4831-using-joins/#findComment-17069
Share on other sites

[!--quoteo(post=354586:date=Mar 13 2006, 12:53 PM:name=AV1611)--][div class=\'quotetop\']QUOTE(AV1611 @ Mar 13 2006, 12:53 PM) [snapback]354586[/snapback][/div][div class=\'quotemain\'][!--quotec--]
That won't do it because if A exists and B doesn't you won't get A and vice versa...
[/quote]

ah, i see what you're saying. did you try OUTER JOIN?
Link to comment
https://forums.phpfreaks.com/topic/4831-using-joins/#findComment-17076
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.