Hi Duane
I have the idea now... below are my 3 related queries, how could I change
the result in query 1 OR 2 so that I don't have a tie? would it be a where
statement in query 1? i.e. WHERE
Verbal/Linguistic.Score=Logical/Mathematical.Score ADD 1
[As you can see my SQL skills are limited]
Query1: MITotals
SELECT Students.StudentID, [VL1]+[VL2]+[VL3]+[VL4]+[VL5]+[VL6]+[VL7]+[VL8]
AS [Verbal/Linguistic], [LM1]+[LM2]+[LM3]+[LM4]+[LM5]+[LM6]+[LM7]+[LM8] AS
[Logical/Mathematical], [VS1]+[VS2]+[VS3]+[VS4]+[VS5]+[VS6]+[VS7]+[VS8] AS
[Visual/Spacial], [IN1]+[IN2]+[IN3]+[IN4]+[IN5]+[IN6]+[IN7]+[IN8] AS
Interpersonal, [MU1]+[MU2]+[MU3]+[MU4]+[MU5]+[MU6]+[MU7]+[MU8] AS Musical,
[NA1]+[NA2]+[NA3]+[NA4]+[NA5]+[NA6]+[NA7]+[NA8] AS Naturalist,
[BK1]+[BK2]+[BK3]+[BK4]+[BK5]+[BK6]+[BK7]+[BK8] AS [Body/Kinesthetic],
[IR1]+[IR2]+[IR3]+[IR4]+[IR5]+[IR6]+[IR7]+[IR8] AS Intrapersonal
FROM Students INNER JOIN [MI Quiz Data] ON Students.StudentID = [MI Quiz
Data].StudentID;
Query2: MIUnionQuery
SELECT StudentID, "Verbal/Linguistic" AS Skill, [Verbal/Linguistic] AS Score
FROM MITotals
UNION ALL SELECT StudentID, "Logical/Mathematical" AS Skill,
[Logical/Mathematical] AS Score FROM MITotals
UNION ALL SELECT StudentID, "Visual/Spacial" AS Skill, [Visual/Spacial] AS
Score FROM MITotals;
UNION ALL SELECT StudentID, "Body/Kinesthetic" AS Skill, [Body/Kinesthetic]
AS Score FROM MITotals;
UNION ALL SELECT StudentID, "Musical" AS Skill, [Musical] AS Score FROM
MITotals;
UNION ALL SELECT StudentID, "Interpersonal" AS Skill, [Interpersonal] AS
Score FROM MITotals;
UNION ALL SELECT StudentID, "Intrapersonal" AS Skill, [Intrapersonal] AS
Score FROM MITotals;
UNION ALL SELECT StudentID, "Naturalist" AS Skill, [Naturalist] AS Score
FROM MITotals;
Query3: RankQuery
SELECT a1.StudentID, a1.Skill, Count(a2.Score) AS Rank
FROM MIUnionQuery AS a1, MIUnionQuery AS a2
WHERE (((a1.Score)>=[a2].[Score] Or (a1.Score)=[a2].[Score]))
GROUP BY a1.StudentID, a1.Skill, a1.Score;
Cheers
Tanya