Hello Guys,
I'm having issues writing a query for this feature, i'm sure its not complicated but I could use a little assistance.
Basicly i have a list of Articles, these are all sorted in my table called 'tblArticles' ... each article belongs to a catagory, the catagory details are stored in another table called 'tblArticlesCatagories' ... in the Articles table there is a field called 'Article_catagory' which refers to the Primary Key of the 'tblArticlesCatagories' table.
Now what I want to do is display a list of my catagories along with a description for each one, and next to the catagory name have a record count of articles that belong to that Catagory, so it would appear like so.
Catagory 1 (5 Articles)
-----------------------
This Catagory contains lots of informaiton on blah blah blah...
Catagory 2 (24 Articles)
-----------------------
This Catagory contains lots of informaiton on blah blah blah...
You see what i'm trying to achieve? I've played around with a few different JOINS but keep getting odd results, for instants if catagory 1 contains 3 articles then it will display the title and description for catagory 1 three times!
Any help you can offer would be greatly appreciated.
Rob
I'm having issues writing a query for this feature, i'm sure its not complicated but I could use a little assistance.
Basicly i have a list of Articles, these are all sorted in my table called 'tblArticles' ... each article belongs to a catagory, the catagory details are stored in another table called 'tblArticlesCatagories' ... in the Articles table there is a field called 'Article_catagory' which refers to the Primary Key of the 'tblArticlesCatagories' table.
Now what I want to do is display a list of my catagories along with a description for each one, and next to the catagory name have a record count of articles that belong to that Catagory, so it would appear like so.
Catagory 1 (5 Articles)
-----------------------
This Catagory contains lots of informaiton on blah blah blah...
Catagory 2 (24 Articles)
-----------------------
This Catagory contains lots of informaiton on blah blah blah...
You see what i'm trying to achieve? I've played around with a few different JOINS but keep getting odd results, for instants if catagory 1 contains 3 articles then it will display the title and description for catagory 1 three times!
Any help you can offer would be greatly appreciated.
Rob