You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm new to sea-orm and I ran into the following problem. I have two tables user and user_position with one to many relationship.
I would like to select user with the latest user_position for each user. This was my approach:
I quickly realised that aggregate functions are not allowed in JOIN conditions as per the error returned:
Query Error: error returned from database: aggregate functions are not allowed in JOIN conditions
How would I fix this query?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions