An Indexing Demonstration


The following interface performs the tasks below: This demonstration implements an inverted list by using the following statements:
   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 Exercise I.

Entering Keyword and URL to Index the Web Pages

  A keyword:  

  URL:  









  Password: