I have found few questions related to this issue in SO, but did not help me much.I want to construct a query in Android using GreenDao library, query should grab all the rows containing particular phonenumber in descending order of datetime and I also want to group them by group name. My query:
List<activity> activities = activityDao.queryBuilder().where(Properties.Contact_number.eq(phonenumber)).orderDesc(Properties.Date_time).build().list();
How to include GROUP BY in above query so as to group the rows by group_name
(I have group_name as column in table)?
I did not find any GROUP BY method in GreenDao,not sure if I am correct.