Forum Discussion
PaoloT
11 years agoLithium Alumni (Retired)
Hi peterlu
ah I see. A way to do that in an SQL-Like language would be to select a post count by board ID, having a category in the where clause and then grouping by the board ID. I don't think group by is currently available in LiQL - maybe worth pinging JeffY to see if this in in the plans (although I imagine it is a quite sizeable task to add this feature).
In the meantime, you could alway perform the aggregation in your code, having something like (where Cat1 and Cat2 are your categories)
SELECT id,board.id FROM messages WHERE category.id IN ('Cat1','Cat2');
And then paginate the result, which could be slightly more compact.
Kind Regards,
Related Content
- 3 years ago
- 2 years ago