I understand that the topic title is vague as buzzwords can get so let me give some sample data below:
Table "TARGET"
PLATE COLOR UTENSIL
1 RED FORK
1 RED SPOON
1 BLUE FORK
1 BLUE FORK
2 BLUE SPOON
3 BLUE FORK
3 RED FORK
4 BLUE FORK
4 BLUE SPOON
4 BLUE SPOON
4 RED FORK
4 RED SPOON
5 RED FORK
5 BLUE SPOON
5 RED FORK
Table "RESULT"
PLATE MATCHES
1 1
4 2
5 1
From the data I gave above, my aim is to match a fork and a spoon with the opposite color on the same plate no.
So, what I have above is:
- I have 1 match made on plate 1 (blue fork & red spoon)
- I have no matches on plate 2 (a lonely blue spoon)
- I have no matches on plate 3 (both are forks)
- I have 2 matches on plate 4 (a blue fork & red spoon and a red fork & blue spoon)
- and 1 match made on plate 5 (red fork & blue spoon)
What I want to know is how do I implement this kind of conditional query in MS access design view?
Any help would be very deeply appreciated!
Table "TARGET"
PLATE COLOR UTENSIL
1 RED FORK
1 RED SPOON
1 BLUE FORK
1 BLUE FORK
2 BLUE SPOON
3 BLUE FORK
3 RED FORK
4 BLUE FORK
4 BLUE SPOON
4 BLUE SPOON
4 RED FORK
4 RED SPOON
5 RED FORK
5 BLUE SPOON
5 RED FORK
Table "RESULT"
PLATE MATCHES
1 1
4 2
5 1
From the data I gave above, my aim is to match a fork and a spoon with the opposite color on the same plate no.
So, what I have above is:
- I have 1 match made on plate 1 (blue fork & red spoon)
- I have no matches on plate 2 (a lonely blue spoon)
- I have no matches on plate 3 (both are forks)
- I have 2 matches on plate 4 (a blue fork & red spoon and a red fork & blue spoon)
- and 1 match made on plate 5 (red fork & blue spoon)
What I want to know is how do I implement this kind of conditional query in MS access design view?
Any help would be very deeply appreciated!