greenrobot / greenDAO

greenDAO is a light & fast ORM solution for Android that maps objects to SQLite databases.
http://greenrobot.org/greendao/
12.63k stars 2.89k forks source link

How to use SUM and DISTINCT #518

Closed sandeshnaroju closed 7 years ago

sandeshnaroju commented 7 years ago

Hi, I have posted my question in StackOverflow(http://stackoverflow.com/questions/40635412/how-to-use-sum-and-dinstinct-with-greendao-querybuilder), but no one replied. May I know how to use SUM and DISTINCT with an example for each?

greenrobot-team commented 7 years ago

In your case I suggest doing a raw query as QueryBuilder does not support SUM. -ut