From a09f63537eeab002ef8149a365dd584a86b2dd54 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Mon, 11 Jul 2022 04:58:56 -0400 Subject: [PATCH] report how many usages there have been --- analytics/tts_results.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 analytics/tts_results.sql diff --git a/analytics/tts_results.sql b/analytics/tts_results.sql new file mode 100644 index 0000000000..9948c93b94 --- /dev/null +++ b/analytics/tts_results.sql @@ -0,0 +1,18 @@ +-- noinspection SqlDialectInspectionForFile +-- noinspection SqlNoDataSourceInspectionForFile +-- noinspection SqlResolveForFile + +-- +-- Usage count in the past 24 hours +-- +select count(*) as use_count +from tts_results +where created_at > ( CURDATE() - INTERVAL 1 DAY ) + +-- +-- Usage count in the past week +-- +select count(*) as use_count +from tts_results +where created_at > ( CURDATE() - INTERVAL 7 DAY ) +