drop table bkpf;
CREATE TABLE bkpf (
mandt text,
bukrs text,
belnr text,
gjahr text,
blart text,
bldat text,
budat text,
monat text,
cpudt date,
cputm text,
aedat text,
upddt text,
cpudt_cputm timestamp,
hashResult text,
rowNum serial,
PRIMARY KEY (mandt,bukrs,belnr,gjahr)
)
Distributed by (mandt,bukrs,belnr,gjahr);

alter table bkpf drop column aedat;
alter table bkpf add column aedat date;
