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



I treat MQT like a snapshot to be refreshed periodically. This one would
always contain data for the prior year. It would be refreshed every
January 1st, and simply queried the rest of the year.


date: Mon, 4 Mar 2024 10:14:12 -0700
from: Charles Wilt <charles.wilt@xxxxxxxxx>
subject: Re: 428EC on current_date in MQT

Makes sense to me...

The idea behind a MQT is that the DB would be able to redirect a query to
the MQT automatically

For example, you find your users running a lots of a query like so
select division, sum(sales) as totSales
from myTable;

So you create an MQT...

Now whenever the users run the above query, the Db would use the MQT.

One can also query the MQT directly, but the point is your users don't have
to know about it or make changes to what they are doing.

Thus it makes sense to me that the DB doesn't allow the use of special
registers or global variables which could change in the MQT select
statement.

Honestly, I've found very little use for MQTs since Db2 for IBM i doesn't
support system maintained ones.
Everything I've considered them for was better served by a EVI with
calculated fields as those are maintained by the system.

HTH,
Charles



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.