hi guys..
i have a problem here..hope someone could help me

i have to create a table consist of 4 column.
CREATE TABLE "TABLE1"
("DMS_DT" DATE NOT NULL,
"TBLNAME" VARCHAR(10) NOT NULL,
"REC_LD_TS" TIMESTAMP NOT NULL,
"REC_COUNT" INTEGER NOT NULL,
)
IN EDWOWN
my question is how can i coded in DB2 for all req. below;
*for DMS_DT and REC_LD_TS data must be taken from TABLE2.
*for REC_COUNT, data must be computed base on TABLE2 total count group by the DMS_DT
*for TBLNAME it must return 'TABLE2'. logically i could just hard coded the table name as parameter.but how could i achieve that in DB2
hope some one could help me
