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

Group by support #136

Open
Jaymon opened this issue Aug 12, 2021 · 1 comment
Open

Group by support #136

Jaymon opened this issue Aug 12, 2021 · 1 comment

Comments

@Jaymon
Copy link
Owner

Jaymon commented Aug 12, 2021

This syntax?

Bar.query.select_foo_id().eq_che(11).group_foo_id().desc("MAX(boo)")

would result in SQL like:

SELECT "foo_id" FROM "bar_table" WHERE "che" = 11 GROUP BY "foo_id" ORDER BY MAX("boo") DESC;

Links

search

  • sql group by
@Jaymon
Copy link
Owner Author

Jaymon commented Oct 16, 2024

Might be useful to equalize behavior between SQLite and Postgres: postgresql windowing functions

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

1 participant