Database Normalization

后端 未结 13 1916
死守一世寂寞
死守一世寂寞 2020-11-29 11:33

I\'m new to database design and I have been reading quite a bit about normalization. If I had three tables: Accommodation, Train Stations and Airports. Would I have address

13条回答
  •  广开言路
    2020-11-29 12:14

    Personally I'd go for another table.

    I think it makes the design cleaner, makes reporting on addresses much simpler and will make any changes you need to make to the address schema easier.

    If you need to have it denormalized later on you can always create two views that contain the Train station and airport information along with any address information you need.

提交回复
热议问题