(or whatever you like to call tables used only, or mainly, to supportrepresent many-to-many relationships)
Yes, the problems noted at the beginning of this answer are still potential issues when using natural keys as alternate keys. However, the difference is that the problem is isolated to (usually) just one table. If someone made a mistake and created a unique index on "flight locator", it might be a while before they get a violation. But once they do, it is easy enough to drop that unique index and recreate it to include the flight dates as well. Or, if you change your email address (often used as the Login) on a system and get an error because it was in use by someone else years ago (legitimately), that can most likely be handled by support without any impact / risk to existing related records. In both cases the rest of the data model is untouched for the necessary changes.
Again, this is a pragmatic approach to minimizing potential data loss that can happen when migrating a primary key:
- minimizing potential data loss that can happen when migrating a primary key that has been referenced by one or more foreign keys (and minimizing the scope of the project also reduces the maintenance window :-). While not all PKs (or Unique Constraints/Indexes) have FKs, using a surrogate should certainly reduce the number of columns that have such dependencies
- making the system as durable, resilient, and efficient as possible. The physical model is the "in practice" to the "in theory" of the conceptual model. And we already make quite a few adjustments and considerations given that the conceptual model doesn't care about implementation. Yet we make choices to utilize vendor-specific features, for performance (e.g. denormalization, lookup tables, "sibling" tables as noted above, etc), to create the "bridge" tables (as noted above), and so on.
I don't know how many systems used SSNs (Social Security Numbers in the U.S.) as PKs, but for any that hasdid, some of them (many perhaps) may have avoided issues with them not being as unique as they should have been referenced by one or. But, none of those systems were able to avoid changes over the years regarding the need to handle them much more foreign keyssecurely. Systems treating SSNs as an alternate key require very little development time to switch over to encrypting those values, and the system requires little downtime (and minimizingor none) to make the changes at the data layer. Given that we all have backlogs of projects that we will likely never get to, businesses tend to prefer that these annoying yet inevitable changes will cost them 5 hours instead of 20 - 40 (don't forget that changes need to be tested, and hence the scope of the projectchanges also reducesdirectly impacts how much QA time is needed for the maintenance window :-project).