Jump to content

Using Joins...


AV1611

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.