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

Add support of the GROUP N BY, WITHIN GROUP ORDER BY #6346

Closed
Koc opened this issue Jun 25, 2016 · 0 comments
Closed

Add support of the GROUP N BY, WITHIN GROUP ORDER BY #6346

Koc opened this issue Jun 25, 2016 · 0 comments
Assignees

Comments

@Koc
Copy link

Koc commented Jun 25, 2016

It would be useful provide sorting before groupping using WITHIN GROUP ORDER BY and find top N results per group using GROUP N BY. For example we should display last 10 photos per album

SELECT FROM Photo p GROUP 10  BY p.album WITHIN GROUP ORDER BY p.createdAt DESC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants