DROP TABLE IF EXISTS pricing.pricing.core_target;

CREATE TABLE pricing.pricing.core_target (
    compset VARCHAR(MAX)    NOT NULL,
    stlc    VARCHAR(30)     NOT NULL,
    floor   NUMERIC(20,5)   NOT NULL,
    options VARCHAR(MAX)    NOT NULL,
    PRIMARY KEY (stlc)
);

CREATE SCHEMA import;

DROP TABLE IF EXISTS pricing.import.core_target;

-- CREATE TABLE pricing.import.core_target AS (SELECT * FROM pricing.pricing.core_target);
SELECT * INTO pricing.import.core_target FROM pricing.pricing.core_target;