I have 2 tables
tabcats - Cat_Id, Cat_Name
tabnews - News_Id, News_Name, Cat_Id
So I'm trying to make a select on database and return all results but using
Group by Cat_Id
so my results was supposed to be
let's say I have 3 Categories and 5 News
Results
- News_Name (1)
- News_Name (2)
Cat_Name 1
- News_Name (3)
- News_Name (4)
Cat_Name 2
- News_Name (5)
Cat_Name 3
I read something about using LEFT OUTER JOIN
but I don't get this clearly.