ardhix Posted April 2, 2013 Share Posted April 2, 2013 please help i have assignment to selecting tables by joining them.. how do i use join, or inner join? is there another option selecting 3 tables by using foreign key? Here's the table this one is user table here is article category and this is content of article i was willing to choosing article_news table = article_id, category_article_id, user_type_id, user_id, judul(title), artikel, photo, tag, tanggal tcategory_article = category_article_id, category_article tuser = user_type_id, firstname, lastname thank you Quote Link to comment Share on other sites More sharing options...
Solution lilmer Posted April 2, 2013 Solution Share Posted April 2, 2013 SELECT * FROM user_table as u JOIN content_article as a ON u.user_id = a.user_id JOIN article_category as c ON a.category_article_id=c.category_article_id WHERE . . . . Quote Link to comment Share on other sites More sharing options...
ardhix Posted April 3, 2013 Author Share Posted April 3, 2013 SELECT * FROM user_table as u JOIN content_article as a ON u.user_id = a.user_id JOIN article_category as c ON a.category_article_id=c.category_article_id WHERE . . . . it works somehow, thank you Quote Link to comment Share on other sites More sharing options...
lilmer Posted April 6, 2013 Share Posted April 6, 2013 No problem Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.