Hello,
I would like to create an expression that compares a date field with the sysdate and then categorises it with decode, this is what I have attempted so far but it throughs a right parenthesis error.
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Aug 31 16:51:21 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> SELECT DECODE((date_expired < sysdate), date_expired, 'CURRENT')
2 FROM tablename
3 /
SELECT DECODE((date_expired < sysdate), date_expired, 'CURRENT')
*
ERROR at line 1:
ORA-00907: missing right parenthesis
SQL>
The error corresponds with column 28 which is between date_expired and <.
Thank You
Ben