Selecting the Quarter results in custom way. The user usman wants to customize the quarterly reporting in Discourse to show results from May 1st to July 30th instead of the default May 30th to August 30th. Stephen suggests using the Data Explorer plugin to create tailored views. usman tries using the plugin but needs help with a SQL query to get results from a specific month. simonk assists by providing a modified query that returns topics created on a specific day, and usman confirms that this solution works.
We are using Discourse for our community platform and we have a bit different Quarterly system required for our team reporting which is sent out to the Staff members.
Your query would only return topics if they were created at exactly midnight on that date. If you’re looking for topics created any time on that day, you would use something like this:
SELECT * FROM topics
WHERE created_at >= '2022-05-01'
AND created_at < '2022-05-02'