Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> comp.databases.theory -> Re: Is relational theory irrelevant?

Re: Is relational theory irrelevant?

From: Mikito Harakiri <mikharakiri_at_iahu.com>
Date: Tue, 18 Nov 2003 15:58:28 -0800
Message-ID: <kwyub.23$wC5.48@news.oracle.com>

"Paul Vernon" <paul.vernon_at_ukk.ibmm.comm> wrote in message news:bpe69u$10o4$2_at_gazette.almaden.ibm.com...
> "Bob Badour" <bbadour_at_golden.net> wrote in message
> news:ToednUdmpdK1Dyei4p2dnA_at_golden.net...
> > Sending an email is not information--it is an activity. The email is
> > information. The recipient is information. Sending is not information.
>
> Can you provide me with a definition by which I can separate things into
> information and activity classifications.

I think what Serge meant to say is

CREATE table EmailAddresses (

    address String,
    lastNotified Date,
)

CREATE TRIGGER send_email

    AFTER UPDATE ON EmailAddresses FOR EACH ROW begin

    if :new.LastNotified!=:old.LastNotified then

        sendEmail (:new.address);
    end;
end

update EmailAddresses
set LastNotified = SYSDATE
where <target criteria>
and LastNotified < SYSDATE - 1 -- notified no later than yesterday

I suggest that sendEmail function should return boolean value so that it were impossible to use it in queries. (Didn't SQL designers disable boolean datatype just for that occasion?-)

Again, where is the problem? Received on Tue Nov 18 2003 - 17:58:28 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US