Roland Tanglao
About

android - SQLite group by/count hours, days, weeks, year - Stack Overflow

Nov 13, 2022

Discovered: Nov 13, 2022 10:20 android - SQLite group by/count hours, days, weeks, year - Stack Overflow <— yay for sqlite <— QUOTE SELECT strftime('%m', timestamp), count(*) FROM Data WHERE timestamp >= strftime('%s', '2012-01-01 00:00:00') AND timestamp < strftime('%s', '2013-01-01 00:00:00') GROUP BY strftime('%m', timestamp); <– see also How to group by week no and get start date and end date for the week number in Sqlite?

Leave a comment on github

Roland Tanglao

  • Roland Tanglao
  • roland@rolandtanglao.com
  • rtanglao
  • rtanglao

flickr.com/roland, twitter.com/rtanglao #firefox #thunderbird