sum of 5 min of the County group

Hello

I'm looking for a sum of count of status by group of 5 min from date-time data.

I have the table table1 with date columns, status (1) tank update_datetime

The one you suggest a solution for this? Thanks in advance.

I have a request, but to change to get the sum of group status by 5 min.

SELECT update_datetime, decode(status,'1','SUBMITTED') State, COUNT (1)
OF test1
"WHERE to_char (update_datetime, 'dd-mon-yyyy hh24:mi:ss') > = 24 January 2010 14:00.
"and to_char (update_datetime, 'dd-mon-yyyy hh24:mi:ss') < 24 January 2010 14:16.
AND status = '1'
GROUP BY update_datetime, status
order update_datetime;

STATUS OF UPDATE_DATETIME
-------------------- -------
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:00 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:01 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:02 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:03 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:04 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:05 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:06 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
2010-01-24 14:07 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
24/01/2010 14:08 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:09 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:10 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:11 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
2010-01-24 14:12 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
24/01/2010 14:13 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
2010-01-24 14:14 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
24/01/2010-14:15 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1
2010-01-24 14:16 1

Published by: SDS on February 3, 2010 11:18

The fact is - and I thought it was pretty obvious - was that you have to change what you are selecting and group by.
I did not have your tables and data, as is normal around here, I have illustrated with a reproducible example, standalone to show the rough concept and hoped that you would move yourself forward.

Thus, instead of

SELECT update_datetime ...
....
GROUP BY update_datetime, status
ORDER BY  update_datetime;

You should do something like

SELECT TRUNC(update_datetime) + TRUNC(TO_CHAR(update_datetime,'SSSSS')/300)/12/24  ...
....
GROUP BY TRUNC(update_datetime) + TRUNC(TO_CHAR(update_datetime,'SSSSS')/300)/12/24, status
ORDER BY  TRUNC(update_datetime) + TRUNC(TO_CHAR(update_datetime,'SSSSS')/300)/12/24;

Tags: Database

