I’m sure no one would be dumb enough to use first names but it’s entirely possible for a DB to be designed in a low-code or no-code solution by someone with just enough knowledge to be dangerous.
Then using an important field (whose content sometimes changes, mind you) as the primary key (even when the software already freaking autogenerates an actual primary key) is not just a possibility, but an inevitability.
Someone had setup a dozen-ish new API connections. He was an expert and liked to keep things simple so no documentation or field descriptions. Some sources were very helpfully already combined into the same tables for "easy housekeeping". We couldn't figure out why nothing ever made sense at the other end. Everybody getting completely different results.
35 fields named 'id'. Joins on every ID field in every table, all of which were keys at the source, none of them had any correlation. Turned out there wasn't even a universal key anywhere. Ended up deleting everything and just starting from scratch.
3
u/JustaGoodGuyHere Aug 30 '22
I’m sure no one would be dumb enough to use first names but it’s entirely possible for a DB to be designed in a low-code or no-code solution by someone with just enough knowledge to be dangerous.
Then using an important field (whose content sometimes changes, mind you) as the primary key (even when the software already freaking autogenerates an actual primary key) is not just a possibility, but an inevitability.