Re: Databases as objects

From: Neo <neo55592_at_hotmail.com>
Date: 22 Dec 2006 13:23:58 -0800
Message-ID: <1166822638.837959.282910_at_73g2000cwn.googlegroups.com>


> Without even getting into a good data language but sticking with SQL,
> speculate on the OO equivalent of the following ad hoc program:
>
> INSERT INTO catalog(title, author)
> SELECT library.title AS title, ...

Below is an approx equivalent based on what I could understand of the SQL. (; Following add book3 in catalog since

   its pub_date is between 19990705 and 20030105    and its author or co_author is a member of britNatBio    and it is an item of libraryOfCongress    and it is not on the blackList)
(set catalog

     item
     (!= (and (get book instance *)
              (get * pub_date (<= (>= (get date instance *)
                                                 19990705)
                                           20030105))
              (get * (or author co_author) (get britNatBio member *))
              (get libraryOfCongress item *)
         )
         (get blackList item *)
     )

) Received on Fri Dec 22 2006 - 22:23:58 CET

Original text of this message