Skip to content

Instantly share code, notes, and snippets.

@nicolascb
Created March 8, 2018 12:30
Show Gist options
  • Save nicolascb/84e565284bbdee49c0c4d6e0bb77d6a1 to your computer and use it in GitHub Desktop.
Save nicolascb/84e565284bbdee49c0c4d6e0bb77d6a1 to your computer and use it in GitHub Desktop.
SQLITE: Contar linhar agrupando por dia formatando unixtimestamp.
select strftime("%Y-%m-%d",datetime(createdate,'unixepoch')),count(*) as total from calls where pendente=1 group by strftime("%Y-%m-%d",datetime(createdate,'unixepoch'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment