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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Decode with > or < in 8i??

RE: Decode with > or < in 8i??

From: James Bullard <jbullard_at_onvia.com>
Date: Fri, 25 Aug 2000 16:35:05 -0700
Message-Id: <10600.115615@fatcity.com>


I have done a similar thing with the GREATEST function. I think that it kinda does what your looking for.
Here is a sample that I have of job that checks for maxextents for segments.

...

SELECT t.tablespace_name, s.segment_name, s.extents, t.max_extents,   DECODE( GREATEST ( (t.max_extents - s.extents), 20), 20, 'bad', 'good') "Status"

   FROM dba_segments s, dba_tables t
    WHERE s.segment_name = t.table_name
     AND t.owner = s.owner
...

HTH,
James

-----Original Message-----
From: Jim Walski [mailto:jwalski3_at_classicplan.com] Sent: Friday, August 25, 2000 4:04 PM
To: Multiple recipients of list ORACLE-L Subject: Decode with > or < in 8i??

Is there any new SQL in 8i that will allow < > >= <= in a decode statement? I thought I read somewhere about a function to allow this? I know I can use the "sign" function but that is not very elegant. I read the 8.1.5 new features and couldn't seem to find it.

Thanks, Jim

Jim Walski
ClassicPlan
Chino, CA 91710
email jwalski_at_classicplan.com
http://www.classicplan.com

-- 
Author: Jim Walski
  INET: jwalski3_at_classicplan.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Aug 25 2000 - 18:35:05 CDT

Original text of this message

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