On Mon, Mar 3, 2025 at 2:12 PM Greg Wilburn <
gwilburn@xxxxxxxxxxxxxxxxxxxxxxx> wrote:

Wow - can't thank you all enough. Wouldn't it just have been easier if
the software developer would have created GLMASTGD rows for each
year/account?


Anything date related in SQL can often be simplified via a Dates (aka
Calendar) table...
Db2 Web query installs one, and there's a version of the script here
https://www.ibm.com/support/pages/system/files/inline-files/$FILE/Converting%20Legacy%20Date%20Fields%20to%20DB2%20Web%20Query%20Dates%20Part%20II.pdf

Assuming you have such a table, and an account_master table you can easily
cross join the two to get a result set of year + account.

HTH,
Charles

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-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.