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

Home -> Community -> Usenet -> c.d.o.misc -> Help With a Decode

Help With a Decode

From: <melih.onvural_at_gmail.com>
Date: 27 Jun 2005 12:49:39 -0700
Message-ID: <1119901778.974241.88270@g44g2000cwa.googlegroups.com>


Group,

I searched through the archives and there seems to be a solution to my problem, but no one ever states what it is. I'm confident from what I've read that this should work, but it tells me that the select statement is not a single-group group function. Help?

SELECT decode(nvl(MAX(created), 1), 1, (select sysdate-3 from dual), MAX(created)) from audit;

Thanks,

Melih Onvural Received on Mon Jun 27 2005 - 14:49:39 CDT

Original text of this message

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