I have a table named area with the structure:
Id, Nome, Status
I have another table called news with the structure:
Id,Título,Descricao,Data,IdArea,Status
I would like to return all newsgroups grouped by area code, where the result would be grouped by Area ID, and would list N news.
Target format:
[Id Área]
[idNoticia],[título],[descricao]
[idNoticia],[título],[descricao]
[idNoticia],[título],[descricao]
[...]
[...]