-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
SELECT date, countMerge(count) AS count | ||
SELECT date, uniqExactMerge(count) AS count | ||
FROM analytics.tickets_per_day | ||
WHERE guild_id = ? | ||
GROUP BY date | ||
ORDER BY date desc | ||
WITH FILL STEP toIntervalDay(-1) | ||
WITH FILL FROM today() STEP toIntervalDay(-1) | ||
LIMIT ?; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
SELECT countMerge(count) AS total_count | ||
FROM analytics.total_open_ticket_count | ||
WHERE guild_id = ?; | ||
SELECT count AS total_count | ||
FROM analytics.total_open_ticket_count(guild_id = ?); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
SELECT countMerge(count) AS total_count | ||
SELECT uniqExactMerge(count) AS total_count | ||
FROM analytics.total_ticket_count | ||
WHERE guild_id = ?; |