hi Rajesh
just got curious why u are using
"CAST(TIMESTAMP(SUBSTR(CHAR('1/22/2007'),6,4) || '-' || SUBSTR(CHAR('1/22/2007'),3,2) || '-' || SUBSTR(CHAR('1/22/2007'),1,1) || ' 00:00:00') AS DATE) Expire "
u are converting it from date to timestamp, then again to date??
following options may be much more handy
values timestamp_iso(date('1/22/2007'))
1
--------------------------
2007-01-22-00.00.00.000000
or
values date('1/22/2007')
1
----------
2007-01-22
Regards
Rahul Singh