drop table konv;
CREATE TABLE konv (
mandt text,knumv text,kposn text,stunr text,
zaehk text,kntyp text,kbetr numeric(11,2),
hashResult text,rowNum serial,
PRIMARY KEY (mandt, knumv, kposn, stunr, zaehk)
)
Distributed by (mandt, knumv, kposn, stunr, zaehk)
partition by list(stunr)
subpartition by list (kposn)
subpartition template
(
subpartition p000010 values ('000010'),
subpartition p000020 values ('000020'),
subpartition p000030 values ('000030'),
subpartition p000040 values ('000040'),
subpartition p000011 values ('000011'),
subpartition p000050 values ('000050'),
subpartition p000012 values ('000012'),
subpartition p000060 values ('000060'),
subpartition p000021 values ('000021'),
subpartition p000070 values ('000070'),
subpartition p000013 values ('000013'),
subpartition p000022 values ('000022'),
subpartition p000080 values ('000080'),
subpartition p000014 values ('000014'),
subpartition p000031 values ('000031'),
subpartition p000023 values ('000023'),
subpartition p000090 values ('000090'),
subpartition p000015 values ('000015'),
subpartition p000032 values ('000032'),
subpartition p000100 values ('000100'),
subpartition p000024 values ('000024'),
subpartition p000016 values ('000016'),
subpartition p000041 values ('000041'),
subpartition p000110 values ('000110'),
subpartition p000033 values ('000033'),
subpartition p000025 values ('000025'),
subpartition p000017 values ('000017'),
subpartition p000042 values ('000042'),
subpartition p000120 values ('000120'),
subpartition p000026 values ('000026'),
subpartition p000034 values ('000034'),
subpartition p000051 values ('000051'),
subpartition p000018 values ('000018'),
subpartition p000130 values ('000130'),
subpartition p000027 values ('000027'),
subpartition p000019 values ('000019'),
subpartition p000035 values ('000035'),
subpartition p000061 values ('000061'),
subpartition p000043 values ('000043'),
subpartition p000052 values ('000052'),
subpartition p000028 values ('000028'),
subpartition p000140 values ('000140'),
subpartition p000036 values ('000036'),
subpartition p000029 values ('000029'),
subpartition p000150 values ('000150'),
subpartition p000044 values ('000044'),
subpartition p000062 values ('000062'),
default subpartition other
)
(
partition p920 values ('920'),
partition p915 values ('915'),
partition p945 values ('945'),
partition p950 values ('950'),
partition p940 values ('940'),
partition p007 values ('007'),
partition p008 values ('008'),
partition p012 values ('012'),
partition p001 values ('001'),
partition p010 values ('010'),
partition p023 values ('023'),
partition p021 values ('021'),
partition p035 values ('035'),
partition p011 values ('011'),
partition p009 values ('009'),
partition p190 values ('190'),
partition p935 values ('935'),
partition p936 values ('936'),
partition p900 values ('900'),
partition p017 values ('170'),
partition p939 values ('939'),
default partition default_p
);
