473,395 Members | 1,936 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

MQT with Summary Table: DB2 not allowing: Can't figure out rule broken?

1
Hola...

Still trying to get to know DB2. Really want to use Automatic Summary Tables along with staging tables.

I'm using DB2 9.1 Express-C, WinXP. Nothing unusual about my environment; just a simple install of DB2 on my laptop for now as I practice.

Here's where I'm at:


CREATE TABLE foo AS ( SELECT
DECIMAL (AVG(bv.vote_value),4, 2) AS Vote_Average,
COUNT(bv.book_id) AS total_votes,
b.title_1, b.title_2, a.full_name, bv.book_id, ab.artist_id
FROM book_votes bv,
books b,
authors_books ab,
authors a
WHERE bv.book_id = ab.book_id AND
ab.book_id = b.id AND
ab.author_id = a.id
GROUP BY bv.book_id, b.title_1, b.title_2, ab.author_id, a.full_name)

DATA INITIALLY DEFERRED REFRESH DEFERRED;

*******DB20000I The SQL command completed successfully********

CREATE TABLE foo_stage FOR foo PROPAGATE IMMEDIATE;

****DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL20058N The fullselect specified for the materialized query table "BR.FOO" is not valid. Reason code = "4". SQLSTATE=428EC

I carefully read over the following documentation which directly speaks to my issue and the associated error code. I didn't see the issue - as it relates to a REFRESH DEFERRED MQT.
http://publib.boulder.ibm.com/infocenter/db2luw/v9/index.jsp?topic=/com.ibm.db2.udb.msg.doc/doc/sql20058.htm

Can anybody explain why this is failing?

Thanks in advance for any help!
Jan 17 '07 #1
0 1310

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.