i have a competition DB. But i want to calculate the winner of the game. you get points the highest one wins but if there is a draw then the time has to be checked as well. how can I do that.
Can you post sample data from your table? I will need 2 sets:
A. Starting sample data that is in your tables. Include table/field names and enough data to cover all cases.
B. Expected results based on the data you provide in A. Show me what you expect to be returned as the final output using the sample data you initially provide.
this is a sample database.
i want in my report for each level placed from 1st to the last based on the score. but if there is a tie there has to be looked to the time and fastes time wins.
ive made some function for the ranking, it is called in your query. also made changes to the query to sort correctly, by score (descending) and time (ascending).