Skip to content

Instantly share code, notes, and snippets.

@philroche
Created October 25, 2016 08:28
Show Gist options
  • Save philroche/01a07a2021ca76b9179ee627633e6a3a to your computer and use it in GitHub Desktop.
Save philroche/01a07a2021ca76b9179ee627633e6a3a to your computer and use it in GitHub Desktop.
select strftime("%d/%m",facts.start_time) as start_date,facts.start_time, facts.end_time, activities.name, cast((strftime('%s',facts.end_time)-strftime('%s',facts.start_time)) AS real)/60/60 AS elapsed FROM facts, activities where facts.activity_id = activities.id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment