|
You could also download iDate from www.think400.dk/downloads.htm
and just do.
SELECT iDate(05062011,'*MDCCYY') From
sysibm/sysdummy1
On Tue, Aug 30, 2011 at 9:03 AM, CRPence wrote:
On 30-Aug-2011 06:25 , Schutte, Michael D wrote:
Looking for a best solution for implementing and using derived
index. I have a table that has a date in it MMDDYYYY format. It's
a large historical file that we often fight with getting data
from. <<SNIP>>
The following expression(s) might be more succinct [¿and
functional?] alternatives. And the two expressions will have the
benefit [or difficulty] of requiring a date\time[stamp] data type
for the predicate instead of the decimal data type used in the
quoted example:
TIMESTAMP_FORMAT(DIGITS(dcodte), 'MMDDYYYY')
DATE( TIMESTAMP_FORMAT(DIGITS(dcodte), 'MMDDYYYY') )
<<SNIP UDT ref\question>>
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.