It would be helpful if we could control the logic used for getting the records on the many side of [one-to-first] joins.
For example, choose an ORDER BY field: Grab the related record with the latest date, or the largest integer, etc. Specify ascending or descending order.
Even better, make it a user-defined ORDER BY sql clause, so that we can use specialized logic like:
- SQL CASE statement
- Multiple sorting fields, some ASC and some DESC
- NULLS FIRST or NULLS LAST (relatively unknown SQL functionality)
Related: Choose if join will be 1:1 or 1:Many