Forum Discussion
SuzieH
3 years agoKhoros Alumni (Retired)
I'm wondering if you could do something like this?
SELECT count(*) FROM messages where depth=0 AND conversation.solved=false AND AND board.id = 'myCoolBoard' conversation.last_post_time > date_rang_start AND conversation.last_post_time < date_range_end
This should give you the count of topics from unsolved threads by board and last topic post time
Both my local and QA environment is down at the moment, so I'm not able to test this at this time unfortunately.
Alternatively to SELECT count(*), I think you could do SELECT id and then use the result count as your topic count. If you go that route, you should include a SORT like ORDER BY conversation.last_post_time DESC.
Related Content
- 7 months ago
- 3 months ago