|
<<SNIP>>
I had trouble trying this:
CREATE INDEX ROB/oldtablel01
ON ROB/OLDTABLE
(numtodate(OLDDATEASNBR) ASC)
But I could get this to work:
CREATE INDEX ROB/oldtablel01
ON ROB/OLDTABLE
(DATE(SUBSTR(CHAR(oldDateAsNbr),1,4)||'-'||
SUBSTR(CHAR(oldDateAsNbr),5,2)||'-'||
SUBSTR(CHAR(oldDateAsNbr),7,2) ))
On 2/14/11 6:03 AM, Jason Abreu wrote:
<<SNIP>> Of course, this assumes you do not have any nulls in
oldDateAsNbr and all values of oldDateAsNbr have a length of 8 and
can convert to valid dates.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.