Php 如何将这些表格从第三范式移动到第五范式?
我相信下表目前是第三种标准格式,对于我想要使用的PHP框架,我需要将它们放在第五种格式中。有人能给我一些建议,告诉我怎么做吗Php 如何将这些表格从第三范式移动到第五范式?,php,mysql,sql,database,database-normalization,Php,Mysql,Sql,Database,Database Normalization,我相信下表目前是第三种标准格式,对于我想要使用的PHP框架,我需要将它们放在第五种格式中。有人能给我一些建议,告诉我怎么做吗 create table UserAvailability ( Id int Identity(1, 1) not null, -- primary key UserId int not null, -- FK to User table AvailabilityDay Date not null, -- Day of availability
create table UserAvailability (
Id int Identity(1, 1) not null, -- primary key
UserId int not null, -- FK to User table
AvailabilityDay Date not null, -- Day of availability
9-10 bit not null default(0),
10-11 bit not null default(0),
11-12 bit not null default(0),
12-1 bit not null default(0),
1-2 bit not null default(0),
2-3 bit not null default(0),
3-4 bit not null default(0),
4-5 bit not null default(0),
5-6 bit not null default(0),
)
create TABLE User_Availability_Notes(
Phone_Number VARCHAR(25) NOT NULL UNIQUE,
User_Notes VARCHAR(500),
fk1_User_ID INTEGER NOT NULL,
)
CREATE TABLE User_Details(
User_ID INTEGER NOT NULL,
F_Name VARCHAR(25) NOT NULL,
L_Name VARCHAR(25) NOT NULL,
Email_Address VARCHAR(55) NOT NULL UNIQUE,
Phone_Number VARCHAR(25) NOT NULL UNIQUE,
Mode_of_Transport VARCHAR(8),
)
哪些字段完全违反第五范式?当你不知道的时候,你怎么知道它已经不是第五范式了?对我来说它看起来不像是第三范式了。看着这一团糟就很痛苦。我知道useravailability表是第三范式的,我假设另外两个表也是第三范式的,我不完全确定哪些字段违反了第五范式,我再次假设它们都不是