MySQL Forums
Forum List  »  Newbie

Re: Join tables query
Posted by: angelo rigo
Date: July 06, 2005 01:17PM

this will bring just all the others news who have the same sports related to the one new i am researching ?

eg:

table news
id_news title
1 one new
2 other new

table news_sports
id_news id_sports
1 12
1 15
2 15
2 18
3 45

So if i research related news to the news with the id 1 i would get just the third row wich have the id_sport = 15 because it is the one other new who have the same sport that my researched news 1 have too.

Options: ReplyQuote


Subject
Written By
Posted
July 06, 2005 11:23AM
July 06, 2005 12:40PM
Re: Join tables query
July 06, 2005 01:17PM
July 06, 2005 01:28PM
July 06, 2005 01:50PM
July 06, 2005 02:00PM
July 06, 2005 02:08PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.