i have 3 tables
now i want to get the article based on the joins of all the three tables, but the problem is if i do that, i would get the repeated article title, as same article could be in more than one category, so no use of group by too. i need the crossarticle_category join because the category name exists in that table. and even if i skip that table, still crossarticle_articletocategory has the mapping for category and article. so still i would get repeated article title, can anyone suggest me some query so that i do not get repeated article titles.
****************************UPDATED QUESTION*************************
http://www.prosoundnetwork.com/uploadedImages/ProAudioReview/Forum/PAR_Forum/Sample2/sqlquery.png
you can right click and open in new window, to see the proper view, in the resultset you can see the titles are repeated.
Something like this will work:
This will give you one row per article with a comma list of categories.
It will look like this (I tested so it is correct):
I only have 3 answers because you only gave example data for 3 results.
As a side note: this is much faster than a custom aggregate.
If what the categories are does not matter than a select like this will give you all the titles: