Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.
Select t.TrackOrder, RTRIM(r.No) as CarNumber, p.ResultItemID, p.PassingTime, p.ElapsedTime, p.PassingID, p.DecoderID, p.LeaderLap, p.LapCount From Passings p with (nolock) inner join Results r with (nolock) ON p.RunID=r.RunID AND p.ResultItemID=r.ResultID Inner Join Timelines t on t.DecoderID=p.DecoderID AND t.LoopID=p.LoopID Where p.Pit = 0 And passingtime in (SELECT max(i.passingtime) FROM passings i with (NOLOCK) WHERE i.ResultItemID = p.ResultItemID AND i.passingtime >=0 AND i.lapcount>0 AND i.Deleted=0 AND p.Deleted=0 AND i.RunID=6 AND p.RunID=6 AND i.DecoderID<> 0)--(Select Top 1 DecoderID From Timelines where IsLapCounter=1)) And p.RunID=6 And r.RunID=6 Group by p.ResultItemID, p.PassingTime, p.ElapsedTime, p.PassingID, p.DecoderID, p.LapCount, p.LeaderLap, t.TrackOrder, r.No, r.RaceRank Order By t.TrackOrder Desc, p.ElapsedTIme
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.