- Edited
Hi all. I am a full-time teacher who dabbles in coding, mostly by reverse-engineering existing scripts ad looking at tutorials. Apologies in advance for anything dumb I say. :-)
So I have a table like so:
id judge student score
1 Superman Peter 58
2 Superman Stewie 54
3 Superman Meg 58
4 Batman Chris 58
5 Batman Brian 54
When I run a query to view just Superman's students, I get:
id judge student score
1 Superman Peter 58
2 Superman Stewie 54
3 Superman Meg 58
I would like to alert the judges to potential tied scores that need breaking. I'd love to highlight (or something) the duplicate column values under "score".... but it would need to find duplicates for JUST the current judge. In the above case, I don't need Chris's 58 to be highlighted.
id judge student score
1 Superman Peter <mark>58</mark>
2 Superman Stewie 54
3 Superman Meg <mark>58</mark>
...but at the same time, I don't need to highlight Stewie's 54 as a duplicate, since Brian's 54 belongs to a different judge.
I've enough research to tell me INNER JOIN would be part of the solution... but I am unsure how to implement it.
Many thanks.