× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Wed, Nov 8, 2023 at 8:58 AM Rob Berendt <robertowenberendt@xxxxxxxxx> wrote:

Date tables are popular across multiple versions of SQL across multiple
platform. I'm trying to find out if Kent Milligan or Scott Forstie have
any articles or examples on this with DB2 for i.

It's not rocket science. If you really can't or are not inclined to
figure it out yourself, several members of this list I'm sure can
help. I know at least one offered to recently, but I can't remember
who. I didn't offer before, but I also can help, subject to my time
availability.

Basically you have every possible format of a date in each column for every
date for the next 20 years or so.

Anyone who knows what they are doing will create at least 100 years'
worth of rows in their date table, covering both past and future
dates. As I've mentioned whenever this topic comes up, I like to do
400 years. By today's standards, these are very small tables (it takes
146097 rows to cover 400 years).

real date, CCYYMMDD alpha, CCYYMMDD numeric, CYYMMDD, MMDDYY, etc.

Right; the limit is your own need or imagination.

John Y.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.