CR 2008, Oracle
Dear specialists,
Please give me ideas how to accomplish the following:
The report has to be grouped by INC_ID and has to display for department 99 - length of time and person working with incidents:
INC_ID DATE_RECEIVED RESPONSE_TIME TOTAL_TIME PERSON
898
04/06/2012 14:29 218 05/06/2012 10:08:26 AM minus 04/06/2012 2:29:23 PM HARDRIT
05/06/2012 14:08 2400 12/06/2012 2:08:52 PM minus 05/06/2012 2:08:46 PM HARDRIT
904 04/06/2012 14:31 212 05/06/2012 10:03:19 AM minus ITCHARDBP
Here is the data from the table:
INC_ID ACT_ID TYPE_ID SERV_DEPT ASS_DEPT DATE_ACT RESP_TIME PERS_ID
904 3849728 1 1 99 06/04/2012 14:31:57 212 ELNEMRN
904 3851440 1 99 99 06/05/2012 10:03:13 ARDBP
904 3851444 1 99 1 06/05/2012 10:03:19 93 ITCHARDBP
904 3852219 1 1 1 06/05/2012 11:36:52 JAKWND
904 3852559 100 1 0 06/05/2012 12:49:51 DOKKBIAM
904 3855304 136 1 0 06/06/2012 11:46:40 NUALLJ
904 3855306 5 1 0 06/06/2012 11:46:47 TTALLJ
898 3849710 1 1 99 06/04/2012 14:29:23 218 URGEMRN
898 3851494 1 99 99 06/05/2012 10:07:55 HARDRIT
898 3851497 101 99 0 06/05/2012 10:08:13 HARDRIT
898 3851499 1 99 57 06/05/2012 10:08:26 230 HARDRIT
898 3852949 42 57 0 06/05/2012 13:58:46 MEYJEMRN
898 3853011 1 57 99 06/05/2012 14:08:46 2,400 MEYJEMRN
898 3866405 101 99 0 06/12/2012 14:08:46 HARDRIT
898 3866408 4 99 1 06/12/2012 14:08:52 HARDRIT
898 3866409 1 99 1 06/12/2012 14:08:52 HARDRIT
898 3878538 5 1 0 06/19/2012 08:23:06 ENGERM
The incidents can be assigned to department 99, then resolved and reassigned to another dept as in example of incident 904. Or they can be reassigned from other departments twice or more as an incident 898.
The challenge for me is dealing with incidents such as # 898. I was trying to create variables for date_received_first and date_received_next (dates in black, bold), date_reassigned_first and date_reassigned_next (dates in purple), person_first and person_next (in purple color). But the variables show only the latest values in group footer. Also, it is difficult to differentiate dates reassigned first time and next times.
Thank you in advance for any ideas!!
Dear specialists,
Please give me ideas how to accomplish the following:
The report has to be grouped by INC_ID and has to display for department 99 - length of time and person working with incidents:
INC_ID DATE_RECEIVED RESPONSE_TIME TOTAL_TIME PERSON
898
04/06/2012 14:29 218 05/06/2012 10:08:26 AM minus 04/06/2012 2:29:23 PM HARDRIT
05/06/2012 14:08 2400 12/06/2012 2:08:52 PM minus 05/06/2012 2:08:46 PM HARDRIT
904 04/06/2012 14:31 212 05/06/2012 10:03:19 AM minus ITCHARDBP
Here is the data from the table:
INC_ID ACT_ID TYPE_ID SERV_DEPT ASS_DEPT DATE_ACT RESP_TIME PERS_ID
904 3849728 1 1 99 06/04/2012 14:31:57 212 ELNEMRN
904 3851440 1 99 99 06/05/2012 10:03:13 ARDBP
904 3851444 1 99 1 06/05/2012 10:03:19 93 ITCHARDBP
904 3852219 1 1 1 06/05/2012 11:36:52 JAKWND
904 3852559 100 1 0 06/05/2012 12:49:51 DOKKBIAM
904 3855304 136 1 0 06/06/2012 11:46:40 NUALLJ
904 3855306 5 1 0 06/06/2012 11:46:47 TTALLJ
898 3849710 1 1 99 06/04/2012 14:29:23 218 URGEMRN
898 3851494 1 99 99 06/05/2012 10:07:55 HARDRIT
898 3851497 101 99 0 06/05/2012 10:08:13 HARDRIT
898 3851499 1 99 57 06/05/2012 10:08:26 230 HARDRIT
898 3852949 42 57 0 06/05/2012 13:58:46 MEYJEMRN
898 3853011 1 57 99 06/05/2012 14:08:46 2,400 MEYJEMRN
898 3866405 101 99 0 06/12/2012 14:08:46 HARDRIT
898 3866408 4 99 1 06/12/2012 14:08:52 HARDRIT
898 3866409 1 99 1 06/12/2012 14:08:52 HARDRIT
898 3878538 5 1 0 06/19/2012 08:23:06 ENGERM
The incidents can be assigned to department 99, then resolved and reassigned to another dept as in example of incident 904. Or they can be reassigned from other departments twice or more as an incident 898.
The challenge for me is dealing with incidents such as # 898. I was trying to create variables for date_received_first and date_received_next (dates in black, bold), date_reassigned_first and date_reassigned_next (dates in purple), person_first and person_next (in purple color). But the variables show only the latest values in group footer. Also, it is difficult to differentiate dates reassigned first time and next times.
Thank you in advance for any ideas!!