A primary key consisting of just INSPECTORID, COUNTYID, and DATE is all that is needed if the following rules apply.
1. Each inspector may inspect many counties.
2. Each county may be inspected by many inspectors,
with the following constraints
1. Each inspector may inspect the same county many times but not on the same date
2. Many inspectors may inspect the same county on the same date
No need for time field or autonumber.
cheers,
Quote:
Originally Posted by jinalpatel
OK I am sorry for replying late but I was on vacation. I need this kind of primary key because I am working with pendragon software which syncs with PDA units. It is possible that if two inspectors are inspecting the same nursery at the same time(thats why I am taking "seconds" in consideration), if the nursery farm is more than 300 acres.
I need to create this unique primary key to keep the master records unique.
Thanks everyone for answering and meaning ful discussions!! Thanks much!!