Is it bad to use redundant relationships?

前端 未结 7 1100
小鲜肉
小鲜肉 2021-01-12 08:20

Suppose I have the following tables in my database:

Now all my queries depend on Company table. Is it a bad practice to give every other table a (redundant

7条回答
  •  忘掉有多难
    2021-01-12 09:03

    If you mean add a Company column to every table, it's a bad idea. It'll increase the potential for data integrity issues (i.e. it gets changed in one table but not the other 6 where it should).

提交回复
热议问题