Thunderbird/Support/Google Big Query Sample SQL queries: Difference between revisions
< Thunderbird | Support
Jump to navigation
Jump to search
(add combined 2024 query) |
|||
| (8 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
__TOC__ | __TOC__ | ||
== 2025-09-22 Combined SUMO Answer rate for both TB Desktop and Android == | |||
* staff only [https://console.cloud.google.com/bigquery?ws=!1m7!1m6!12m5!1m3!1smoz-fx-sumo-prod!2sus-central1!3s0008cda2-52ed-4801-89e5-a7db5d4a26e7!2e1 link to Google Big Query] | |||
* results 1983/15754 = 12.6% solved rate: | |||
<pre> | |||
tb_desktop_and_android_2024_aaq solved_tb_desktop_android_2024 | |||
15754 1983 | |||
</pre> | |||
===Working query=== | |||
<div class="mw-collapsible mw-collapsed" data-expandtext="show query"> | |||
<pre> | |||
SELECT | |||
COUNT(*) as tb_desktop_and_android_2024_aaq, COUNTIF(is_solved is true) AS solved_tb_desktop_android_2024 | |||
FROM | |||
sumo.metrics_thunderbird_questions | |||
WHERE | |||
EXTRACT(YEAR | |||
FROM | |||
DATETIME(created_utc)) = 2024 | |||
AND product LIKE '%thunderbird%' | |||
; | |||
</pre> | |||
</div> | |||
== 2025-08-18 queries have changed to project 'sumo-prod', folder 'moz-fx-sumo-prod' and dataset is 'sumo'== | |||
* The pre August 18, 2025 queries on the rest of this page will no longer work when <code>moz-fx-data-sumo-prod</code> is deleted in a few days or months therefore :-) | |||
* They will work if you change the project (top left corner of the screen) to <code>sumo-prod</code> and the folder to <code>moz-fx-sumo-prod</code> and the table to <code>sumo.metrics_thunderbird_questions</code> <-- This is left as an exercise for the reader :-) | |||
===Working query=== | |||
* [https://console.cloud.google.com/bigquery?ws=!1m7!1m6!12m5!1m3!1smoz-fx-sumo-prod!2sus-central1!3sf5d1cd21-5978-4b69-874f-f0a02d503f8a!2e1 staff only link to BQ query] | |||
<pre> | |||
SELECT * FROM `sumo.metrics_thunderbird_questions` LIMIT 1000 | |||
</pre> | |||
== Count All Solved Android Desktop Questions in 2024 == | == Count All Solved Android Desktop Questions in 2024 == | ||
* [https://console.cloud.google.com/bigquery?ws=!1m7!1m6!12m5!1m3!1smoz-fx-data-sumo-prod!2snorthamerica-northeast1!3s1f1e6c74-be25-48e4-afa9-72f0704828c0!2e1 staff only link to BQ query] | * [https://console.cloud.google.com/bigquery?ws=!1m7!1m6!12m5!1m3!1smoz-fx-data-sumo-prod!2snorthamerica-northeast1!3s1f1e6c74-be25-48e4-afa9-72f0704828c0!2e1 staff only link to BQ query] | ||
* results: | * results (4% solved): | ||
<pre> | <pre> | ||
tb_android_2024_aaq,solved_tb_android_2024 | tb_android_2024_aaq,solved_tb_android_2024 | ||
| Line 24: | Line 57: | ||
== Count All Solved Thunderbird Desktop Questions in 2024 == | == Count All Solved Thunderbird Desktop Questions in 2024 == | ||
* [https://console.cloud.google.com/bigquery?ws=!1m7!1m6!12m5!1m3!1smoz-fx-data-sumo-prod!2snorthamerica-northeast1!3s3adc7726-d692-4123-8a42-50042d481727!2e1 staff only link to BQ query] | * [https://console.cloud.google.com/bigquery?ws=!1m7!1m6!12m5!1m3!1smoz-fx-data-sumo-prod!2snorthamerica-northeast1!3s3adc7726-d692-4123-8a42-50042d481727!2e1 staff only link to BQ query] | ||
* results (13% solved): | |||
<pre> | |||
tb_desktop_2024_aaq,solved_tb_desktop_2024 | |||
15506,1970 | |||
</pre> | |||
<div class="mw-collapsible mw-collapsed" data-expandtext="show query"> | <div class="mw-collapsible mw-collapsed" data-expandtext="show query"> | ||
<pre> | <pre> | ||
Latest revision as of 03:09, 23 September 2025
2025-09-22 Combined SUMO Answer rate for both TB Desktop and Android
- staff only link to Google Big Query
- results 1983/15754 = 12.6% solved rate:
tb_desktop_and_android_2024_aaq solved_tb_desktop_android_2024 15754 1983
Working query
SELECT
COUNT(*) as tb_desktop_and_android_2024_aaq, COUNTIF(is_solved is true) AS solved_tb_desktop_android_2024
FROM
sumo.metrics_thunderbird_questions
WHERE
EXTRACT(YEAR
FROM
DATETIME(created_utc)) = 2024
AND product LIKE '%thunderbird%'
;
2025-08-18 queries have changed to project 'sumo-prod', folder 'moz-fx-sumo-prod' and dataset is 'sumo'
- The pre August 18, 2025 queries on the rest of this page will no longer work when
moz-fx-data-sumo-prodis deleted in a few days or months therefore :-) - They will work if you change the project (top left corner of the screen) to
sumo-prodand the folder tomoz-fx-sumo-prodand the table tosumo.metrics_thunderbird_questions<-- This is left as an exercise for the reader :-)
Working query
SELECT * FROM `sumo.metrics_thunderbird_questions` LIMIT 1000
Count All Solved Android Desktop Questions in 2024
- staff only link to BQ query
- results (4% solved):
tb_android_2024_aaq,solved_tb_android_2024 311,12
SELECT
COUNT(*) as tb_android_2024_aaq, COUNTIF(is_solved is true) AS solved_tb_android_2024
FROM
moz-fx-data-sumo-prod.mzla.metrics_thunderbird_questions
WHERE
EXTRACT(YEAR
FROM
DATETIME(created_utc)) = 2024
AND product LIKE 'thunderbird-android'
;
Count All Solved Thunderbird Desktop Questions in 2024
- staff only link to BQ query
- results (13% solved):
tb_desktop_2024_aaq,solved_tb_desktop_2024 15506,1970
SELECT
COUNT(*) as tb_desktop_2024_aaq, COUNTIF(is_solved is true) AS solved_tb_desktop_2024
FROM
moz-fx-data-sumo-prod.mzla.metrics_thunderbird_questions
WHERE
EXTRACT(YEAR
FROM
DATETIME(created_utc)) = 2024
AND product LIKE 'thunderbird'
;
Count All Thunderbird Desktop Questions in 2024
SELECT
COUNT (*)
FROM
moz-fx-data-sumo-prod.mzla.metrics_thunderbird_questions
WHERE
EXTRACT(YEAR
FROM
DATETIME(created_utc)) = 2024
AND product LIKE 'thunderbird'
;