A
Alex Martinez
Hello,
I work for an insurance company and I need some professional help. I have
two tables one call "Claims" the other "Reviewers"
In the "Claims" table I have the following fields:
ClaimNumber (Text)
AssignedTo (Text) (Login Name)
ReassignedTo (Text) (Login Name) - (Field just added)
The "Reviewers" table I have
ReviewerID (Text) (login Name)
ReviewerName (Text) (Reviewer full name)
In the past I was able to join from the "Claims" table the "AssignedTo"
field to the "Reviewers" table "ReviewerID" field to get the ReviewerName
not a problem. Now I have to add a new field "ReassignedTo" in the
"Claims" table. Now I need to get the correct ReviewerID & ReviewerName
when the "ReassignedTo" is populated otherwise I need to pick up the
"AssignedTo".
Example
Claims table
ClaimNumber AssignedTo ReassignedTo
X999 AC03 CH03
Reviewers table
ReviewerID ReviewerName
AC03 Allen Carter
CH03 Cindy Pick
Now all I need is to pick up Cindy Pick (CH03) not Allen Carter (AM03) in my
query. How do I do that? I like to keep this in one query. Any tips will
be appreciated. Thank you in advance.
I work for an insurance company and I need some professional help. I have
two tables one call "Claims" the other "Reviewers"
In the "Claims" table I have the following fields:
ClaimNumber (Text)
AssignedTo (Text) (Login Name)
ReassignedTo (Text) (Login Name) - (Field just added)
The "Reviewers" table I have
ReviewerID (Text) (login Name)
ReviewerName (Text) (Reviewer full name)
In the past I was able to join from the "Claims" table the "AssignedTo"
field to the "Reviewers" table "ReviewerID" field to get the ReviewerName
not a problem. Now I have to add a new field "ReassignedTo" in the
"Claims" table. Now I need to get the correct ReviewerID & ReviewerName
when the "ReassignedTo" is populated otherwise I need to pick up the
"AssignedTo".
Example
Claims table
ClaimNumber AssignedTo ReassignedTo
X999 AC03 CH03
Reviewers table
ReviewerID ReviewerName
AC03 Allen Carter
CH03 Cindy Pick
Now all I need is to pick up Cindy Pick (CH03) not Allen Carter (AM03) in my
query. How do I do that? I like to keep this in one query. Any tips will
be appreciated. Thank you in advance.