CREATE TABLE pricelist_ranged ( jcplcd text NULL, jcpart text NULL, jcunit text NULL, jcvoll numeric(12, 5) NULL, jcpric numeric(12, 5) NULL, vb_from numeric NULL, vb_to numeric NULL, price numeric NULL ); CREATE INDEX pricelist_ranged_idx ON pricequote.pricelist_ranged USING btree (jcpart, jcplcd, vb_from, vb_to);