I am trying to create a monthly report for easy review and comparison of runtimes of certain processes.
The raw data needed for that is stored in a Oracle 11g database table, with the runtime being the difference between STARTDATE
and ENDDATE
which are both formatted as DD.MM.YYYY HH24:MI:SS
.
One dateset is created for each run of a process, so there is a huge number of them stored in that table (several datasets per process per hour).
Now normally this would be pretty straight forward by just using a GROUP BY
clause, however, I couldn't get it to work in this case. Most likely due to the DATE
columns being involved with their special format.
Is there any possibility to group the data sets by the month which is stored within the STARTDATE
column? I already tried using some Oracle date functions which I found via googling, e.g. MONTH()
and EXTRACT()
, but so far I didn't get anywhere with it.
I would greatly appreciate any hints regarding this issue.
Thanks in advance and best regards, daZza