I am trying to create the following query in Ormlite:
SELECT Column1,
COUNT(Column2),SUM(Column2)
FROM Table
WHERE Column3 = 1
GROUP BY Column1;
I use QueryBuilder for this, but I cannot figure out how to get the amount and still have one complete list as a result.
What will be the type of this list of results? I cannot do this List, since the sum and number of columns are not columns in the table.
source
share