My tables are as follows
workers:
id integer
...
days:
id INTEGER
event_date DATE
worker_id INTEGER
and
hours:
id INTEGER
hr_start VARCHAR2(8)
hr_stop VARCHAR2(8)
day_id INTEGER
I need a function which will calculate for every user in database, sum of hours in current month. Fields hr_start and hr_stop contains time in format hh:mi:ss. I need this for oracle database.