Created
January 4, 2024 10:33
-
-
Save matjaz/7d8c7d6d9bb5a7d310b1de18e0e0000f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 * FROM (SELECT "Časovna značka", | |
LEAD("Časovna značka") OVER (ORDER BY "Časovna značka") AS naslednji, | |
strptime("Časovna značka", '%Y-%m-%dT%H:%M')::DATETIME AS time1, | |
strptime(naslednji, '%Y-%m-%dT%H:%M')::DATETIME AS time2, | |
date_diff('minutes', time1, time2) AS trajanje, | |
Blok,"P+ Prejeta delovna moč" FROM '15minMeritve2023-01-01-2023-12-31.csv' ORDER BY "trajanje" DESC) WHERE trajanje > 15 |
This file contains hidden or 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 count(*) FROM '15minMeritve2023-01-01-2023-12-31.csv' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment