Benutzer-Werkzeuge

Webseiten-Werkzeuge


Plugin installed incorrectly. Rename plugin directory 'swiftmail.backup' to 'swiftmail'.
software:dashboard:analyses:activity_analyses_oracle

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
software:dashboard:analyses:activity_analyses_oracle [2016/04/18 11:23]
oliver.schirach [Anzahl an erstellten, beendeten und offenen Aktivitäten einer bestimmten Prozessdefinition]
software:dashboard:analyses:activity_analyses_oracle [2021/07/01 09:52] (aktuell)
Zeile 309: Zeile 309:
 <code sql> <code sql>
 SELECT ​ SELECT ​
-CONCAT(CONCAT(SUBSTR(to_char(to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​),​ '​Month'​),​1,​3),'​ '​),​EXTRACT(YEAR FROM to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​))) AS Monat, +activity.name AS Aufgabe, 
-activity."​name" ​AS Aufgabe, +CAST((avg((((to_date(SUBSTR(activity.end,​0,​(INSTR(activity.end,​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​) ​ - DATE '​1970-01-01'​ ) * 60 * 60 * 24)  - ((to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​) ​ - DATE '​1970-01-01'​ ) * 60 * 60 * 24) ))/3600) AS DECIMAL(10,​1)) AS "​Durschnittliche Durchlaufszeit",​ 
-CAST((avg((((to_date(SUBSTR(activity."end",​0,​(INSTR(activity."end", '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​) ​ - date '​1970-01-01'​ ) * 60 * 60 * 24)  - ((to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​) ​ - date '​1970-01-01'​ ) * 60 * 60 * 24) ))/3600) AS DECIMAL(10,​1)) AS "​Durschnittliche Durchlaufszeit",​ +CAST((MIN((((to_date(SUBSTR(activity.end,​0,​(INSTR(activity.end,​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​) ​ - DATE '​1970-01-01'​ ) * 60 * 60 * 24)  - ((to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​) ​ - DATE '​1970-01-01'​ ) * 60 * 60 * 24))/3600)) AS DECIMAL(10,​1)) "​Minimale Durchlaufszeit",​ 
-CAST((MIN((((to_date(SUBSTR(activity."end",​0,​(INSTR(activity."end", '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​) ​ - date '​1970-01-01'​ ) * 60 * 60 * 24)  - ((to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​) ​ - date '​1970-01-01'​ ) * 60 * 60 * 24))/3600)) AS DECIMAL(10,​1)) "​Minimale Durchlaufszeit",​ +CAST((MAX((((to_date(SUBSTR(activity.end,​0,​(INSTR(activity.end,​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​) ​ - DATE '​1970-01-01'​ ) * 60 * 60 * 24)  - ((to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​) ​ - DATE '​1970-01-01'​ ) * 60 * 60 * 24))/3600)) AS DECIMAL(10,​1)) ​ AS "​Maximale Durchlaufszeit"​
-CAST((MAX((((to_date(SUBSTR(activity."end",​0,​(INSTR(activity."end", '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​) ​ - date '​1970-01-01'​ ) * 60 * 60 * 24)  - ((to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​) ​ - date '​1970-01-01'​ ) * 60 * 60 * 24))/3600)) AS DECIMAL(10,​1)) ​ AS "​Maximale Durchlaufszeit"​+
 FROM view_activity activity FROM view_activity activity
 INNER JOIN INNER JOIN
-view_instance inst on activity.instanceId=inst.id +view_instance inst ON activity.instanceId=inst.id 
-WHERE activity."end" ​IS NOT NULL+WHERE activity.end IS NOT NULL
 AND activity."​start"​ IS NOT NULL AND activity."​start"​ IS NOT NULL
-AND activity."type" ​IN ('​K','​S'​) +AND activity.type IN ('​K','​S'​) 
-AND (((to_date(SUBSTR(activity."end",​0,​(INSTR(activity."end", '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​) ​ - date '​1970-01-01'​ ) * 60 * 60 * 24) -((to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​) ​ - date '​1970-01-01'​ ) * 60 * 60 * 24)) > 0  +AND (((to_date(SUBSTR(activity.end,​0,​(INSTR(activity.end,​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​) ​ - DATE '​1970-01-01'​ ) * 60 * 60 * 24) -((to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​) ​ - DATE '​1970-01-01'​ ) * 60 * 60 * 24)) > 0  
-AND inst.definitionname ​'NAME DER PROZESSDEFINITION'+AND inst.definitionname ​like 'GL-01%'
 GROUP BY  GROUP BY 
-EXTRACT(YEAR FROM to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​)), ​ +activity.name 
-CONCAT(CONCAT(SUBSTR(to_char(to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​),​ '​Month'​),​1,​3),'​ '​),​EXTRACT(YEAR FROM to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​))),​ +order by activity.name 
-activity."​name"​, +
-EXTRACT(YEAR FROM to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​)),​ +
-EXTRACT(MONTH FROM to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​)) +
-ORDER BY  +
-EXTRACT(YEAR FROM to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​)),​ +
-EXTRACT(MONTH FROM to_date(SUBSTR(activity."​start",​0,​(INSTR(activity."​start",​ '​.',​ -1)-1)), '​DD-MM-YY HH24:​MI:​SS'​))+
 </​code>​ </​code>​
  
software/dashboard/analyses/activity_analyses_oracle.1460971429.txt.gz · Zuletzt geändert: 2021/07/01 10:00 (Externe Bearbeitung)