Similar Questions

  • Max, Min, and Count with Group By

    Hello

    I want the max, min and the meter of a table that is grouped by a column

    I need a combination of these two selects:

    select
         max(COUNTRY_S) MAXVALUE,
         min(COUNTRY_S) MINVALUE
    from
         tab_Country
    
    

    select
         count(*)
    from
         (select COUNTRY_TXT from tab_Country group by COUNTRY_TXT) ;
    
    

    The result should be a line with the maximum and minimum of the table value and the County grouped by table, not the max and min of each group! -J' hope you understand my question?

    Is this possible in a SQL-select?

    Thank you very much

    Best regards

    Heidi

    Hi, Heidi,.

    HeidiWeber wrote:

    Hello

    I want the max, min and the meter of a table that is grouped by a column

    I need a combination of these two selects:

    1. Select
    2. MAXVALUE, Max (COUNTRY_S),
    3. min (COUNTRY_S) MINVALUE
    4. Of
    5. tab_Country
    1. Select
    2. Count (*)
    3. Of
    4. (select the COUNTRY_TXT of the COUNTRY_TXT tab_Country group);

    The result should be a line with the maximum and minimum of the table value and the County grouped by table, not the max and min of each group! -J' hope you understand my question?

    Is this possible in a SQL-select?

    Thank you very much

    Best regards

    Heidi

    It is not clear what you want.  Maybe

    SELECT MAX (country_s) AS max_country_s

    MIN (country_s) AS min_country_s

    COUNT (DISTINCT country_txt) AS count_country_txt

    OF tab_country

    ;

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.
    Explain, using specific examples, how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

  • Replacement for the Working Group to el Capitan Manager?

    I recently built new servers, intending using open directory.

    The equipment I use are the new mac mini servers, with two 1 TB drives and 16 GB of memory.

    Historically I have used Workgroup Manager for direct starting, deployment of the printer files, user groups and others.

    Is there a replacement for the Working Group Manager who no longer works with el capitan (10.11.3)?

    The replacement is the Manager of service profile. See the built-in help of server for instructions begin. This is beta-quality software, at best.

  • How to create a file name variable with the County and the date?

    Objective: Create a file name variable with the County and the date

    Error: get a lot of error. Do you know how to change my code?

    Question: how to create a file name variable with the County and the date?

    Mini code:

    std::string * rawfilepath;
    std::string * rawfilename;

    rawfilepath = "./shared/documents/";
    RawFileName = rawfilepath + 'rawlog -' + 0 + '-.txt ';
    QFile file (rawfilename);
    If (file.exists ()) {}
    rawfilenamecount ++;
    RawFileName = "./shared/documents/rawlog-" + rawfilenamecount + "-.txt ';
    }

    Thank you for your attention,

    Thank tzander reminding me the idea. Method of cascades is not good for me because all of the kernel code is written by Native. If I change the channel to QString, I need to change a lot of codes.

    Solution is below.

    While (access (rawfilename, F_OK)! = - 1) {}
    rawfilenamecount ++;
    sprintf (format, RawFileName, rawfilenamecount);
    fprintf (stderr, "file exists");
    }

    Rawlog = fopen (rawfilename, "w"); Save the file in a specific path.
    fprintf (rawlog, "System Time (ms)" "");

  • Cannot get Windows 7 homegroups to work properly. Double-click a shared library on another machine in the residential group doesn't.

    I just bought a new laptop with Windows 7 on it, so I decided to try the new homegroup in Windows 7 feature.  I activated the homegroup on my desk and apart from the music, photos and videos.  I then joined the residential group with the new portable computer using the password provided by the office shared libraries and the same 3 homegroup.  All appeard to put up correctly, but I can't browse libraries shared each machine to other machine.  I have the Homegroup and click on the other machine and I see 3 libraries, but when I click on any one of them does nothing.  This happens on both machines.   The only way I can get the residential groups to work is to first go to the other machine and provide credentials on the other machine.  After doing this, the homegroup files begin to work.  I was under the impression that the homegroup password was all I had to have access to all shared folders with the homegroup, but the only way I can get the homegroup to work is first authenticate itself to other machine using a user name and password.

    The two machines are configured with the following:

    • Network discovery is enabled
    • File sharing and printer is enabled
    • Public folder sharing is on
    • Streaming Media is on
    • File sharing connections is configured to use 128-bit encryption
    • Password protected sharing is on
    • Homegroup connections is set up to allow Windows to manage.

    I came across this forum because I had the same problem today. Real quickly, I have two laptops, one running windows 7 Home premium 32-bit and the other runs windows 7 Professional 32-bit. I have comcast for my internet provider and their cable modem attached to my belkin wireless router. I don't know if my fix will work for someone else, but it worked for me, so this is.

    1. unplug the router cable modem wireless
    2. connect the router to one of your computers using an ethernet cord
    3. open a web browser and type in the IP address of the router in the Web page bar (as when you type hotmail.com to go check your email). Mine is a belkin so 192.168.2.1 has worked for me.
    4. the control of the router page should open, and one of the options should be to reset factory settings, do this.
    5. DO NOT CONNECT THE ROUTER TO THE CABLE MODEM
    6 configure the router in the same way that you did when you first installed the router, but just to be sure, I used another name for the network
    7. Once you have the password set up and named network you can disconnect the ethernet cable.
    8. connect to the new network without wire of each computer (just like when you connect to a wireless network) choose House (rather than work or public) for the network location.
    9. at this stage my homegroup didn't work, if it is not there for you, you may need to set up the homegroup in Control Panel.
    10. once the residential group is working the way you want to connect the router wireless to the modem cable and check to see if your internet connection is working by opening a web browser and go to any old site
    Hope this helps!
    Cameron
  • Identify the various groups in the Organization (group the same data set)

    Version: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    Help me identify the groups (various sectors) in the Organization

    Each group will have the same group if We_org_id, We_addr_id or We_org_id, Ein Matches id

    In the below example line 1 and 2 are related with We_org_id, We_addr_id

    and row 2 and 3 are related to the We_org_id, Ein so all three lines has same groupid

    Included output required.

    Example of

    311 563 72 - 1500000 2

    311 563 72 - 1500001 2

    311 565 72 - 1500001 2

    -Table and inserts

    CREATE TABLE ORG_MISMATCH
    (
      WE_ORG_ID   NUMBER,
      WE_ADDR_ID  NUMBER,
      EIN         VARCHAR2(30 BYTE)
    );
    
    SET DEFINE OFF;
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 24303142, '31-1700059');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 56381251, '39-1675361');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 56381251, '31-1700059');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 56381251, '26-0060245');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 56381251, '72-1284709');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 121786868, '31-1700059');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 21053495, '72-1355929');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 56381251, '73-1317052');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 56381251, '56-2525845');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 56381251, '72-1355929');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 56381251, '84-1535762');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 56381251, '91-2031795');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 56381251, '84-1487943');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 56381251, '91-2035844');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 56381251, '84-1535753');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 56381251, '72-1501788');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 56381251, '30-0137738');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 563, '72-1500001');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 565, '72-1500001');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 56381251, '72-1355929');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 24303142, '31-1700059');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 56381251, '31-1700059');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 121786868, '31-1700059');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 56381251, '84-1535762');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 56381251, '72-1501788');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 56381251, '91-2031795');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 56381251, '30-0137738');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 56381251, '72-1284709');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 56381251, '56-2525845');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 56381251, '91-2035844');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 21053495, '72-1355929');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 56381251, '39-1675361');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 56381251, '84-1487943');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 56381251, '84-1535753');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 56381251, '26-0060245');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (999, 56381251, '73-1317052');
    Insert into ORG_MISMATCH
       (WE_ORG_ID, WE_ADDR_ID, EIN)
    Values
       (311, 563, '72-1500000');
    COMMIT;
    
    
    
    
    
    WE_ORG_IDWE_ADDR_IDEINGROUPID

    POWER REQUIRED-> create a Groupid column

    3112430314231-17000591
    3115638125139-16753611
    3115638125131-17000591
    3115638125126-00602451
    3115638125172-12847091
    31112178686831-17000591
    3112105349572-13559291
    3115638125173-13170521
    3115638125156-25258451
    3115638125172-13559291
    3115638125184-15357621
    3115638125191-20317951
    3115638125184-14879431
    3115638125191-20358441
    3115638125184-15357531
    3115638125172-15017881
    3115638125130-01377381
    31156372-15000012
    31156572-15000012
    31156372-15000002

    It would be nice to know the roots. I have two with assume

    Start with we_addr_id in)

    Select min (we_addr_id)

    the Group of org_mismatch by we_org_id

    Otherwise it would have taken a while...

    This below does not really...

    Select
    WE_ORG_ID
    WE_ADDR_ID
    EIN
    dense_rank() over (partition by order WE_ORG_ID of r) grp
    de)
    Select
    WE_ORG_ID
    WE_ADDR_ID
    EIN
    connect_by_root WE_ADDR_ID r
    of ORG_MISMATCH
    connect to nocycle
    prior we_org_id = we_org_id
    and)
    (we_addr_id = we_addr_id and ein prior prerequisite<>
    or
    (ein = ein prerequisite and precondition we_addr_id)<>
    )
    Start with we_addr_id in)
    Select min (we_addr_id)
    the Group of org_mismatch by we_org_id
    )
    )
    Group
    WE_ORG_ID
    WE_ADDR_ID
    EIN
    r
    order by
    WE_ORG_ID
    WE_ADDR_ID
    EIN
    -3

    WE_ORG_ID WE_ADDR_ID EIN GRP
    311 563 72-1500000 1
    311 563 72-1500001 1
    311 565 72-1500001 1
    311 21053495 72-1355929 2
    311 56381251 72-1355929 2
    311 56381251 72-1501788 2
    311 56381251 73-1317052 2
    311 56381251 84-1487943 2
    311 56381251 84-1535753 2
    311 56381251 84-1535762 2
    311 56381251 91-2031795 2
    311 56381251 91-2035844 2
    999 21053495 72-1355929 1
    999 56381251 72-1355929 1
    999 56381251 72-1501788 1
    999 56381251 73-1317052 1
    999 56381251 84-1487943 1
    999 56381251 84-1535753 1
    999 56381251 84-1535762 1
    999 56381251 91-2031795 1
    999 56381251 91-2035844 1

    Post edited by: commentary on the chris227

  • Can't see the nuance group button?

    It seems as if my button of the swatch group is missing? This is supposed to be a small folder in the correct swatch tab? I can see it in the tutorial, but not in the mine or the windows tab. Here is a screenshot of my friends and it is not here as you can see. Any suggestions on why this might be or where I can find it?

    What version of ID do you use? I think that you need version 10 (CC 2014) for groups of colors.

  • Ask for help with the query group by

    Hello
    I have the following table with values structure
    CREATE TABLE DUMMY
      (
        SR_NUMBER          VARCHAR2(100 CHAR),
        ASSIGNMENT_GROUP   VARCHAR2(100 CHAR),
        REASSIGNMENT_COUNT VARCHAR2(100 CHAR),
        CREATED DATE,
        CLOSED DATE,
        TARGET_DATE DATE
     )
     
     insert into dummy values('AAA','A','1','02-OCT-11','25-OCT-11','09-OCT-11');
     insert into dummy values('ABC','A','1','03-SEP-12','26-SEP-11','10-SEP-11');
     insert into dummy values('AVB','A','1','02-NOV-13','25-NOV-13','09-NOV-13');
     insert into dummy values('AFT','B','1','02-OCT-11','25-OCT-11','09-OCT-11');
     insert into dummy values('ACS','B','1','02-JAN-12','25-JAN-12','09-JAN-12');
     insert into dummy values('AVC','B','1','02-OCT-13','25-OCT-13','09-OCT-13');
     insert into dummy values('AAD','B','1','02-MAR-14','25-MAR-14','09-MAR-14');
     insert into dummy values('AAA','C','1','02-OCT-11','25-OCT-11','09-OCT-11');
    insert into dummy values('AAA','D','1','02-JUN-11','25-JUN-11','09-JUN-11');
    insert into dummy values('AAA','E','1','02-APR-12','25-APR-12','09-APR-12');
    insert into dummy values('AAA','A','1','02-FEB-13','25-FEB-13','09-FEB-13');
    
    ?
    I have the following requirement, the output should be:

    Number of ticket (sr_number)
    % of tickets inside the DL
    Number of tickets inside the DL
    Average cycle time (cycle time = closing date - date of creation)
    Total cycle time (cycle time = closing date - date of creation)
    Number of reallocations (sum)


    DL - (deadline) formula is, closed date < = target_date

    This should be displayed, grouped by year, then month, then the assignment group. The values must be in descending order (dates) is not sure that group in operation here.
    I am able to write the code base of the foregoing, but group from the year, month, and group assignment is pretty confusing to me.


    Can someone give me a voucher code...

    This may not give you exactly what you want, but if all goes well, it will give you something to work with:

    WITH tickets AS (
      SELECT TO_CHAR(created, 'YYYY') created_year,
             TO_CHAR(created, 'MM') created_month,
             assignment_group,
             COUNT(sr_number) ticket_count,
             AVG(closed - created) avg_cycle_time,
             SUM(closed - created) tot_cycle_time,
             COUNT(reassignment_count) reassign_count
       FROM dummy
       GROUP BY TO_CHAR(created, 'YYYY'),
                TO_CHAR(created, 'MM'),
                assignment_group
    ),
    dl_tickets AS (
      SELECT TO_CHAR(created, 'YYYY') created_year,
             TO_CHAR(created, 'MM') created_month,
             assignment_group,
             COUNT(sr_number) ticket_in_dl_count
        FROM dummy
        WHERE closed <= target_date
        GROUP BY TO_CHAR(created, 'YYYY'),
              TO_CHAR(created, 'MM'),
              assignment_group
    )
    SELECT t.created_year,
           t.created_month,
           t.assignment_group,
           t.ticket_count,
           NVL(dl.ticket_in_dl_count, 0) ticket_in_dl_count,
           NVL(dl.ticket_in_dl_count/t.ticket_count, 0) * 100 pct_ticket_in_dl_count,
           t.avg_cycle_time,
           t.tot_cycle_time,
           t.reassign_count
      FROM tickets t,
           dl_tickets dl
      WHERE t.created_year = dl.created_year (+)
      AND t.created_month = dl.created_month (+)
      ORDER BY created_year DESC, created_month DESC
    

    Published by: user1983440 on May 27, 2013 15:47 - added reassign_count

    Published by: user1983440 on May 27, 2013 15:54 - added ORDER BY

  • code xdoxslt:Sum does not not in the RTF model: method not found "sum".

    We get the error when you run a RTF model customized using the application (Oracle HRMS) below and in Office BiPublisher for a particular set of data (1 employees check data). Format RTF model code which seems to be the cause of the error is the cumulative total code which is supposed to sum YTD_HOURS for all elements in the DataSet xml AC_EARNINGS:

    Problem code: <? xdoxslt:sum(YTD_HOURS_[.!_=''])? >

    The error message below it seems to be having trouble with the sum

    HRMS Oracle concurrent Manager error:

    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39
    )
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl
    . Java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:677)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:425)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:244)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate (TemplateH
    Elper.Java:5936)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate (TemplateHelp
    St. Java:3459)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate (TemplateHelp
    St. Java:3548)
    at oracle.apps.pay.core.documents.DocGenerator.process(DocGenerator.java:521)
    Caused by: oracle.xdo.parser.v2.XPathException: Extension function error: method
    not found 'sum' to the oracle.xdo.parser.v2.XSLStylesheet.flushErrors(XSLStylesheet.java:1534)
    at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:521)
    at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
    at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
    at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
    at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
    ... more than 17

    HR_6882_HRPROC_ASSERT
    LOCATION pyjavacom:2
    APP-PAY-06882: Assertion failure detected at the location pyjavacom:2.

    Cause: an internal error has occurred at the location pyjavacom:2.

    Action: contact your Oracle customer representative.



    Note: The RTF check model works ok most of the time, but there is a problem with the model of XML data below. In this scenario, there is no YTD_HOURS and only one line of data for this employee, unlike the data second example of another audit below.

    The data that the code does NOT work with:

    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 58423 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10511197 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 1200 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 1584.8 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 25698.88 < / YTD_AMOUNT >
    Normal salary < REPORTING_NAME > < / REPORTING_NAME >
    < CURRENT_HOURS > 80 < / CURRENT_HOURS >
    < YTD_HOURS > 1312 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL > 19.81 < / RATE_MUL >
    < RATE_RET / >
    < / AC_EARNINGS >

    Data that works with the code:

    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 58423 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10511197 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 1200 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 1584.8 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 25698.88 < / YTD_AMOUNT >
    Normal salary < REPORTING_NAME > < / REPORTING_NAME >
    < CURRENT_HOURS > 80 < / CURRENT_HOURS >
    < YTD_HOURS > 1312 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL > 19.81 < / RATE_MUL >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    < ELEMENT_CLASSIFICATION > attributed gains < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 58444 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10511222 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 3250 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 1.46 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 25,51 < / YTD_AMOUNT >
    Life term for the Group < REPORTING_NAME > < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS / >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    Additional gains < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 58431 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10511205 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 2500 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 9.6 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 163,2 < / YTD_AMOUNT >
    < REPORTING_NAME > dental CB < / REPORTING_NAME >
    < CURRENT_HOURS > 0 < / CURRENT_HOURS >
    < YTD_HOURS > 0 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 64614 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10518109 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 1526 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 1571.12 < / YTD_AMOUNT >
    < REPORTING_NAME > TOWP < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS > 80 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    revenues of < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 57863 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10510820 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 1200 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 937,2 < / YTD_AMOUNT >
    Holiday < REPORTING_NAME > < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS > 48 < / YTD_HOURS >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    < ELEMENT_CLASSIFICATION > attributed gains < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 63592 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10517244 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 3250 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 285.07 < / YTD_AMOUNT >
    < REPORTING_NAME > F90 SVEU DIST < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS / >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >
    -< AC_EARNINGS >
    < DATE_DISP_FLG > N < / DATE_DISP_FLG >
    Additional gains < ELEMENT_CLASSIFICATION > < / ELEMENT_CLASSIFICATION >
    < ELEMENT_TYPE_ID > 67074 < / ELEMENT_TYPE_ID >
    < PRIMARY_BALANCE > 10520289 < / PRIMARY_BALANCE >
    < PROCESSING_PRIORITY > 2500 < / PROCESSING_PRIORITY >
    < CURRENT_AMOUNT > 0 < / CURRENT_AMOUNT >
    < YTD_AMOUNT > 85.24 < / YTD_AMOUNT >
    < REPORTING_NAME > other Tx RRs < / REPORTING_NAME >
    < CURRENT_HOURS / >
    < YTD_HOURS / >
    < RATE / >
    < CURRENT_DAYS / >
    < YTD_DAYS / >
    < ATTRIBUTE_NAME / >
    < ORIGINAL_DATE_EARNED / >
    < EFFECTIVE_START_DATE / >
    < EFFECTIVE_END_DATE / >
    < ELEMENT_CATEGORY / >
    < JURISDICTION_CODE / >
    < RATE_MUL / >
    < RATE_RET / >
    < / AC_EARNINGS >


    If anyone has any ideas as to what is necessary to resolve the issue we have in our company can you please let me know? I appreciate your time. If you need more information please let me know and I'll post it.

    Thank you

    Greg

    Published by: gtruta on November 20, 2012 16:20

    Published by: gtruta on November 20, 2012 16:21

    xdoxslt sum allows us to avoid the issue while fields sum with the value null. as you already now the condition with the field u do not need xdoxslt

    is - enough try this

    you are able to get a preview of the template with the code of the sum.

    Send me your model and xml. I can try at my side
    E-mail: [email protected]

  • REP-1248, all sources of placeholder columns must be in the same group

    Hi all

    I'm developing a (10g) report that contains three executives of repetition, say R1, R2, R3. Independent of each other, not connected or linked.
    I have a column defined in each summary of groups, G1, G2, G3, associated with R1, R2, and R3 to count the number of records in each group say. If the three groups count is 0, there is an another framework, I have defined, M1, containing the text as "No record found" that should be displayed.
    I can not access the summary columns defined in the format of M1 trigger groups because it is separated from R1, R2, and R3. So I created a column placeholder CP1, which recognizes the M1.
    But I'm not able to set the value of CP1 to the sum of analytical columns CS1, CS2, CS3 in the formula trigger of the CP1.
    I get the error:
    REP-1248 all sources of placeholder columns must be in the same group

    I also tried to set the value of the CP1 in CS1, CS2, and CS3 formula columns to get the same error.

    Is it possible to be able to use the analytical columns within the groups to have the feature above?

    Thank you
    Shruti

    create a place holder cp_1 in the external data model of all queries

    in each query, create a numerical formula
    with this code

    Start
    : cp_1: = nvl(:cp_1,0) + 1;
    Return 1;
    end;

    the nvl if she is not so necessary to the placeholder sets the initial value of zero

    then in the text frame properties go to conditional formatting
    Then create a new exception format

    cp_1 top to hide 0
    and then the work.

  • put a total and the County under the column

    My apologies if this question is too basic.

    question: How can I get a total under each column under bi publisher desktop in word (see example below)? I just do not know how to put the County under the case, total under the cost inv. column column. Can you help me? There is no group involved here.
         case#     inv.cost     
    -----     --------     
    1     300          
    2     900
              
    ---------------
    2     1200
    Thank you.


    Lulu

    1. Insert a field into the model. You can do so by copying-pasting one of the existing fields.
    2. double-click on the field.
    3.specify: text to insert--> all
    Type-> number
    Format-> #, # 0.00
    4. go to the Advanced tab and enter the text:
    5. click on OK

  • sum of a column of the dimension

    Hello
    If my requirement of report said we get SUM (Treasury of column) of the dimension table then can we do it? I have undersatnd that function must be used for measures in fact table. What are we doing to reach the sum of the columns in the dimension table? The report tries to compare the sum (column done) sum (dimension columns). Earlier when I used the sum on the column dimension function he gave no precise results. Please advice.

    Unfortunately, I could not explain this matter in a simple unique way, without seeing exactly the report and generated queries

    In the simple table, OBIEE is supposed to do something like this (I assume you put the attribute of the year, money and a measure of 'real')

    "+ select +".
    + Year +.
    + Sum (cash) +.
    + Sum (fact measure) +.

    + Of +.
    + time_dim_table, +.
    + cash_dim_table, +.
    + fact_table +.

    + where (joins).
    + Group by year +.
    "

    You can check if the physical demand looks like this, in order to understand the results.

    In the PivotTable, it's totally different.
    Your physical demand will be no aggregation: so what will:

    "+ select +".
    + Year +.
    + Cash +.
    + Sum (fact measure) +.

    + Of +.
    + time_dim_table, +.
    + cash_dim_table, +.
    + fact_table +.

    + where (joins).
    + Group by year, money +.
    "

    But, OBIEE then apply logic calculatiosn to display goods results in the PivotTable.
    Who can explain the different results.

    But don't forget that told you right: avoid the aggregation on the dimension attributes. You can sometimes has good results (ex: using the pivot, or other), but it's not really the best way to make your reports. If you often need a "sum (cash"), create a new table of logic made with the 'picture of cash' (even if it is also a dimension table).

  • Determine a value for each record for the whole group

    < < Sorry I pasted erroneous results earlier > >

    Hello

    I have a table (in production, join the many tables, but for simplicity, I created a table), which has a few related accounts grouped by ACCT_GRP_ID I have to write a SQL (not a PL/SQL), who should have all columns of this table and an extra column "FLAG". For GA_CD = BBC, FLAG must have a value of 'No Show', if the APP_DT of at least a recording with the group is less than the current year also all the records in the group will have a value of 'Show '. For the record no BBC FLAG must always be 'Show '.

    DDLS
    {code}
    CREATE TABLE ACCOUNTS
    (NUMBER OF ACCT_GRP_ID,
    GA_CD VARCHAR2 (10),
    AGNT_NAME VARCHAR2 (50).
    NUMBER OF CASE_NUM
    NUMBER OF FUND_AMT
    DATE OF APP_DT,
    STATUS VARCHAR2 (10));

    INSERT INTO ACCOUNT VALUES (1, 'BBC', 'SAMANTHA, JOSE, 12345, 234.33, 2 AUG 2008', ' PLACED');
    INSERT INTO ACCOUNT VALUES (1, 'BBC', 'SAMANTHA, JOSE, 12346, 331,13, 24 APR 2009', ' PLACED');
    INSERT INTO ACCOUNT VALUES (1, 'BBC', 'SAMANTHA, JOSE, 12347, 201,27, 13 FEB 2009', ' PLACED');
    INSERT INTO ACCOUNT VALUES (2, 'BBC', ' MARK, ROSS, 12348, 98.12, 31 MAY 2009', 'PLACE' ");
    INSERT INTO ACCOUNT VALUES (2, 'BBC', ' MARK, ROSS, 12349, 121.00, 25 JUNE 2009', 'PLACE' ");
    INSERT INTO ACCOUNT VALUES (2, 'BBC', 'BRAND, ROSS, 12350, 11.00, 27 JUNE 2009', 'CLOSED');
    INSERT INTO ACCOUNT VALUES (3, 'BBC', "RAJ MALIK", 12351, 89.00, 31 DEC 2008', 'PLACED');
    INSERT INTO ACCOUNT VALUES (3, 'BBC', "RAJ MALIK", 12352, 22.00, 26 OCT 2008', 'PLACED');
    INSERT INTO ACCOUNT VALUES (4, 'BBC', 'SHANE, WILLS', 12353, 443.00, 7 JUNE 2009', 'PLACE');
    INSERT INTO ACCOUNT VALUES (5, 'BBC', 'JANE, WALLACE, 12354, 74.00, 17 JAN 2009', ' PLACED');
    INSERT INTO ACCOUNT VALUES (NULL, 'BBC', 'ROSY, BETH', 12355, 124.00, 21 MAR 2009', 'PLACE');
    INSERT INTO ACCOUNT VALUES (NULL, 'STAR', 'TINA, WZWICK', 22330, 89.00, 31 DEC 2008', 'PLACED');
    INSERT INTO ACCOUNT VALUES (NULL, 'STAR', 'YANA, KORVIN', 27351, 22.00, 26 OCT 2008', 'PLACED');
    INSERT INTO ACCOUNT VALUES (NULL, 'STAR', 'SARA, YUI', 22352, 443.00, 7 JUNE 2009', 'PLACE');
    INSERT INTO ACCOUNT VALUES (NULL, 'STAR', 'MIKE, TROY, 22453, 74.00, 17 JAN 2009', ' PLACED');

    COMMIT;
    {code}

    Required result:
    {code}
    APP_DT GA_CD AGNT_NAME STATE BOITE_ FUND_ ACCT_ INDICATOR
    AMT NUM GRP_ID
    1 SAMANTHA, JOSE PLACE 12347 201.27 BBC 13/02/2009 no show
    1 SAMANTHA, JOSE PLACE 12346 331.13 BBC 24/04/2009 no show
    1 SAMANTHA, JOSE PLACE 12345 234.33 BBC 08/02/2008 no show
    MD2 BBC BRAND, ROSS CLOSED 12350 11 6/27/2009 see the
    MD2 BBC BRAND, ROSS PLACED 12349 121 6/25/2009 see the
    2 BRAND of BBC, ROSS PLACE 12348 98.12 show of 31/05/2009
    3 BBC RAJ MALIK not PLACED 12352 22 10/26/2008 no show
    3 BBC RAJ MALIK not PLACED 12351 89 12/31/2008 no show
    4 BBC SHANE, WILLS PLACE 12353 443 6/7/2009 see the
    5 BBC JANE, WALLACE PLACE 12354 74 1/17/2009 see the
    STARS of MIKE, TROY PLACED 22453 74 1/17/2009 see the
    See the BBC ROSE, BETH PLACED 12355 124 3/21/2009
    STAR SARA, YUI PLACED 22352 443 6/7/2009 see the
    TINA, WZWICK STAR PLACED 22330 89 12/31/2008 see the
    YANA STAR, KORVIN PLACED 27351 22 10/26/2008 see the
    {code}

    As in the results Group 1 has a record with the date of 2008 for the whole group getting 'No Show'. Group 2 has all the records this year, so he gets the 'Show '.
    Help, please!

    Published by: Kuul13 on June 25, 2009 13:31

    Published by: Kuul13 on June 25, 2009 13:43
    I think I'm really having a BAD BAD day... Sorry again... I don't need the domain TOT_FUND_AMT...

    Hello

    Thanks for posting the DDL and DML statements. This helps a lot.

    I don't understand the output, however. Do you want to really two rows of output for each row in the table? The tot_fund_amt is copied from somewhere else? More important still, the results do not include the new flag column. Isn't the point of all of this question? It's good to describe how the indicator is calculated, but you have to show, too.

    I think you want analytical MIN function to find the first app_dt in each group, like this:

    SELECT  a.*
    ,     CASE
              WHEN  ga_cd = 'BBC'
              AND   MIN (app_dt) OVER ( PARTITION BY  ga_cd
                                          ,              acct_grp_id
                                        )  < TRUNC (SYSDATE, 'YYYY')
                    THEN  'No Show'
                    ELSE  'Show'
         END     AS flag
    FROM     accounts   a
    ;
    

    Output:

    . ACCT
      _GRP GA                     CASE     FUND
       _ID _CD  AGNT_NAME         _NUM     _AMT APP_DT     STATUS FLAG
    ------ ---- --------------- ------ -------- ---------- ------ -------
         1 BBC  SAMANTHA, JOSE   12345   234.33 08/02/2008 PLACED No Show
         1 BBC  SAMANTHA, JOSE   12346   331.13 04/24/2009 PLACED No Show
         1 BBC  SAMANTHA, JOSE   12347   201.27 02/13/2009 PLACED No Show
         2 BBC  MARK, ROSS       12348    98.12 05/31/2009 PLACED Show
         2 BBC  MARK, ROSS       12349   121.00 06/25/2009 PLACED Show
         2 BBC  MARK, ROSS       12350    11.00 06/27/2009 CLOSED Show
         3 BBC  RAJ, MALIK       12351    89.00 12/31/2008 PLACED No Show
         3 BBC  RAJ, MALIK       12352    22.00 10/26/2008 PLACED No Show
         4 BBC  SHANE, WILLS     12353   443.00 06/07/2009 PLACED Show
         5 BBC  JANE, WALLACE    12354    74.00 01/17/2009 PLACED Show
           BBC  ROSY, BETH       12355   124.00 03/21/2009 PLACED Show
           STAR TINA, WZWICK     22330    89.00 12/31/2008 PLACED Show
           STAR SARA, YUI        22352   443.00 06/07/2009 PLACED Show
           STAR MIKE, TROY       22453    74.00 01/17/2009 PLACED Show
           STAR YANA, KORVIN     27351    22.00 10/26/2008 PLACED Show
    

    Note that the NULL acct_grp_id is a group. PARTITION BY acct_grp_id is of course necessary, but we must also, PARTITION BY ga_cd all non-BBC lines will be included in this group. In other words, we are unwilling reported as 'No Show', all ROSY just because TINA or JANA had an early app_dt.

  • Really slow Mac Mini on the first commissioning

    I bought my Mac Mini because the old PC had an age to start up. Now, my Mac Mini is even worse. I also have an old portable (2010) I installed Windows 10 on, and it is much faster than my Mac! W10 is up and running on browser/email before Mac even gets to the user login page!

    Advice on other posts, I ran EtreCheck and updated a printer with the HP software problem. Got sorted and it really helped. But its just as bad party, ran EtreCheck again, the results below, but while the Mac was still loading up, it's done intentionally to see if I can find what it keeps. There is nothing obvious in this, can we see something that miss me it please.

    (Aware there are other posts like this but saw someone do an admonition to add their isses at the same post accusing them of 'thread-jacking')

    EtreCheck version: 3.0.3 (307)

    Report generated 2016-09-17 08:11:02

    Download EtreCheck from https://etrecheck.com

    Duration 11:48

    Performance: Poor

    Click the [Support] links to help with non-Apple products.

    Click [details] for more information on this line.

    Problem: Computer is too slow

    Hardware Information:

    Mac mini (late 2012)

    [Data sheet] - [User Guide] - [warranty & Service]

    Mini Mac - model: Macmini6, 2

    1 2.3 GHz Intel Core i7 CPU: 4 strands

    4 GB of RAM expandable - [Instructions]

    BANK 0/DIMM0

    OK 2 GB DDR3 1600 MHz

    BANK 1/DIMM0

    OK 2 GB DDR3 1600 MHz

    Bluetooth: Good - transfer/Airdrop2 taken in charge

    Wireless: en1: 802.11 a/b/g/n

    Video information:

    Graphics Intel HD 4000

    S236HL 1920 x 1080

    Software:

    OS X El Capitan 10.11.6 (15-1004) - since startup time: less than an hour

    Disc information:

    HTS541010A9E662 disk HARD APPLE disk0: (1 TB) (rotation)

    EFI (disk0s1) < not mounted >: 210 MB

    Macintosh HD (disk0s2) /: 999,35 go-go (607,22 free)

    Recovery HD (disk0s3) < not mounted > [recovery]: 650 MB

    USB information:

    Receiver IR of Apple, Inc..

    Apple Inc. BRCM20702 hub.

    Apple Inc. Bluetooth USB host controller.

    Lightning information:

    Apple Inc. Thunderbolt_bus.

    Guardian:

    Mac App Store and identified developers

    Kernel extensions:

    / Library/Application Support/Avast/components/fileshield/not signed

    [loading] com.avast.AvastFileShield (3.0.0 - SDK 10.9-2016-08-18) [Support]

    / Library/Application Support/Avast/components/proxy/not signed

    [loading] com.avast.PacketForwarder (2.1 - SDK 10.11 - 2016-08-18) [Support]

    Launch system officers:

    [no charge] 7 tasks Apple

    [loading] 154 jobs Apple

    [running] Apple 77 jobs

    Launch system demons:

    [cannot] com.apple.security.syspolicy.plist (2015-08-23)

    [no charge] 45 Apple jobs

    tasks of Apple 155 [loading]

    Apple tasks 90 [performance]

    Launch officers:

    [cannot] com.adobe.ARMDCHelper.cc24aef4a1b90ed56a725c38014c95072f92651fb65e1bf9c8e43c37a2 3d420d.plist (2016-07-12) [Support]

    [performance] com.avast.secureline.update - agent.plist (2016-07-04) [Support]

    [loading] com.avast.secureline.userinit.plist (2016-07-04) [Support]

    [performance] com.avast.update - agent.plist (2016-08-22) [Support]

    [loading] com.avast.userinit.plist (2016-08-22) [Support]

    [loading] com.google.keystone.agent.plist (2016-07-12) [Support]

    [loading] com.oracle.java.Java - Updater.plist (2016-08-23) [Support]

    Launch demons:

    [loading] com.adobe.ARMDC.Communicator.plist (2016-07-12) [Support]

    [loading] com.adobe.ARMDC.SMJobBlessHelper.plist (2016-07-12) [Support]

    [loading] com.adobe.fpsaud.plist (2016-06-29) [Support]

    [loading] com.avast.init.plist (2016-08-22) [Support]

    [loading] com.avast.secureline.init.plist (2016-07-04) [Support]

    [loading] com.avast.secureline.uninstall.plist (2016-07-04) [Support]

    [loading] com.avast.secureline.update.plist (2016-07-04) [Support]

    [loading] com.avast.uninstall.plist (2016-08-22) [Support]

    [loading] com.avast.update.plist (2016-08-22) [Support]

    [loading] com.google.keystone.daemon.plist (2016-09-02) [Support]

    [loading] com.microsoft.office.licensing.helper.plist (2014-02-26) [Support]

    [loading] com.oracle.java.Helper - Tool.plist (2016-08-23) [Support]

    User launch officers:

    [cannot] com.adobe.ARM. [...]. plist (2014-09-02) [Support]

    [loading] com.avast.home.userinit.plist (2016-08-22) [Support]

    [loading] com.avast.secureline.home.userinit.plist (2016-07-05) [Support]

    [loading] com.f - secure.sync.BTCloud.plist (2015-07-31) [Support]

    [cannot] com.lastpass.LastPassHelper.plist (2015-04-14) [Support]

    com.spotify.webhelper.plist [running] (2016-09-11) [Support]

    Items in user login:

    iTunesHelper Application (/ Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)

    Dropbox application (/ Applications/Dropbox.app)

    Plug-ins Internet:

    FlashPlayer - 10.6: 22.0.0.209 - SDK 10.9 (2016-07-19) [Support]

    QuickTime Plugin: 7.7.3 (2016-07-22)

    AdobePDFViewerNPAPI: 15.017.20053 - SDK 10.11 (2016-08-03) [Support]

    AdobePDFViewer: 15.017.20053 - SDK 10.11 (2016-08-03) [Support]

    Flash Player: 22.0.0.209 - SDK 10.9 (2016-07-19) obsolete! Update

    Default browser: 601 - SDK 10.11 (2016-07-22)

    SharePointBrowserPlugin: 14.6.7 - SDK 10.6 (2016-08-25) [Support]

    nplastpass: 3.1.89 - SDK 10.10 (2015-04-14) [Support]

    Silverlight: 5.1.41105.0 - SDK 10.6 (2015-12-21) [Support]

    JavaAppletPlugin: Java 8 update 101 build 13 (2016-08-23) check the version of

    User Plug-ins internet:

    WebEx64: 1.0 - SDK 10.6 (2015-07-17) [Support]

    Web of Google Earth plugin: 7.1 (2013-10-07) [Support]

    Safari extensions:

    LastPass - LastPass - https://lastpass.com (2015-09-04)

    3rd party preference panes:

    Flash Player (2016-06-29) [Support]

    Java (2016-06-22) [Support]

    Time Machine:

    Time Machine not configured!

    Top of page process CPU:

    update_dyld_shared_cache 17%

    8% kernel_task

    6% WindowServer

    1% systemstatsd

    1% com.avast.daemon

    Top of page process of memory:

    905 MB update_dyld_shared_cache

    Kernel_task 421 MB

    152 MB Safari

    Dropbox 147 MB

    Mdworker (10) 127 MB

    Virtual memory information:

    137 MB free RAM

    3.86 GB used RAM (1.10 GB being cached)

    67 MB used Swap

    Diagnostic information:

    Sep 17, 2016, 07:50:32 self-test - spent

    I suggest you remove the Avast software according to the instructions of developers. You need anti-virus software on your Mac and often through other reports Avast here seems regarded as a cause of potential problems.

    If you do remove it, restart the Mac and the test. If it makes any difference once Avast is removed, you can always reinstall it if you feel that you need (even if you haven't).

  • TabGroups manager: new tabs from the previous group

    In older versions of Firefox I could open a new group with TGM and drag a new tab in that she has a new group with just this one new tab. Now (37 FF) a new group contains and controls all the tabs from the previous. No intependend the tabs in the new group management is possible.
    How can I create a new group of vacuum?

    You ask about an add-on. It is maybe the Addon or is more actively developed and supported.

    If I identified correctly this is the one

    But it seems to have been updated in 2011
    I'm getting server not found for support and homesite.

    I suggest that you learn about the Mozilla Addons site for advice if this is still active or suggested alternatives.

    Or just get your car among the hundreds of available alternatives here

Maybe you are looking for

  • Error of M602 with WJA 10.3 SR8

    I got about 80 printers installed in HOSTS and works very well. However two LJ M602 printers have "Device communications error" messages and any attempt to obtain information in the Config tab result in "error of reading the parameters of the device.

  • to change the Polish language to English in windows 7

    I am shankar duct of the Nepal, I recently brought a lenovo laptop g550 of polland having windows 7 Edition home premium, but the language is Polish, which I can't understand so I want to change language to English. give me an idea about it. in the r

  • BIS is encrypted push?

    Just a little question because I can't find right now: BIS push is encrypted or do you have to add an additional encryption layer in the payload?

  • BlackBerry Smartphones synchronization events created on the device

    Hello! I have a Blackberry Curve 8900 and use Entourage 2008 on my Mac for notes, calendar, and contacts of sycning.  Everything seems to sync both ways very well - outside of calendar events created on the device.  They synchronize with Entourage.  

  • BlackBerry Smartphones how can I send an MMS message?

    When I had the 5.0 OS on my Bold 9650 I could send messages MMS (messages with more than 160 characters). After I have updated to OS 6.0 I can send only messages SMS (messages with less than 160 characters). How can I send a text message with more th