I am using SQLite. The system runs in an apartment complex and I wish to do a couple of counts grouped by the apartment numbers, one for 7 day average and one for 14 day average