i have written an SQL query in postgresql that works fine it gets me the number of work done per employee for every hour
SELECT COUNT(work_done) AS count, EXTRACT(hour from start_time) AS hour FROM c_call WHERE start_time >= '2018-10-13 00:00:00' GROUP BY employee_id; it's perfect if an emplyee was actif ine every interval hour but when an hour has no data for an employee it is omitted . how can make it work so that the result contains a row for each interval with the value field set to zero if the employee didnt work at that hour.