Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use "GROUP BY" #164

Closed
LiJohnson opened this issue Dec 5, 2014 · 3 comments
Closed

How can I use "GROUP BY" #164

LiJohnson opened this issue Dec 5, 2014 · 3 comments

Comments

@LiJohnson
Copy link

AbstractDao.query not found any more ?!

@greenrobot
Copy link
Owner

GROUP BY is SQL-ish, so stick to SQL. greenDAO is about entities, where GROUP BY is unsupported.

@adrian011494
Copy link

adrian011494 commented May 23, 2016

This is the solution: http://stackoverflow.com/questions/27906592/greendao-groupby-clause
List<Taxi> list = daoSession.getDaoTaxi().queryBuilder().where(new WhereCondition.StringCondition("1 GROUP BY cant_aciento")).list();

@AlexeyPoldeo
Copy link

With all my respect, it's silly to limit the initial SQL functionality because of ideological considerations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants