Mark Watson's Blog
I am the author of 13 published computer books and a consultant specializing in Java, C++, and Smalltalk development. Please check out my two Free Web Books at my main site www.markwatson.com

 



Subscribe to "Mark Watson's Blog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 

 

  Tuesday, February 25, 2003


Why the Internet is SO COOL, and KnowledgeBooks portal stuff

Why is the Internet so COOL? One reason is that people help each other. I try to spend about 30 minutes a week answering peoples questions on my favorite Usenet news groups.

Today someone helped me! I needed to do an SQL query against a database that I just created with information on board of directors for a sampling of US companies. I am a little rusty on my SQL and was having problems. So, I posted to comp.databases a question and within a few minutes Bob Badour (who I do not know) was kind enough to help me out.

Here is an example of his much-appreciated help on my tiny first-cut test database (this finds people who are on more than one board of directors):

factbook=# select A.firstname, A.lastname, A.stockticker, B.stockticker
    FROM companydirector A, companydirector B
    WHERE A.firstName = B.firstName and
                    A.lastname = B.lastname and
                    A.stockticker < B.stockticker;
 firstname | lastname  | stockticker | stockticker 
-----------+-----------+-------------+-------------
 James     | Barksdale | AOL         | SUNW
 Jr.,      | Cash      | GE          | MSFT
 Philip    | Condit    | BA          | HPQ
 Carleton  | Fiorina   | CSCO        | HPQ
 Ann       | Fudge     | GE          | HON
 Jr.,      | Hockaday  | DJ          | F
 Nobuyuki  | Idei      | GM          | SNE
 Alan      | Lafley    | GE          | GM
 James     | Mellor    | CSC         | GD
 Michael   | Miles     | AOL         | DELL
 Rozanne   | Ridgway   | BA          | MMM
 Jr.,      | Smith     | GM          | NT
 John      | Thompson  | IBM         | SYMC
(13 rows)
(Note: I should have also checked on middle names and my spidering software needs to be improved when processing names, but you get the idea:-)

I needed a non-trivial sized database to use for demoing the KnowledgeBooks portal software that I am working on and I chose to spider the SEC Edgar database and use the most excellent CIA World FactBook data.
4:27:41 PM    



Click here to visit the Radio UserLand website. © Copyright 2003 Mark Watson.
Last update: 9/16/03; 7:35:04 AM.

February 2003
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28  
Jan   Mar