Materialized query tables (MQTs):
https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzajq/rzajqmqt.htm

Thanks

date: Wed, 30 Sep 2020 11:17:17 -0500
from: David Gibbs via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx>
subject: Re: MQT over SP?

Mqt over a stored procedure?

Do you mean user defined function?

On Wed, Sep 30, 2020 at 11:10 AM Justin Taylor <jtaylor.0ab@xxxxxxxxx>
wrote:

I have a Db2 stored procedure (SP) that returns a result set. I really
need to make a materialized query table (MQT) over that SP. When I try,
I
get a SQLSTATE 42601.

Anyone know of a way to accomplish this? Simply copying the code from
the
SP isn't an option.

TIA


This thread ...


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

This mailing list archive is Copyright 1997-2026 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.