Created
January 15, 2021 15:52
-
-
Save jesuino/1ffb2808613e92352d6273cf74fb9505 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
processid, | |
nodeid as "NodeId", | |
DATEDIFF('SECOND', DATE '1970-01-01', log_date) AS "sec", | |
count(nodeid) as "total" | |
from | |
NodeInstanceLog | |
where | |
datediff('SECOND', log_date, current_timestamp) < 60 | |
group by | |
processid, | |
nodeid, | |
DATEDIFF('SECOND', DATE '1970-01-01', log_date) | |
order by | |
DATEDIFF('SECOND', DATE '1970-01-01', log_date) | |
DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment