Show used processes: Difference between revisions

From SMTX Wiki
Jump to navigation Jump to search
No edit summary
 
m 1 revision imported
 
(No difference)

Latest revision as of 22:44, 25 May 2020

Use this query to get a list of IDs of processes that had a ticket started in the last 6 months:

   select distinct OriginalProcessId from processinstance where datediff(month,datestarted,getdate()) > 5

Oracle

  select distinct OriginalProcessId from processinstance where sysdate - datestarted > 180