I have a query based on a table that has the fields as shown below. When I run the query, I will get a separate record for each group as shown below.
prb_no | seq_no | commitment_user_group_cd
602 | 3 | ERC
602 | 3 | MCE
602 | 3 | SRG
602 | 4 | MCE
602 | 4 | SRG
602 | 5 | SRG
602 | 6 | MCE
I would like to use a query to show only the records where "SRG" is not listed and where there is another group. So in the example data above, I would like the only record to show in the query to be the last record because it's the only one where SRG is not listed along with another group.
The logic behind this is when a problem is initiated and a group assigned, we do some things and document the results. So I am only interested in the records where we have not documented our results too.
Does anyone know how I can do this with a query?
Thanks,
Jim
I want the query to only show the data where there is a user group
prb_no | seq_no | commitment_user_group_cd
602 | 3 | ERC
602 | 3 | MCE
602 | 3 | SRG
602 | 4 | MCE
602 | 4 | SRG
602 | 5 | SRG
602 | 6 | MCE
I would like to use a query to show only the records where "SRG" is not listed and where there is another group. So in the example data above, I would like the only record to show in the query to be the last record because it's the only one where SRG is not listed along with another group.
The logic behind this is when a problem is initiated and a group assigned, we do some things and document the results. So I am only interested in the records where we have not documented our results too.
Does anyone know how I can do this with a query?
Thanks,
Jim
I want the query to only show the data where there is a user group
Last edited: