drop table mska;
CREATE TABLE mska (
vbeln text,
posnr text,
mandt text,
matnr text,
werks text,
lgort text,
charg text,
sobkz text,
kaspe text,
kalab text,
PRIMARY KEY (mandt, matnr, werks, lgort, charg, sobkz, vbeln, posnr)
)
Distributed by (mandt, matnr, werks, lgort, charg, sobkz, vbeln, posnr);

alter table mska add column hashResult text;
alter table mska add column rowNum serial;
