I need to collect information on the database of dates and dates went into a database to be very scalable and efficient I Database Should I delete the dates
table and location dateTicken
and dates Planet
in different databases? My only reluctance is there are many tables that rely on DateId
. Is there a better solution that duplicate tables DateId
?
CREATE TABLE Dates (DateId INT NOT NULL AUTO_INCREMENT, ProfileId INT is not NULL, will not require primary key requirement (date ID, Profailaidi)); CREATE TABLE DateTaken (DateId INT NOT NULL PRIMARY KEY, title VARCHAR (255) NOT NULL, DateStart not on NULL, DateEnd not on NULL, summary VARCHAR (1500), foreign key (DateId) Dates (DateId) reference); CREATE TABLE DatePlanned (DateId INT NOT NULL PRIMARY KEY, title VARCHAR (255) NOT NULL, DateStart not on NULL, DateEnd not on NULL, summary VARCHAR (1500), foreign key (DateId) Dates (DateId) reference); CREATE TABLE DateRestaurant (RestaurantId INT NOT NULL, DateId INT NOT NULL, check-in date is not NULL, checkout date not NULL, name VARCHAR (255) NOT NULL, PRIMARY KEY (DateId, RestaurantId), foreign key (DateId) Dates reference (DateId) ); "Text" itemprop = "lesson"> I think you are dividing the table because you give them another function, after
Comments
Post a Comment