Hi,
Challenge - check table for conflict between one field and several other fields.
I am looking for a little assistance : I have a table which has a key field of JOB_ID and other general fields called CCT; RC1; RC2; RC3; RC4. I am trying to write a query that will create a table or report of records where the value of CCT is found in either RC1 RC2 RC3 or RC4 ( and if I can crack that problem, the next challenge would be to write a similar query which reports any records where the values in either RC1 RC2 RC3 or RC4 exist in other RC1 RC2 RC3 RC4.)
I originally thought a simple query like...
Select table.JOB_ID from table
where table.CCT = table.RC1
or table.CCT = table.RC2
or table.CCT = table.RC3
or table.CCT = table.RC4;
would do what I wanted, but this query seems only to pick up my required conflicting records based on RC1
Thanks in anticipation
JimC
Challenge - check table for conflict between one field and several other fields.
I am looking for a little assistance : I have a table which has a key field of JOB_ID and other general fields called CCT; RC1; RC2; RC3; RC4. I am trying to write a query that will create a table or report of records where the value of CCT is found in either RC1 RC2 RC3 or RC4 ( and if I can crack that problem, the next challenge would be to write a similar query which reports any records where the values in either RC1 RC2 RC3 or RC4 exist in other RC1 RC2 RC3 RC4.)
I originally thought a simple query like...
Select table.JOB_ID from table
where table.CCT = table.RC1
or table.CCT = table.RC2
or table.CCT = table.RC3
or table.CCT = table.RC4;
would do what I wanted, but this query seems only to pick up my required conflicting records based on RC1
Thanks in anticipation
JimC