-- DBMS: snowflake
CREATE TABLE AMAZON_VENDOR_ANALYTICS__SAMPLE_DATASET.PUBLIC.DEFECT_REPORT (
    PREP_REPORTING_DATE TIMESTAMP_LTZ,
    PRODUCT_NAME TEXT,
    DEFECT_RATE FLOAT,
    SHIPMENT_ID_AMAZON_REFERENCE_NUMBER TEXT,
    UPC TEXT,
    ROUTING_REQUEST_CREATION_DATE TIMESTAMP_LTZ,
    PURCHASE_ORDER_# TEXT,
    ID NUMBER,
    PID_CARTON_ID TEXT,
    FREIGHT_PICKUP_CARRIER_SCAC TEXT,
    _REVISION NUMBER,
    ISSUE_TYPE TEXT,
    CARTON_LENGTH FLOAT,
    ASN_# TEXT,
    ORDER_TYPE TEXT,
    ISSUE_ID TEXT,
    CONFIRMED_PRODUCT_QUANTITY FLOAT,
    SUB_TYPE_OF_THE_NON_COMPLIANCE TEXT,
    CARRIER_PRO TEXT,
    DISPUTE_BY TIMESTAMP_LTZ,
    SHIP_OR_DELIVERY_WINDOW_END TIMESTAMP_LTZ,
    ISD_RECEIVED_TIMESTAMP TIMESTAMP_LTZ,
    STATUS TEXT,
    HAS_PERFORMANCE_IMPACT TEXT,
    ASIN TEXT,
    FREIGHT_TERMS TEXT,
    QUANTITY FLOAT,
    VCBS_VC_ATTRIBUTE_PO_QUANTITY_CONFIRMED_BEFORE_CUTOFF-HEADER FLOAT,
    CHARGE_INVOICE_# TEXT,
    VCBS_VC_ATTRIBUTE_UNIT_QUANTITY_HEADER FLOAT,
    SHIP_OR_DELIVERY_WINDOW_START TIMESTAMP_LTZ,
    EARLY_DAYS TEXT,
    CARTON_LABEL_VALUE TEXT,
    DATE_CARRIER_ENTERED_THE_FIRST_REQUESTED_DELIVERY_DATE TIMESTAMP_LTZ,
    CARTON_ID TEXT,
    FULFILLMENT_CENTER TEXT,
    WITHIN_THRESHOLD TEXT,
    FINANCIAL_CHARGE FLOAT,
    ACTUAL_FREIGHT_PICKUP_TIME_PST TIMESTAMP_LTZ,
    _PARTNERUUID TEXT,
    VCBS_VC_ATTRIBUTE_VEHICLE_RUN_ID_HEADER_CODE TEXT,
    BILL_OF_LADING_# TEXT,
    CONTAINER_LABEL TEXT,
    CARTON_OR_PACKAGE_RECEIVE_DATE TIMESTAMP_LTZ,
    PRODUCT_GROUP FLOAT,
    TRACKING_ID TEXT,
    ORDER_DATE TIMESTAMP_LTZ,
    NOTES TEXT,
    FIRST_PLANNED_PICKUP_TIME_PST TIMESTAMP_LTZ,
    SUBMITTED_QUANTITY FLOAT,
    PO_ACKNOWLEDGEMENT_ID TEXT,
    VCBS_VC_ATTRIBUTE_DAYS_BETWEEN_CONFIRMATION_AND_WINDOW_START_HE NUMBER,
    CARRIER TEXT,
    INFRACTION_SUBTYPE_CODE TEXT,
    BOL_INPUT_FROM_ASN TEXT,
    CARTON_SPAN_UNITS FLOAT,
    CARTON_LABEL_TYPE TEXT,
    REVERSAL_INVOICE_# TEXT,
    BOL_FROM_ASN TEXT,
    VENDOR_SUBMITTED_FREIGHT_READY_DATE_PST TIMESTAMP_LTZ,
    DAYS_LATE FLOAT,
    CARRIER_TRACKING_#PRO# TEXT,
    INBOUND_SHIPMENT_DELIVERY_ISD_ID TEXT,
    VENDOR_CODE TEXT,
    CARTON_WEIGHT_UNITS FLOAT,
    _CREATED_ON TIMESTAMP_LTZ,
    PRO_#_IN_ASN TEXT,
    EAN TEXT,
    _LAST_UPDATED_ON TIMESTAMP_LTZ,
    ACTUAL_DATE TIMESTAMP_LTZ,
    CREATION_DATE TIMESTAMP_LTZ,
    LP_LABEL TEXT,
    CARTON_HEIGHT FLOAT,
    STANDARD_CARRIER_ALPHA_CODE TEXT,
    CARTON_WEIGHT FLOAT,
    CARTON_WIDTH FLOAT,
    SCANNABLE_ID TEXT
);

