Thunderbird/Support/Google Big Query Sample SQL queries: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(add divs :-))
Line 1: Line 1:
__TOC__
__TOC__
== 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]
<div class="mw-collapsible mw-collapsed" data-expandtext="show query">
<pre>
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'
;
</pre>
</div>
== 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]
Line 16: Line 33:
</pre>
</pre>
</div>
</div>
== Count All Thunderbird Desktop Questions in 2024 ==
== Count All Thunderbird Desktop Questions in 2024 ==
<div class="mw-collapsible mw-collapsed" data-expandtext="show query">
<div class="mw-collapsible mw-collapsed" data-expandtext="show query">

Revision as of 19:24, 28 May 2025

Count All Solved Android Desktop Questions in 2024

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

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'
;