SQL> CREATE TABLE keywords ( 2 kwID INT AUTO_INCREMENT PRIMARY KEY, 3 keyword VARCHAR(64) ); SQL> CREATE TABLE url_title ( 2 urlID INT AUTO_INCREMENT PRIMARY KEY, 3 url VARCHAR(128), 4 title VARCHAR(128) ); SQL> CREATE TABLE www_index ( 2 kwID INT, 3 urlID INT, 4 PRIMARY KEY ( kwID, urlID ), 5 FOREIGN KEY ( kwID ) REFERENCES keywords ( kwID ), 6 FOREIGN KEY ( urlID ) REFERENCES url_title ( urlID ) );Note that this database design may not meet the requirements of the
Cindy was on cloud nine (extremely happy) after her boyfriend proposed to her. |