My hobby is sailing and I have two organisations where the task of re-building websites has fallen to me (they call it volunteering). Both involve a lot of yacht racing.
While it is easy to put results into order with a MYSQL query from PHP I am trying to work out how to handle situations where a deal heat occurs in a race. The second instance of the same conflict is where a particular event consists of three races and overall places are determined on the best two placings achieved out of the three. This is where it is most likely that two competitors achieve identical points and a simple select ...order by ... query would be unfair. Just to add to the complexity, one of the organisations has a super table of events leading to the seasonal winners and other placings.
I am happy to amend the schemas but I am the type who wants to know how to get down the tree before climbing up so knowing the end trick to solve this one will inform my processes.
PS I have tried loads of combinations of search words to try to find the solution before asking here.