I rarely create complex sqls and ain't done a join for years.
I can get two tables to join, but not 3.
+rep to any help![]()

I rarely create complex sqls and ain't done a join for years.
I can get two tables to join, but not 3.
+rep to any help![]()
So far I have:
But that ain't workingCode:SELECT comments.id FROM comments c INNER JOIN group_comments g ON c.id = g.id JOIN photo_comments p ON g.id = p.id
Try this
Code:SELECT * FROM ( comments LEFT JOIN group_comments ON comments.id = group_comments.id ) LEFT JOIN photo_comments ON group_comments.id = photo_comments.id
Want to hide these adverts? Register an account for free!