Let say I have a data table that list a name, ID for the last name, a
field linking it to another table, and a field listing if an optional
LinkStatus. I want to run a check to determine if each last name ID
has a Link to the external ID and exclude ones that have a linkstatus
value. Example:
Name ID LinkedToExtID LinkStatus
Smith, J 1 A24
Smith, H 1
Henry, B 2
Franks, D 3
Franks, E 3 A47
Franks, F 3
Rose, J 4
Rose, L 4
Rose, S 4
Jones, A 5 InProgress
Jones, H 5
Want to run a query returning
ID
2
4
because none of these IDs have a corresponding LinkedToExtID value or
any value in the LinkStatus field. IDs 1 and 3 have a LinkedToExtId
value and ID 5 has a status, so 2 and 4 are the only problems. After
several hours of trying things, I can't seem to get this one.
Any thoughts,
Andrew V. Romero
field linking it to another table, and a field listing if an optional
LinkStatus. I want to run a check to determine if each last name ID
has a Link to the external ID and exclude ones that have a linkstatus
value. Example:
Name ID LinkedToExtID LinkStatus
Smith, J 1 A24
Smith, H 1
Henry, B 2
Franks, D 3
Franks, E 3 A47
Franks, F 3
Rose, J 4
Rose, L 4
Rose, S 4
Jones, A 5 InProgress
Jones, H 5
Want to run a query returning
ID
2
4
because none of these IDs have a corresponding LinkedToExtID value or
any value in the LinkStatus field. IDs 1 and 3 have a LinkedToExtId
value and ID 5 has a status, so 2 and 4 are the only problems. After
several hours of trying things, I can't seem to get this one.
Any thoughts,
Andrew V. Romero
Comment