prom icon indicating copy to clipboard operation
prom copied to clipboard

Group by support

Open Jaymon opened this issue 4 years ago • 1 comments

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 avatar Aug 12 '21 20:08 Jaymon

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

Jaymon avatar Oct 16 '24 06:10 Jaymon