# Come ottenere il numero di soluzioni per utente utilizzando Data Explorer?

**URL:** <https://meta.discourse.org/t/how-to-get-number-of-solutions-per-users-using-data-explorer/146253>\
**Category:** Data & reporting\
**Tags:** sql-query\
**Created:** [31 Marzo 2020, 9:28am UTC](https://meta.discourse.org/t/how-to-get-number-of-solutions-per-users-using-data-explorer/146253 "2020-03-31T09:28:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [31 Marzo 2020, 5:01pm UTC](https://meta.discourse.org/t/how-to-get-number-of-solutions-per-users-using-data-explorer/146253/2 "2020-03-31T17:01:24Z")

</div>

> [@Konrad\_Sopala](#):
>
> Qual è la query per ottenere il numero di soluzioni per utente?

Quando un utente risolve un argomento, viene aggiunta una voce alla tabella `user_actions` con il suo `action_type` impostato su `15`.

La seguente query dovrebbe fornirti ciò che stai cercando:

```sql
SELECT
user_id,
COUNT(1) AS solved_count
FROM user_actions
WHERE action_type = 15
GROUP BY user_id
ORDER BY solved_count DESC

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-get-number-of-solutions-per-users-using-data-explorer/146253)._
