You guys have been great! Thank you for all your help. I am learning as I go...
So now that I have a working SQL statement for a winner's list, I need to have a new report that shows ONLY TIE score in the top 3 from the winner's list so that I can quickly see tie problems before giving trophies out.
Here is the sample data:
Here is my working winner's list SQL statement
And here is the current results:
What I need is just a list of ties within the above results to that I can identify problems quickly before trophies are handed out:
I understand I need to use a HAVING sql statement. I just don't understand enough to figure out where that goes.
Be patient! I'm a noob and a bit stupid.
So now that I have a working SQL statement for a winner's list, I need to have a new report that shows ONLY TIE score in the top 3 from the winner's list so that I can quickly see tie problems before giving trophies out.
Here is the sample data:
Code:
[B][U]ID Class Score DSQ BestOf[/U][/B] 11 ACCF 81 False 0 2 ACCF 62 True 0 6 ACCF 62 False 0 12 ACCF 62 False 0 16 ACCF 62 False 0 3 ACCF 40 True 0 13 ACCF 40 False 0 14 ACCF 24 False 0 4 ACCF 21 False 0 1 ACCF 0 False 0 10 AM 101 False 1 9 AM 100 False 2 5 AM 81 True 0 15 AM 80 False 0 7 AM 40 False 0 17 AM 40 False 0 8 AM 23 False 0 18 AM 20 False 0
Code:
SELECT Dupe.Class, Dupe.DSQ, Dupe.Score, Dupe.* FROM Data AS Dupe WHERE (((Dupe.DSQ)=False) AND ((Dupe.BestOf)=0) AND ((Dupe.Score)>0 And (Dupe.Score) In (SELECT TOP 3 Data.Score FROM Data WHERE ((Data.Class=Dupe.Class AND Data.DSQ=False AND Data.BestOf=0 AND Data.Score>0)) ORDER BY Data.Score DESC))) ORDER BY Dupe.Class, Dupe.Score DESC;
Code:
[B][U]ID Class Score DSQ BestOf[/U][/B] 11 ACCF 81 False 0 6 ACCF 62 False 0 12 ACCF 62 False 0 16 ACCF 62 False 0 15 AM 80 False 0 7 AM 40 False 0 17 AM 40 False 0
Code:
[B][U]ID Class Score DSQ BestOf[/U][/B] 6 ACCF 62 False 0 12 ACCF 62 False 0 16 ACCF 62 False 0 7 AM 40 False 0 17 AM 40 False 0
Be patient! I'm a noob and a bit stupid.
Comment