I tried the following code but get an error message of
"You tried to execute a query that does not include the specified expression 'IDKey' as part of an aggregate function"
SELECT A1.IDKey,A2.IDKey, A1.Gender, A1.WtClass, A1.Division, A1.BodyWt, A1.Expr5 AS TotalWt,Count(A2.Epr5)AS WtClassRank...