Hey all,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
Just started to go back and review one of my first databases and correct allot of errors I made with the limited knowledge I had at the time.<o></o>
<o></o>
One of the biggest errors I made was not normalizing the data and, in an attempt to correct this error, I came across a table that got me kind of confused. This table ("Payments") doesn't have a Primary Key and I can't seem to find a composite key that would work.
Should i just add another field as an auto number to represent the primary key just to appease the rules, or are there exceptions to the rule and is this one of them? If anyone has any suggestions (table format is below) please let me know.<o></o>
<o></o>
The table is used to capture all payments made in respect to claims in the database in order to allow totals based on several different criteria.<o></o>
<o></o>
ID (Foreign Key)<o></o>
Month (In digit form)<o></o>
Year <o></o>
Payable to (Who the payment is going to)<o></o>
Amount<o></o>
Type of Payment (Handling / Settlement / General Payment)<o></o>
Company (Company Making the Payment)<o></o>
<o></o>
*Notes-<o></o>
Not the actual names of the fields just used plain words for ease of understanding.<o></o>
<o></o>
However improbable, it is possible for all fields in two records to be identical.<o></o>
Just started to go back and review one of my first databases and correct allot of errors I made with the limited knowledge I had at the time.<o></o>
<o></o>
One of the biggest errors I made was not normalizing the data and, in an attempt to correct this error, I came across a table that got me kind of confused. This table ("Payments") doesn't have a Primary Key and I can't seem to find a composite key that would work.
Should i just add another field as an auto number to represent the primary key just to appease the rules, or are there exceptions to the rule and is this one of them? If anyone has any suggestions (table format is below) please let me know.<o></o>
<o></o>
The table is used to capture all payments made in respect to claims in the database in order to allow totals based on several different criteria.<o></o>
<o></o>
ID (Foreign Key)<o></o>
Month (In digit form)<o></o>
Year <o></o>
Payable to (Who the payment is going to)<o></o>
Amount<o></o>
Type of Payment (Handling / Settlement / General Payment)<o></o>
Company (Company Making the Payment)<o></o>
<o></o>
*Notes-<o></o>
Not the actual names of the fields just used plain words for ease of understanding.<o></o>
<o></o>
However improbable, it is possible for all fields in two records to be identical.<o></o>