I am creating a multi-tenant application where for particular event when fired by a user, I save the event start time in the database (SQLite). To determine the peak request time, I am trying to find the mode of the timestamps which are saved. Not to be confused with the average, which is going to give me an average of all timestamps - I am looking for a way to find a range like result which reflects the peak. Eg - between 2PM - 4PM, most of the events are fired. Timestamps are stored as string values in YYYY-MM-DDTHH:NN:SS format.
I am having problems writing down a query which helps solves this.