0
How to do a query to return the result below in HQL
Upshot
| quantidade | quantidade erro | desc |
| 2 | 1 | TESTE 1 |
| 3 | 2 | TESTE 2 |
| 1 | 1 | TESTE 3 |
Table
| DESC | ERRO |
| TESTE 1 | 0 |
| TESTE 1 | 1 |
| TESTE 2 | 1 |
| TESTE 2 | 0 |
| TESTE 2 | 1 |
| TESTE 3 | 1 |
I honestly don’t understand the logic of the consultation. You could better explain the purpose of the query and/or you have an SQL that generates this query, so we can guide us in the construction of HQL/JPQL?
– Dherik