Is it bad to use redundant relationships?

前端 未结 7 1060
小鲜肉
小鲜肉 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 08:59

    If you really need to simplify things, this is where a View (or multiple views) would come in handy.

    Having a column for the company in your employee view would not be poorly normalized providing it is derived from a join on section.

提交回复
热议问题