What row is returned by a group by in a query that has joins? (the default behavior in MySql)
*I looked around and saw several solutions for how to control which row comes back by joining (here). But what is the default behaviour? As mentioned else where the orderby doesn't seem to have an effect. I physically reversed the rows in one of the tables in question but that didn't seem to have an effect.
I'm trying to debug an existing horrific query in an existing system and multi-join group by query seems to pick the row that is required pretty much all the time. There is an edge case that I am trying to deal with.