Created
August 14, 2024 12:56
-
-
Save michael-simons/86f28cd8ae1dd70b632fff5fd8b1a7a0 to your computer and use it in GitHub Desktop.
new kilometers from Strava x wanderer.earth on a german GDPR export with duckdb
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 year(strptime("Aktivitätsdatum", '%d.%m.%Y, %H:%M:%S')) as year, round(sum(regexp_extract("Aktivitätsbeschreibung", '(\d+(?:\.\d+)*) new kilometer', 1)::double), 2) as new from 'activities.csv' where "Aktivitätsbeschreibung" like '%new kilometers%' group by all order by year; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment