Picking the best primary key + numbering system
问题 We are trying to come up with a numbering system for the asset system that we are creating, there has been a few heated discussions on this topic in the office so I decided to ask the experts of SO. Considering the database design below what would be the better option. Example 1: Using auto surrogate keys. ================= ================== Road_Number(PK) Segment_Number(PK) ================= ================== 1 1 Example 2: Using program generated PK ================= ==================