Is normalizing a person's name going too far?

后端 未结 19 1366
后悔当初
后悔当初 2020-12-16 15:10

You usually normalize a database to avoid data redundancy. It\'s easy to see in a table full of names that there is plenty of redundancy. If your goal is to create a catalog

相关标签:
19条回答
  • 2020-12-16 15:25

    You should normalize it out if you need to avoid the delete anomaly that comes with not breaking it out. That is, if you ever need to answer the question, has my database ever had a person named "Joejimbobjake" in it, you need to avoid the anomaly. Soft deletes is probably a much better way than having a comprehensive first name table (for example), but you get my point.

    0 讨论(0)
  • 2020-12-16 15:26

    Database normalization usually refers to normalizing the field, not its content. In other words, you would normalize that there only be one first name field in the database. That is generally worthwhile. However the data content should not be normalized, since it is individual to that person - you are not picking from a list, and you are not changing a list in one place to affect everybody - that would be a bug, not a feature.

    0 讨论(0)
  • 2020-12-16 15:26

    I would say yes, it is going too far in 95%+ of the cases.

    0 讨论(0)
  • 2020-12-16 15:27

    Maybe if you work in the Census office it might make sense. Otherwise, see every other answer :)

    0 讨论(0)
  • 2020-12-16 15:28

    Generally yes. Normalizing to that level would be going to far. Depending on the queries (such as phone books where searches by last name are common) it might be worthwhile. I expect that to be rare.

    0 讨论(0)
  • 2020-12-16 15:33

    If you had a need to perform queries based on diminutive names I could see a need for normalizing the names. e.g. a search for "Betty" may need to return results for "Betty", "Beth", and "Elizabeth"

    0 讨论(0)
提交回复
热议问题