From the point of view of receiving data, you can use "group by" and " truncate 'to crop the data with an interval of 1 minute, for example:
SELECT user_name, truncate(event_time, 'YYYYMMDD HH24MI'), count(*)
FROM job_table
WHERE event_time > TO_DATE( some start date time)
AND user_name IN ( list of users to query )
GROUP BY user_name, truncate(event_time, 'YYYYMMDD HH24MI')
This will give you the results as shown below (assuming 20 liters for alice between 8.00 and 8.01 and 40 lines between 8.01 and 8.02):
Alice 2008-12-16 08:00 20
Alice 2008-12-16 08:01 40
source
share