Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下结构的简单表格 ID(PK) ,标题,导演,制作年份,制作公司
在 3nf 中,非主键之间必须没有传递关系,但我认为(导演、制作年份和制作公司)取决于标题,但标题本身不能是单独表中的主键,因为标题不是唯一的,
我的桌子是 3nf 还是什么?
您的导演、制作年份和制作公司不取决于标题,而是取决于电影 ID(假设主题实际上是电影)。同一个电影标题(比如“Robin Hood”或“Peter Pan”或“Tarzan”)可能会在表格中出现多次,但导演信息取决于电影 ID,而不是标题。
你的桌子在 3NF 中——除非你允许一部电影有多个导演,或者多个制作公司,或者需要几年时间制作的电影。