Is there an easy way to do this in a union qry?
I am trying to create a qry on a single table to select the Captain from the Team based on Goals, and then associate that result with each record. Below illustration makes the point clearer I hope. Is this doable? Any help would be much appreciated. (table would have 100k+ records)
Thanks
Table:
team, player, Goals
T1, P1,12
T1, P2,7
T1, P3, 4
T2, P4, 11
T2, P5, 18
Desired Qry results:
team, player, Goals, Captain,
T1, P1,12, P1
T1, P2,7, P1
T1, P3, 4, P1
T2, P4, 11, P5
T2, P5, 18, P5
I am trying to create a qry on a single table to select the Captain from the Team based on Goals, and then associate that result with each record. Below illustration makes the point clearer I hope. Is this doable? Any help would be much appreciated. (table would have 100k+ records)
Thanks
Table:
team, player, Goals
T1, P1,12
T1, P2,7
T1, P3, 4
T2, P4, 11
T2, P5, 18
Desired Qry results:
team, player, Goals, Captain,
T1, P1,12, P1
T1, P2,7, P1
T1, P3, 4, P1
T2, P4, 11, P5
T2, P5, 18, P5