Added new stats and fixed test

This commit is contained in:
Finn 2017-12-14 20:30:44 +00:00
parent b9a57c7dcb
commit c4b7fa5102
5 changed files with 97 additions and 116 deletions

View file

@ -14,7 +14,8 @@ SELECT "value",
"distance",
"purchase_time",
DATE_TRUNC('hour', "purchase_time") AS "quantised_hours",
DATE_TRUNC('day', "purchase_time") AS "quantised_days"
DATE_TRUNC('day', "purchase_time") AS "quantised_days",
DATE_TRUNC('week', "purchase_time") AS "quantised_weeks"
FROM "transactions"
/);