MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » February 2014

Re: how to make a key on a view? (Hoteltravelfundotcom)



fixed

Hello Buck

If you can get by with periodic refresh (daily/hourly)
then a MQT (Materialized Query Table) might by what you're looking for.
See
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Fsqlp%2Frbafymqt.htm

unfortunately DB2/400 does not support REFRESH IMMEDIATE
so you have to refresh it yourself.

This certainly worked for me.
Gad



date: Thu, 30 Jan 2014 17:58:43 -0500
from: Hoteltravelfundotcom <hoteltravelfun@xxxxxxxxx>
subject: Re: how to make a key on a view?

the source for the DTAWHS is this
CREATE TABLE PROJ_MKWN1/DTAWHS (
CUSTOMER# CHAR ( 8),
NAME CHAR (40 ),
CITY CHAR (30 ),
STATE CHAR (3 ),
COUNTRY CHAR (3 ),
ZIP_CODE char (10 ),
ITEM# CHAR (15 ),
ITEM_TEXT CHAR (40 ),
ORDER# CHAR (8 ),
ORD_STATUS CHAR (2 ),
INVOICE# CHAR (8 ),
ORD_DATE NUMERIC (8 , 0),
INV_DATE numeric (8 , 0),
ORD_TYPE CHAR (3 ),
CUST_TYPE CHAR (3 ),
PROD_LINE CHAR (3 ),
SALES_REP CHAR (3 ),
WAREHOUSE CHAR (3 ),








Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact