Update umami sql queries
This commit is contained in:
@@ -23,8 +23,8 @@ SELECT
|
||||
*
|
||||
FROM
|
||||
crosstab(
|
||||
'SELECT "group", sim_type, count::text FROM weekly_sim_submit_count_v2 ORDER BY 1, 2',
|
||||
'SELECT DISTINCT sim_type FROM weekly_sim_submit_count_v2 ORDER BY 1'
|
||||
'SELECT "group", sim_type, count::text FROM weekly_sim_submit_count WHERE sim_type <> ''lice-network'' AND sim_type <> ''lice-delousing'' ORDER BY 1, 2',
|
||||
'SELECT DISTINCT sim_type FROM weekly_sim_submit_count WHERE sim_type <> ''lice-network'' AND sim_type <> ''lice-delousing'' ORDER BY 1'
|
||||
) AS ct (
|
||||
group_name text,
|
||||
lice bigint,
|
||||
@@ -33,3 +33,9 @@ FROM
|
||||
virus bigint,
|
||||
watercontact bigint
|
||||
)
|
||||
WHERE
|
||||
(lice + sedimentation + transport + virus + watercontact) <> 0
|
||||
AND "group" <> '@oceanbox.io'
|
||||
ORDER BY
|
||||
(lice + sedimentation + transport + virus + watercontact) DESC
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user