Mysql – Query to calculate number of active jobs
There is a jobs table, jobID state timestamp 1 inProgress 2023-11-02 10:39:37 1 some random log 2023-11-02 10:40:37 2 inProgress 2023-11-02 10:43:37 1 inProgress 2023-11-02 10:44:37 1 inProgress 2023-11-02 10:45:37 1 inProgress 2023-11-02 10:50:00 1 end 2023-11-02 11:40:37 1 inProgress…