Hello!
I've attached the structure for my DB. I'm making teams tracker for long races and I have first problem here. I need to get teams ordered by laps done and total time and split in 1 query to display it. Here is my query, but it shows only data for 1st lap. On the next lap nothing changes in results and I have ldone = 1 for every row. I don't wonna use trigger but if no one will know how to fix it I will add some columns to teams table and with triggers or by InSim I will put there data.
I've attached the structure for my DB. I'm making teams tracker for long races and I have first problem here. I need to get teams ordered by laps done and total time and split in 1 query to display it. Here is my query, but it shows only data for 1st lap. On the next lap nothing changes in results and I have ldone = 1 for every row. I don't wonna use trigger but if no one will know how to fix it I will add some columns to teams table and with triggers or by InSim I will put there data.