J
John Petty
I am having trouble trying to create a query to select the largest value in a
specific field for each record in a table.
I have created a crosstab query and it works fine.
WheelID <>
28 2
30 1
31 1
33 1
34 4
35 1
36 1
But when the crosstab results in a select query I am getting the following
WheelID Wheel Name Proj. No. <> ProjectID
28 Test Wheel 01 GQP-2444 2 13
28 Test Wheel 01 1255 2 14
28 Test Wheel 01 GQP-2444 2 12
30 Test Wheel 02 GQP-1588 1 42
31 Test Wheel 03 GQP-2866 1 43
34 Test Wheel 05 1344 4 8
35 Test Wheel 06 1512 1 44
36 Test Wheel 07 GQP-2222 1 45
As you can see, the Test Wheel 1 (WheelID 28) is showing iteration 2, 3
times with 3 different projectID's (which is incorrect since each iteration
is a separate projectID and the iteration cannot be duplicated in any one
Wheel)
Can someone help me understand what I am doing wrong and how ot fix it?
Thanks,
John Petty
specific field for each record in a table.
I have created a crosstab query and it works fine.
WheelID <>
28 2
30 1
31 1
33 1
34 4
35 1
36 1
But when the crosstab results in a select query I am getting the following
WheelID Wheel Name Proj. No. <> ProjectID
28 Test Wheel 01 GQP-2444 2 13
28 Test Wheel 01 1255 2 14
28 Test Wheel 01 GQP-2444 2 12
30 Test Wheel 02 GQP-1588 1 42
31 Test Wheel 03 GQP-2866 1 43
34 Test Wheel 05 1344 4 8
35 Test Wheel 06 1512 1 44
36 Test Wheel 07 GQP-2222 1 45
As you can see, the Test Wheel 1 (WheelID 28) is showing iteration 2, 3
times with 3 different projectID's (which is incorrect since each iteration
is a separate projectID and the iteration cannot be duplicated in any one
Wheel)
Can someone help me understand what I am doing wrong and how ot fix it?
Thanks,
John Petty