C
CAM
Hello,
I work for an insurance company and I am trying to build a database and
trying to figure out how do I make two fields unique on both tables. I have
a table called "Audits" the fields are:
Policy Number
Audit Type
Now I have a second table call "Billed", which has the following fields:
Policy
Billed Type
Policy Number or Policy is not unique by itself there maybe several of the
same Policy Number in the tables, the additional field Audit Type/Billed
Type makes it unique in combination with the Policy Number or Policy. Again
there will be many of the same Audit Type or Billed Type, but have different
Policy Numbers. This is how I want the match to be.
Table Audits
Policy Number AAA123
Audit Type AA
Table Billed
Policy AAA123
Billed Type AA
The Policy Number and Audit Type in "Audit" table should match with the
"Billed" table Policy and Billed Type.
Here is example using the same Policy Number / Policy, but with different
Audit Type/Billed Type that must matched.
Table Audits
Policy Number AAA123
Audit Type BB
Table Billed
Policy AAA123
Billed Type BB
Now if I have the same Policy Number/ Policy and both the Audit Type and
Billed type are different then obviously there is no match. How do I make
the thouse fields unique in my table? Thank you in advance.
I work for an insurance company and I am trying to build a database and
trying to figure out how do I make two fields unique on both tables. I have
a table called "Audits" the fields are:
Policy Number
Audit Type
Now I have a second table call "Billed", which has the following fields:
Policy
Billed Type
Policy Number or Policy is not unique by itself there maybe several of the
same Policy Number in the tables, the additional field Audit Type/Billed
Type makes it unique in combination with the Policy Number or Policy. Again
there will be many of the same Audit Type or Billed Type, but have different
Policy Numbers. This is how I want the match to be.
Table Audits
Policy Number AAA123
Audit Type AA
Table Billed
Policy AAA123
Billed Type AA
The Policy Number and Audit Type in "Audit" table should match with the
"Billed" table Policy and Billed Type.
Here is example using the same Policy Number / Policy, but with different
Audit Type/Billed Type that must matched.
Table Audits
Policy Number AAA123
Audit Type BB
Table Billed
Policy AAA123
Billed Type BB
Now if I have the same Policy Number/ Policy and both the Audit Type and
Billed type are different then obviously there is no match. How do I make
the thouse fields unique in my table? Thank you in advance.