INSERT INTO "AMAZON_VENDOR_ANALYTICS__SAMPLE_DATASET"."PUBLIC"."DEFECT_REPORT" (PREP_REPORTING_DATE, PRODUCT_NAME, DEFECT_RATE, SHIPMENT_ID_AMAZON_REFERENCE_NUMBER, UPC, ROUTING_REQUEST_CREATION_DATE, PURCHASE_ORDER_#, ID, PID_CARTON_ID, FREIGHT_PICKUP_CARRIER_SCAC, _REVISION, ISSUE_TYPE, CARTON_LENGTH, ASN_#, ORDER_TYPE, ISSUE_ID, CONFIRMED_PRODUCT_QUANTITY, SUB_TYPE_OF_THE_NON_COMPLIANCE, CARRIER_PRO, DISPUTE_BY, SHIP_OR_DELIVERY_WINDOW_END, ISD_RECEIVED_TIMESTAMP, STATUS, HAS_PERFORMANCE_IMPACT, ASIN, FREIGHT_TERMS, QUANTITY, VCBS_VC_ATTRIBUTE_PO_QUANTITY_CONFIRMED_BEFORE_CUTOFF-HEADER, CHARGE_INVOICE_#, VCBS_VC_ATTRIBUTE_UNIT_QUANTITY_HEADER, SHIP_OR_DELIVERY_WINDOW_START, EARLY_DAYS, CARTON_LABEL_VALUE, DATE_CARRIER_ENTERED_THE_FIRST_REQUESTED_DELIVERY_DATE, CARTON_ID, FULFILLMENT_CENTER, WITHIN_THRESHOLD, FINANCIAL_CHARGE, ACTUAL_FREIGHT_PICKUP_TIME_PST, _PARTNERUUID, VCBS_VC_ATTRIBUTE_VEHICLE_RUN_ID_HEADER_CODE, BILL_OF_LADING_#, CONTAINER_LABEL, CARTON_OR_PACKAGE_RECEIVE_DATE, PRODUCT_GROUP, TRACKING_ID, ORDER_DATE, NOTES, FIRST_PLANNED_PICKUP_TIME_PST, SUBMITTED_QUANTITY, PO_ACKNOWLEDGEMENT_ID, VCBS_VC_ATTRIBUTE_DAYS_BETWEEN_CONFIRMATION_AND_WINDOW_START_HE, CARRIER, INFRACTION_SUBTYPE_CODE, BOL_INPUT_FROM_ASN, CARTON_SPAN_UNITS, CARTON_LABEL_TYPE, REVERSAL_INVOICE_#, BOL_FROM_ASN, VENDOR_SUBMITTED_FREIGHT_READY_DATE_PST, DAYS_LATE, CARRIER_TRACKING_#PRO#, INBOUND_SHIPMENT_DELIVERY_ISD_ID, VENDOR_CODE, CARTON_WEIGHT_UNITS, _CREATED_ON, PRO_#_IN_ASN, EAN, _LAST_UPDATED_ON, ACTUAL_DATE, CREATION_DATE, LP_LABEL, CARTON_HEIGHT, STANDARD_CARRIER_ALPHA_CODE, CARTON_WEIGHT, CARTON_WIDTH, SCANNABLE_ID) VALUES (NULL, 'NAME_350', 0.0, 'ID_466', 'UPC_257', NULL, '#_185', 141435, 'ID_466', '', 4, 'Prep - Taping', 0.0, 'ASN_1', '', 'ID_1850', 0.0, '', '', '2020-12-25 00:00:00-08:00', NULL, NULL, 'Charged', '', 'ASIN_6', '', 10.0, 0.0, '#_1', 0.0, NULL, '', '', NULL, 'ID_466', '', '', 3.0, NULL, '0ba25d78-760e-4541-8eca-e4ff8292d0b1', 'ID_466', '#_1', '', NULL, 0.0, 'ID_466', NULL, 'Some random notes', NULL, 0.0, 'ID_466', 0, '', 'CODE_10', 'ASN_1', 0.0, '', '#_1', 'ASN_1', NULL, 0.0, '#_1', 'ID_466', 'CODE_9', 0.0, '2021-11-04 14:35:37-07:00', 'ASN_1', 'EAN_69', '2022-01-12 16:55:54-08:00', NULL, '2021-08-30 00:00:00-07:00', 'LPLABEL_1', 0.0, 'CODE_10', 0.0, 0.0, 'ID_466'), (NULL, 'NAME_408', 0.0, 'ID_466', 'UPC_257', NULL, '#_427', 142069, 'ID_466', '', 3, 'Prep - Taping', 0.0, 'ASN_1', '', 'ID_2484', 0.0, '', '', '2020-06-26 00:00:00-07:00', NULL, NULL, 'Charged', '', 'ASIN_3671', '', 12.0, 0.0, '#_1', 0.0, NULL, '', '', NULL, 'ID_466', '', '', 3.6, NULL, '0ba25d78-760e-4541-8eca-e4ff8292d0b1', 'ID_466', '#_1', '', NULL, 0.0, 'ID_466', NULL, 'Some random notes', NULL, 0.0, 'ID_466', 0, '', 'CODE_10', 'ASN_1', 0.0, '', '#_1', 'ASN_1', NULL, 0.0, '#_1', 'ID_466', 'CODE_9', 0.0, '2021-11-04 14:35:37-07:00', 'ASN_1', 'EAN_112', '2021-11-06 12:43:16-07:00', NULL, '2021-03-03 00:00:00-08:00', 'LPLABEL_1', 0.0, 'CODE_10', 0.0, 0.0, 'ID_466'), (NULL, 'NAME_362', 0.0, 'ID_466', 'UPC_257', NULL, '#_433', 142074, 'ID_466', '', 3, 'Prep - Taping', 0.0, 'ASN_1', '', 'ID_2489', 0.0, '', '', '2020-06-26 00:00:00-07:00', NULL, NULL, 'Charged', '', 'ASIN_17', '', 10.0, 0.0, '#_1', 0.0, NULL, '', '', NULL, 'ID_466', '', '', 3.0, NULL, '0ba25d78-760e-4541-8eca-e4ff8292d0b1', 'ID_466', '#_1', '', NULL, 0.0, 'ID_466', NULL, 'Some random notes', NULL, 0.0, 'ID_466', 0, '', 'CODE_10', 'ASN_1', 0.0, '', '#_1', 'ASN_1', NULL, 0.0, '#_1', 'ID_466', 'CODE_9', 0.0, '2021-11-04 14:35:37-07:00', 'ASN_1', 'EAN_77', '2021-11-06 12:43:16-07:00', NULL, '2021-03-01 00:00:00-08:00', 'LPLABEL_1', 0.0, 'CODE_10', 0.0, 0.0, 'ID_466'), (NULL, 'NAME_373', 0.0, 'ID_466', 'UPC_257', NULL, '#_431', 142077, 'ID_466', '', 3, 'Prep - Taping', 0.0, 'ASN_1', '', 'ID_2492', 0.0, '', '', '2020-06-19 00:00:00-07:00', NULL, NULL, 'Charged', '', 'ASIN_22', '', 6.0, 0.0, '#_1', 0.0, NULL, '', '', NULL, 'ID_466', '', '', 1.8, NULL, '0ba25d78-760e-4541-8eca-e4ff8292d0b1', 'ID_466', '#_1', '', NULL, 0.0, 'ID_466', NULL, 'Some random notes', NULL, 0.0, 'ID_466', 0, '', 'CODE_10', 'ASN_1', 0.0, '', '#_1', 'ASN_1', NULL, 0.0, '#_1', 'ID_466', 'CODE_11', 0.0, '2021-11-04 14:35:37-07:00', 'ASN_1', 'EAN_63', '2021-11-06 12:43:16-07:00', NULL, '2021-02-28 00:00:00-08:00', 'LPLABEL_1', 0.0, 'CODE_10', 0.0, 0.0, 'ID_466'), (NULL, 'NAME_362', 0.0, 'ID_466', 'UPC_257', NULL, '#_445', 142090, 'ID_466', '', 3, 'Prep - Taping', 0.0, 'ASN_1', '', 'ID_2505', 0.0, '', '', '2020-06-19 00:00:00-07:00', NULL, NULL, 'Charged', '', 'ASIN_17', '', 10.0, 0.0, '#_1', 0.0, NULL, '', '', NULL, 'ID_466', '', '', 3.0, NULL, '0ba25d78-760e-4541-8eca-e4ff8292d0b1', 'ID_466', '#_1', '', NULL, 0.0, 'ID_466', NULL, 'Some random notes', NULL, 0.0, 'ID_466', 0, '', 'CODE_10', 'ASN_1', 0.0, '', '#_1', 'ASN_1', NULL, 0.0, '#_1', 'ID_466', 'CODE_9', 0.0, '2021-11-04 14:35:37-07:00', 'ASN_1', 'EAN_77', '2021-11-06 12:43:16-07:00', NULL, '2021-02-26 00:00:00-08:00', 'LPLABEL_1', 0.0, 'CODE_10', 0.0, 0.0, 'ID_466');