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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Trigger question

Re: Trigger question

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: 2000/06/06
Message-ID: <960320220.10430.2.nnrp-06.9e984b29@news.demon.co.uk>#1/1

Just a thought to play with, why do you even need the status field ?

create view ...
as ...

    decode(sign(trunc(sysdate)-date_field,-1,'Open','Closed')) status_field

--

Jonathan Lewis
Yet another Oracle-related web site:  http://www.jlcomp.demon.co.uk

Rookie wrote in message ...

>I would like to update a status field from open to close when the
>corresponding date field reaches today's date.
>
>Should I just run a batch routine every night, or can I schedule Oracle 8i
>to handle this for me automatically every night?
>
>
Received on Tue Jun 06 2000 - 00:00:00 CDT

Original text of this message

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