Moved and added data for graphs etc. for org dashboard

This commit is contained in:
Finn 2019-07-12 13:39:37 +01:00
parent eeb7a852be
commit 8f44e26a6d
No known key found for this signature in database
GPG key ID: 7455B4B17685B598
6 changed files with 242 additions and 2 deletions

View file

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