I have a table called PTBalance with the following columns
a) Acct_Nbr
b) Acct_Type
c) Currency
d) Balance
I want to have a table(Physical also fine) having the following data
a) Acct_nbr
b) Sum(Balance)
Every day PTBalance table is replaced by a new table(drop the existing one, create a new one with latest data)
I created a MQT with acct_nbr and Sum(balance) then I try to delete the base table, db2 did n't allow me because it has MQT reference.
1)
Is there any other utility in DB2 which does not keep reference to base tables?
2) Can I create a physical table not MQT by using Create table as select statement. Can I use group by as part of select criteria?
3) What is the difference between MQT and Create table as select?
Thanks in advance.
Shri