AccessNewb01
New member
- Local time
- Today, 12:21
- Joined
- Jul 13, 2017
- Messages
- 4
All -
I am new to this forum and relatively new to more complicated queries in SQL. I have a table with four columns. The first column contains ID's where duplicates can often occur and the other three column tell me information about the first. The fourth column in my table has identify numbers that represent a specific set up and I need a query to return the values if a particular value does not appear for the ID.
Example Data set.
ID Field 2 Field 3 Field 4
41 59 12 1
41 59 12 2
41 59 12 71
42 60 12 1
42 60 12 2
42 60 12 741
What I need is for the query to look at the ID field and Field 4. Based on the ID, I need to know if field 4 is missing a particular number for just that group of ID's.. So for this example, look through ID field and tell me if any of the ID's "by group" are missing a 71 or a 2 in Field 4. So this particular example would return ID 42 is missing a 71. (I would want Fields 2 and 3) returned as well.
I would prefer it tell me what number in Field 4 it is missing, but understand if that is not possible.
I am new to this forum and relatively new to more complicated queries in SQL. I have a table with four columns. The first column contains ID's where duplicates can often occur and the other three column tell me information about the first. The fourth column in my table has identify numbers that represent a specific set up and I need a query to return the values if a particular value does not appear for the ID.
Example Data set.
ID Field 2 Field 3 Field 4
41 59 12 1
41 59 12 2
41 59 12 71
42 60 12 1
42 60 12 2
42 60 12 741
What I need is for the query to look at the ID field and Field 4. Based on the ID, I need to know if field 4 is missing a particular number for just that group of ID's.. So for this example, look through ID field and tell me if any of the ID's "by group" are missing a 71 or a 2 in Field 4. So this particular example would return ID 42 is missing a 71. (I would want Fields 2 and 3) returned as well.
I would prefer it tell me what number in Field 4 it is missing, but understand if that is not possible.