Replies: 1 comment 1 reply
-
DB[:table].
left_join(DB[:table2].
select_group(:id).
select_append{max(:amount)},
:id=>:id).
where{{table[:test]=>true}} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I cannot find examples, which show how to join a derived table.
I.e. how to build following SQL with DSL:
thanks!
best regards
Beta Was this translation helpful? Give feedback.
All reactions