Dumpschema - LPGP D Entity

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 13194

#!

/bin/sh

# Release 7.2.1.3-P3 [Build 49525]

nzsql -l > /tmp/LPGP_D_ENTITY_schema.sh_$$.sqlout


if egrep -iq '^ +LPGP_D_ENTITY +\|' /tmp/LPGP_D_ENTITY_schema.sh_$$.sqlout; then
echo "Database 'LPGP_D_ENTITY' already exists."
echo "Please verify the purpose and value of the existing database before
proceeding."
rm -f /tmp/LPGP_D_ENTITY_schema.sh_$$.sqlout
exit -1
fi
rm -f /tmp/LPGP_D_ENTITY_schema.sh_$$.sqlout

nzsql system -q <<-EOF

-- Create Database
\echo -n 'Creating "LPGP_D_ENTITY" database...'
create database LPGP_D_ENTITY;
\echo 'done.'

EOF

export NZ_ENCODING=utf8
nzsql LPGP_D_ENTITY -q <<-EOF

-- Number of Schemas = 13
-- Number of Tables = 418
-- Number of Views = 3
-- Number of Sequences = 0
-- Number of Synonyms = 0
-- Number of UDFs = 0
-- Number of Stored Procedures = 0
-- Number of UDAs = 0
-- Number of libraries = 0

-- Schema Definitions

\echo -n 'Creating Schemas...'

CREATE SCHEMA LPAT_DMA_ENTITY_REPORT;


\echo -n .

CREATE SCHEMA LPAT_DMA_ENTITY_REPORT2;


\echo -n .

CREATE SCHEMA LPFR_DMA_ENTITY_REPORT;


\echo -n .

CREATE SCHEMA LPFR_DMA_ENTITY_REPORT2;


\echo -n .

CREATE SCHEMA LPGP_D_ENTITY;


\echo -n .

CREATE SCHEMA LPGR_DMA_ENTITY_REPORT;


\echo -n .
CREATE SCHEMA LPGR_DMA_ENTITY_REPORT2;
\echo -n .

CREATE SCHEMA LPNO_DMA_ENTITY_REPORT;


\echo -n .

CREATE SCHEMA LPNO_DMA_ENTITY_REPORT2;


\echo -n .

CREATE SCHEMA LPRO_DMA_ENTITY_REPORT;


\echo -n .

CREATE SCHEMA LPUK_DMA_ENTITY_REPORT;


\echo -n .

CREATE SCHEMA LPUS_DMA_ENTITY_REPORT;


\echo -n .

CREATE SCHEMA LP_ALL_DMA_ENTITY_REPORT2;


\echo -n .

\echo 'done(13 Schemas).'

-- Table Definitions

\echo -n 'Creating Tables'


CREATE TABLE LPUK_DMA_ENTITY_REPORT."CHARACTERISTICS" ( -- Number of Columns = 9
"CHARACTERISTIC_ID" INTEGER not null,
"CHARACTERISTIC_TYPE_ID" INTEGER,
"CHARACTERISTIC_TYPE_DESC" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_MAIN_CODE" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_SUB_CODE" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_DESC" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"ORGANISATION_CODE" CHARACTER(4),
PRIMARY KEY ( "CHARACTERISTIC_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.CHARACTERISTICS ( -- Number of Columns = 9


CHARACTERISTIC_ID INTEGER not null,
CHARACTERISTIC_TYPE_ID INTEGER,
CHARACTERISTIC_TYPE_DESC NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_MAIN_CODE NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_SUB_CODE NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_DESC NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_CONS NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
ORGANISATION_CODE CHARACTER(4),
PRIMARY KEY ( CHARACTERISTIC_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.CHARACTERISTICS ( -- Number of Columns = 9


CHARACTERISTIC_ID INTEGER not null,
CHARACTERISTIC_TYPE_ID INTEGER,
CHARACTERISTIC_TYPE_DESC NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_MAIN_CODE NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_SUB_CODE NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_DESC NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_CONS NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
ORGANISATION_CODE CHARACTER(4)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."CHARACTERISTICS" ( -- Number of Columns = 9


"CHARACTERISTIC_ID" INTEGER not null,
"CHARACTERISTIC_TYPE_ID" INTEGER,
"CHARACTERISTIC_TYPE_DESC" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_MAIN_CODE" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_SUB_CODE" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_DESC" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"ORGANISATION_CODE" CHARACTER(4),
PRIMARY KEY ( "CHARACTERISTIC_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.CHARACTERISTICS ( -- Number of Columns = 9


CHARACTERISTIC_ID INTEGER not null,
CHARACTERISTIC_TYPE_ID INTEGER,
CHARACTERISTIC_TYPE_DESC NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_MAIN_CODE NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_SUB_CODE NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_DESC NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_CONS NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
ORGANISATION_CODE CHARACTER(4),
PRIMARY KEY ( CHARACTERISTIC_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.CHARACTERISTICS ( -- Number of Columns = 9


CHARACTERISTIC_ID INTEGER not null,
CHARACTERISTIC_TYPE_ID INTEGER,
CHARACTERISTIC_TYPE_DESC NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_MAIN_CODE NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_SUB_CODE NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_DESC NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_CONS NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
ORGANISATION_CODE CHARACTER(4),
PRIMARY KEY ( CHARACTERISTIC_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.CHARACTERISTICS ( -- Number of Columns = 9


CHARACTERISTIC_ID INTEGER not null,
CHARACTERISTIC_TYPE_ID INTEGER,
CHARACTERISTIC_TYPE_DESC NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_MAIN_CODE NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_SUB_CODE NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_DESC NATIONAL CHARACTER VARYING(125),
CHARACTERISTIC_CONS NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
ORGANISATION_CODE CHARACTER(4),
PRIMARY KEY ( CHARACTERISTIC_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."CHARACTERISTICS" ( -- Number of Columns = 9


"CHARACTERISTIC_ID" INTEGER not null,
"CHARACTERISTIC_TYPE_ID" INTEGER,
"CHARACTERISTIC_TYPE_DESC" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_MAIN_CODE" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_SUB_CODE" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_DESC" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"ORGANISATION_CODE" CHARACTER(4),
PRIMARY KEY ( "CHARACTERISTIC_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."CHARACTERISTICS" ( -- Number of Columns = 9


"CHARACTERISTIC_ID" INTEGER not null,
"CHARACTERISTIC_TYPE_ID" INTEGER,
"CHARACTERISTIC_TYPE_DESC" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_MAIN_CODE" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_SUB_CODE" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_DESC" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"ORGANISATION_CODE" CHARACTER(4),
PRIMARY KEY ( "CHARACTERISTIC_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."CHARACTERISTICS" ( -- Number of Columns = 9


"CHARACTERISTIC_ID" INTEGER not null,
"CHARACTERISTIC_TYPE_ID" INTEGER,
"CHARACTERISTIC_TYPE_DESC" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_MAIN_CODE" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_SUB_CODE" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_DESC" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"ORGANISATION_CODE" CHARACTER(4),
PRIMARY KEY ( "CHARACTERISTIC_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."CHARACTERISTICS" ( -- Number of Columns = 9


"CHARACTERISTIC_ID" INTEGER not null,
"CHARACTERISTIC_TYPE_ID" INTEGER,
"CHARACTERISTIC_TYPE_DESC" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_MAIN_CODE" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_SUB_CODE" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_DESC" NATIONAL CHARACTER VARYING(125),
"CHARACTERISTIC_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"ORGANISATION_CODE" CHARACTER(4),
PRIMARY KEY ( "CHARACTERISTIC_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."CUSTOMER_MIDAS_DATA" ( -- Number of Columns =


10
"MIDAS_DATA_ID" BIGINT not null,
"LOCAL_KEY_MIDAS_DATA" NATIONAL CHARACTER VARYING(125),
"CUSTOMER_ID" BIGINT not null,
"CH_CLIENT_STATUS_ID" INTEGER not null,
"CLIENT_STATUS_REMARKS" NATIONAL CHARACTER VARYING(125),
"TOTAL_CVFLEET_POTENTIAL" NUMERIC(6,0),
"REALISTIC_CVFLEET_POTENTIAL" NUMERIC(6,0),
"CURRENT_YEAR_CVFLEET_POTENTIAL" NUMERIC(6,0),
"LOAD_DATE" DATE,
"CH_INTERNATIONALCUSTOMERSTATUS" INTEGER,
PRIMARY KEY ( "MIDAS_DATA_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.CUSTOMER_MIDAS_DATA ( -- Number of Columns =


10
MIDAS_DATA_ID BIGINT not null,
LOCAL_KEY_MIDAS_DATA NATIONAL CHARACTER VARYING(125),
CUSTOMER_ID BIGINT not null,
CH_CLIENT_STATUS_ID INTEGER not null,
CLIENT_STATUS_REMARKS NATIONAL CHARACTER VARYING(125),
TOTAL_CVFLEET_POTENTIAL NUMERIC(6,0),
REALISTIC_CVFLEET_POTENTIAL NUMERIC(6,0),
CURRENT_YEAR_CVFLEET_POTENTIAL NUMERIC(6,0),
LOAD_DATE DATE,
CH_INTERNATIONALCUSTOMERSTATUS INTEGER,
PRIMARY KEY ( MIDAS_DATA_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.CUSTOMER_MIDAS_DATA ( -- Number of Columns =


10
MIDAS_DATA_ID BIGINT not null,
LOCAL_KEY_MIDAS_DATA NATIONAL CHARACTER VARYING(125),
CUSTOMER_ID BIGINT not null,
CH_CLIENT_STATUS_ID INTEGER not null,
CLIENT_STATUS_REMARKS NATIONAL CHARACTER VARYING(125),
TOTAL_CVFLEET_POTENTIAL NUMERIC(6,0),
REALISTIC_CVFLEET_POTENTIAL NUMERIC(6,0),
CURRENT_YEAR_CVFLEET_POTENTIAL NUMERIC(6,0),
LOAD_DATE DATE,
CH_INTERNATIONALCUSTOMERSTATUS INTEGER
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."CUSTOMER_MIDAS_DATA" ( -- Number of Columns =


10
"MIDAS_DATA_ID" BIGINT not null,
"LOCAL_KEY_MIDAS_DATA" NATIONAL CHARACTER VARYING(125),
"CUSTOMER_ID" BIGINT not null,
"CH_CLIENT_STATUS_ID" INTEGER not null,
"CLIENT_STATUS_REMARKS" NATIONAL CHARACTER VARYING(125),
"TOTAL_CVFLEET_POTENTIAL" NUMERIC(6,0),
"REALISTIC_CVFLEET_POTENTIAL" NUMERIC(6,0),
"CURRENT_YEAR_CVFLEET_POTENTIAL" NUMERIC(6,0),
"LOAD_DATE" DATE,
"CH_INTERNATIONALCUSTOMERSTATUS" INTEGER,
PRIMARY KEY ( "MIDAS_DATA_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.CUSTOMER_MIDAS_DATA ( -- Number of Columns =


10
MIDAS_DATA_ID BIGINT not null,
LOCAL_KEY_MIDAS_DATA NATIONAL CHARACTER VARYING(125),
CUSTOMER_ID BIGINT not null,
CH_CLIENT_STATUS_ID INTEGER not null,
CLIENT_STATUS_REMARKS NATIONAL CHARACTER VARYING(125),
TOTAL_CVFLEET_POTENTIAL NUMERIC(6,0),
REALISTIC_CVFLEET_POTENTIAL NUMERIC(6,0),
CURRENT_YEAR_CVFLEET_POTENTIAL NUMERIC(6,0),
LOAD_DATE DATE,
CH_INTERNATIONALCUSTOMERSTATUS INTEGER,
PRIMARY KEY ( MIDAS_DATA_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.CUSTOMER_MIDAS_DATA ( -- Number of Columns =


10
MIDAS_DATA_ID BIGINT not null,
LOCAL_KEY_MIDAS_DATA NATIONAL CHARACTER VARYING(125),
CUSTOMER_ID BIGINT not null,
CH_CLIENT_STATUS_ID INTEGER not null,
CLIENT_STATUS_REMARKS NATIONAL CHARACTER VARYING(125),
TOTAL_CVFLEET_POTENTIAL NUMERIC(6,0),
REALISTIC_CVFLEET_POTENTIAL NUMERIC(6,0),
CURRENT_YEAR_CVFLEET_POTENTIAL NUMERIC(6,0),
LOAD_DATE DATE,
CH_INTERNATIONALCUSTOMERSTATUS INTEGER,
PRIMARY KEY ( MIDAS_DATA_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.CUSTOMER_MIDAS_DATA ( -- Number of Columns =


10
MIDAS_DATA_ID BIGINT not null,
LOCAL_KEY_MIDAS_DATA NATIONAL CHARACTER VARYING(125),
CUSTOMER_ID BIGINT not null,
CH_CLIENT_STATUS_ID INTEGER not null,
CLIENT_STATUS_REMARKS NATIONAL CHARACTER VARYING(125),
TOTAL_CVFLEET_POTENTIAL NUMERIC(6,0),
REALISTIC_CVFLEET_POTENTIAL NUMERIC(6,0),
CURRENT_YEAR_CVFLEET_POTENTIAL NUMERIC(6,0),
LOAD_DATE DATE,
CH_INTERNATIONALCUSTOMERSTATUS INTEGER,
PRIMARY KEY ( MIDAS_DATA_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."CUSTOMER_MIDAS_DATA" ( -- Number of Columns


= 10
"MIDAS_DATA_ID" BIGINT not null,
"LOCAL_KEY_MIDAS_DATA" NATIONAL CHARACTER VARYING(125),
"CUSTOMER_ID" BIGINT not null,
"CH_CLIENT_STATUS_ID" INTEGER not null,
"CLIENT_STATUS_REMARKS" NATIONAL CHARACTER VARYING(125),
"TOTAL_CVFLEET_POTENTIAL" NUMERIC(6,0),
"REALISTIC_CVFLEET_POTENTIAL" NUMERIC(6,0),
"CURRENT_YEAR_CVFLEET_POTENTIAL" NUMERIC(6,0),
"LOAD_DATE" DATE,
"CH_INTERNATIONALCUSTOMERSTATUS" INTEGER,
PRIMARY KEY ( "MIDAS_DATA_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."CUSTOMER_MIDAS_DATA" ( -- Number of Columns =


10
"MIDAS_DATA_ID" BIGINT not null,
"LOCAL_KEY_MIDAS_DATA" NATIONAL CHARACTER VARYING(125),
"CUSTOMER_ID" BIGINT not null,
"CH_CLIENT_STATUS_ID" INTEGER not null,
"CLIENT_STATUS_REMARKS" NATIONAL CHARACTER VARYING(125),
"TOTAL_CVFLEET_POTENTIAL" NUMERIC(6,0),
"REALISTIC_CVFLEET_POTENTIAL" NUMERIC(6,0),
"CURRENT_YEAR_CVFLEET_POTENTIAL" NUMERIC(6,0),
"LOAD_DATE" DATE,
"CH_INTERNATIONALCUSTOMERSTATUS" INTEGER,
PRIMARY KEY ( "MIDAS_DATA_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."CUSTOMER_MIDAS_DATA" ( -- Number of Columns


= 10
"MIDAS_DATA_ID" BIGINT not null,
"LOCAL_KEY_MIDAS_DATA" NATIONAL CHARACTER VARYING(125),
"CUSTOMER_ID" BIGINT not null,
"CH_CLIENT_STATUS_ID" INTEGER not null,
"CLIENT_STATUS_REMARKS" NATIONAL CHARACTER VARYING(125),
"TOTAL_CVFLEET_POTENTIAL" NUMERIC(6,0),
"REALISTIC_CVFLEET_POTENTIAL" NUMERIC(6,0),
"CURRENT_YEAR_CVFLEET_POTENTIAL" NUMERIC(6,0),
"LOAD_DATE" DATE,
"CH_INTERNATIONALCUSTOMERSTATUS" INTEGER,
PRIMARY KEY ( "MIDAS_DATA_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."CUSTOMER_MIDAS_DATA" ( -- Number of Columns =


10
"MIDAS_DATA_ID" BIGINT not null,
"LOCAL_KEY_MIDAS_DATA" NATIONAL CHARACTER VARYING(125),
"CUSTOMER_ID" BIGINT not null,
"CH_CLIENT_STATUS_ID" INTEGER not null,
"CLIENT_STATUS_REMARKS" NATIONAL CHARACTER VARYING(125),
"TOTAL_CVFLEET_POTENTIAL" NUMERIC(6,0),
"REALISTIC_CVFLEET_POTENTIAL" NUMERIC(6,0),
"CURRENT_YEAR_CVFLEET_POTENTIAL" NUMERIC(6,0),
"LOAD_DATE" DATE,
"CH_INTERNATIONALCUSTOMERSTATUS" INTEGER,
PRIMARY KEY ( "MIDAS_DATA_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .
CREATE TABLE LPUK_DMA_ENTITY_REPORT."CUSTOMER_SLA" ( -- Number of Columns = 38
"CUSTOMER_SLA_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"PRODUCT_ID" BIGINT not null,
"CH_DATA_EXTRACT_METH_AGREED_ID" INTEGER not null,
"CH_REGISTRATION_STAT_AGREED_ID" INTEGER not null,
"CH_SALE_CHANNEL_ID" INTEGER not null,
"CH_SALES_SUB_CHANNEL_ID" INTEGER not null,
"CH_WINTER_TYRES_AGREED_ID" INTEGER not null,
"CH_QUOTATION_MEDIUM_AGREED_ID" INTEGER not null,
"CH_PURCHASE_OPTION_AGREED_ID" INTEGER not null,
"CH_LEASEPLAN_BRAND_ID" INTEGER not null,
"LOCAL_KEY_CUSTOMER_SLA" NATIONAL CHARACTER VARYING(125),
"CUSTOMER_SLA_NUMBER" NATIONAL CHARACTER VARYING(125),
"PROFIT_SHARING_PERCENTAGE" NUMERIC(6,3),
"INVOICE_PAYMENT_TERM" NUMERIC(3,0),
"DIRECT_DEBIT_APPLICABLE" CHARACTER(1),
"CAR_COLLECTION_INCLUDED" INTEGER,
"INTEREST_MARGIN" NUMERIC(6,3),
"ACCOUNT_MANAGER_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_MANAGER_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_EXECUTIVE_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_EXECUTIVE_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_COORDINATOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_COORDINATOR_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_SUPPORT_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_SUPPORT_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_MANAGER_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_MANAGER_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_EXECUTIVE_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_EXECUTIVE_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_COORDINATOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_COORDINATOR_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_SUPPORT_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_SUPPORT_NAME" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"CH_FINANCIAL_SETTLEMENT_ID" INTEGER not null,
"MIN_NUMBER_OF_OBJECTS_IN_FS" NUMERIC(3,0),
"CH_MVA_SETTLEMENT_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "CUSTOMER_SLA_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA ( -- Number of Columns = 38


CUSTOMER_SLA_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
PRODUCT_ID BIGINT not null,
CH_DATA_EXTRACT_METH_AGREED_ID INTEGER not null,
CH_REGISTRATION_STAT_AGREED_ID INTEGER not null,
CH_SALE_CHANNEL_ID INTEGER not null,
CH_SALES_SUB_CHANNEL_ID INTEGER not null,
CH_WINTER_TYRES_AGREED_ID INTEGER not null,
CH_QUOTATION_MEDIUM_AGREED_ID INTEGER not null,
CH_PURCHASE_OPTION_AGREED_ID INTEGER not null,
CH_LEASEPLAN_BRAND_ID INTEGER not null,
LOCAL_KEY_CUSTOMER_SLA NATIONAL CHARACTER VARYING(125),
CUSTOMER_SLA_NUMBER NATIONAL CHARACTER VARYING(125),
PROFIT_SHARING_PERCENTAGE NUMERIC(6,3),
INVOICE_PAYMENT_TERM NUMERIC(3,0),
DIRECT_DEBIT_APPLICABLE CHARACTER(1),
CAR_COLLECTION_INCLUDED INTEGER,
INTEREST_MARGIN NUMERIC(6,3),
ACCOUNT_MANAGER_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_MANAGER_NAME NATIONAL CHARACTER VARYING(125),
ACCOUNT_EXECUTIVE_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_EXECUTIVE_NAME NATIONAL CHARACTER VARYING(125),
ACCOUNT_COORDINATOR_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_COORDINATOR_NAME NATIONAL CHARACTER VARYING(125),
ACCOUNT_SUPPORT_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_SUPPORT_NAME NATIONAL CHARACTER VARYING(125),
SALES_MANAGER_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_MANAGER_NAME NATIONAL CHARACTER VARYING(125),
SALES_EXECUTIVE_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_EXECUTIVE_NAME NATIONAL CHARACTER VARYING(125),
SALES_COORDINATOR_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_COORDINATOR_NAME NATIONAL CHARACTER VARYING(125),
SALES_SUPPORT_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_SUPPORT_NAME NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
CH_FINANCIAL_SETTLEMENT_ID INTEGER not null,
MIN_NUMBER_OF_OBJECTS_IN_FS NUMERIC(3,0),
CH_MVA_SETTLEMENT_TYPE_ID INTEGER not null,
PRIMARY KEY ( CUSTOMER_SLA_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA ( -- Number of Columns = 38


CUSTOMER_SLA_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
PRODUCT_ID BIGINT not null,
CH_DATA_EXTRACT_METH_AGREED_ID INTEGER not null,
CH_REGISTRATION_STAT_AGREED_ID INTEGER not null,
CH_SALE_CHANNEL_ID INTEGER not null,
CH_SALES_SUB_CHANNEL_ID INTEGER not null,
CH_WINTER_TYRES_AGREED_ID INTEGER not null,
CH_QUOTATION_MEDIUM_AGREED_ID INTEGER not null,
CH_PURCHASE_OPTION_AGREED_ID INTEGER not null,
CH_LEASEPLAN_BRAND_ID INTEGER not null,
LOCAL_KEY_CUSTOMER_SLA NATIONAL CHARACTER VARYING(125),
CUSTOMER_SLA_NUMBER NATIONAL CHARACTER VARYING(125),
PROFIT_SHARING_PERCENTAGE NUMERIC(6,3),
INVOICE_PAYMENT_TERM NUMERIC(3,0),
DIRECT_DEBIT_APPLICABLE CHARACTER(1),
CAR_COLLECTION_INCLUDED INTEGER,
INTEREST_MARGIN NUMERIC(6,3),
ACCOUNT_MANAGER_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_MANAGER_NAME NATIONAL CHARACTER VARYING(125),
ACCOUNT_EXECUTIVE_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_EXECUTIVE_NAME NATIONAL CHARACTER VARYING(125),
ACCOUNT_COORDINATOR_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_COORDINATOR_NAME NATIONAL CHARACTER VARYING(125),
ACCOUNT_SUPPORT_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_SUPPORT_NAME NATIONAL CHARACTER VARYING(125),
SALES_MANAGER_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_MANAGER_NAME NATIONAL CHARACTER VARYING(125),
SALES_EXECUTIVE_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_EXECUTIVE_NAME NATIONAL CHARACTER VARYING(125),
SALES_COORDINATOR_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_COORDINATOR_NAME NATIONAL CHARACTER VARYING(125),
SALES_SUPPORT_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_SUPPORT_NAME NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
CH_FINANCIAL_SETTLEMENT_ID INTEGER not null,
MIN_NUMBER_OF_OBJECTS_IN_FS NUMERIC(3,0),
CH_MVA_SETTLEMENT_TYPE_ID INTEGER not null
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."CUSTOMER_SLA" ( -- Number of Columns = 38


"CUSTOMER_SLA_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"PRODUCT_ID" BIGINT not null,
"CH_DATA_EXTRACT_METH_AGREED_ID" INTEGER not null,
"CH_REGISTRATION_STAT_AGREED_ID" INTEGER not null,
"CH_SALE_CHANNEL_ID" INTEGER not null,
"CH_SALES_SUB_CHANNEL_ID" INTEGER not null,
"CH_WINTER_TYRES_AGREED_ID" INTEGER not null,
"CH_QUOTATION_MEDIUM_AGREED_ID" INTEGER not null,
"CH_PURCHASE_OPTION_AGREED_ID" INTEGER not null,
"CH_LEASEPLAN_BRAND_ID" INTEGER not null,
"LOCAL_KEY_CUSTOMER_SLA" NATIONAL CHARACTER VARYING(125),
"CUSTOMER_SLA_NUMBER" NATIONAL CHARACTER VARYING(125),
"PROFIT_SHARING_PERCENTAGE" NUMERIC(6,3),
"INVOICE_PAYMENT_TERM" NUMERIC(3,0),
"DIRECT_DEBIT_APPLICABLE" CHARACTER(1),
"CAR_COLLECTION_INCLUDED" INTEGER,
"INTEREST_MARGIN" NUMERIC(6,3),
"ACCOUNT_MANAGER_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_MANAGER_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_EXECUTIVE_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_EXECUTIVE_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_COORDINATOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_COORDINATOR_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_SUPPORT_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_SUPPORT_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_MANAGER_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_MANAGER_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_EXECUTIVE_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_EXECUTIVE_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_COORDINATOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_COORDINATOR_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_SUPPORT_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_SUPPORT_NAME" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"CH_FINANCIAL_SETTLEMENT_ID" INTEGER not null,
"MIN_NUMBER_OF_OBJECTS_IN_FS" NUMERIC(3,0),
"CH_MVA_SETTLEMENT_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "CUSTOMER_SLA_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.CUSTOMER_SLA ( -- Number of Columns = 38


CUSTOMER_SLA_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
PRODUCT_ID BIGINT not null,
CH_DATA_EXTRACT_METH_AGREED_ID INTEGER not null,
CH_REGISTRATION_STAT_AGREED_ID INTEGER not null,
CH_SALE_CHANNEL_ID INTEGER not null,
CH_SALES_SUB_CHANNEL_ID INTEGER not null,
CH_WINTER_TYRES_AGREED_ID INTEGER not null,
CH_QUOTATION_MEDIUM_AGREED_ID INTEGER not null,
CH_PURCHASE_OPTION_AGREED_ID INTEGER not null,
CH_LEASEPLAN_BRAND_ID INTEGER not null,
LOCAL_KEY_CUSTOMER_SLA NATIONAL CHARACTER VARYING(125),
CUSTOMER_SLA_NUMBER NATIONAL CHARACTER VARYING(125),
PROFIT_SHARING_PERCENTAGE NUMERIC(6,3),
INVOICE_PAYMENT_TERM NUMERIC(3,0),
DIRECT_DEBIT_APPLICABLE CHARACTER(1),
CAR_COLLECTION_INCLUDED INTEGER,
INTEREST_MARGIN NUMERIC(6,3),
ACCOUNT_MANAGER_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_MANAGER_NAME NATIONAL CHARACTER VARYING(125),
ACCOUNT_EXECUTIVE_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_EXECUTIVE_NAME NATIONAL CHARACTER VARYING(125),
ACCOUNT_COORDINATOR_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_COORDINATOR_NAME NATIONAL CHARACTER VARYING(125),
ACCOUNT_SUPPORT_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_SUPPORT_NAME NATIONAL CHARACTER VARYING(125),
SALES_MANAGER_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_MANAGER_NAME NATIONAL CHARACTER VARYING(125),
SALES_EXECUTIVE_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_EXECUTIVE_NAME NATIONAL CHARACTER VARYING(125),
SALES_COORDINATOR_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_COORDINATOR_NAME NATIONAL CHARACTER VARYING(125),
SALES_SUPPORT_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_SUPPORT_NAME NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
CH_FINANCIAL_SETTLEMENT_ID INTEGER not null,
MIN_NUMBER_OF_OBJECTS_IN_FS NUMERIC(3,0),
CH_MVA_SETTLEMENT_TYPE_ID INTEGER not null,
PRIMARY KEY ( CUSTOMER_SLA_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.CUSTOMER_SLA ( -- Number of Columns = 38


CUSTOMER_SLA_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
PRODUCT_ID BIGINT not null,
CH_DATA_EXTRACT_METH_AGREED_ID INTEGER not null,
CH_REGISTRATION_STAT_AGREED_ID INTEGER not null,
CH_SALE_CHANNEL_ID INTEGER not null,
CH_SALES_SUB_CHANNEL_ID INTEGER not null,
CH_WINTER_TYRES_AGREED_ID INTEGER not null,
CH_QUOTATION_MEDIUM_AGREED_ID INTEGER not null,
CH_PURCHASE_OPTION_AGREED_ID INTEGER not null,
CH_LEASEPLAN_BRAND_ID INTEGER not null,
LOCAL_KEY_CUSTOMER_SLA NATIONAL CHARACTER VARYING(125),
CUSTOMER_SLA_NUMBER NATIONAL CHARACTER VARYING(125),
PROFIT_SHARING_PERCENTAGE NUMERIC(6,3),
INVOICE_PAYMENT_TERM NUMERIC(3,0),
DIRECT_DEBIT_APPLICABLE CHARACTER(1),
CAR_COLLECTION_INCLUDED INTEGER,
INTEREST_MARGIN NUMERIC(6,3),
ACCOUNT_MANAGER_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_MANAGER_NAME NATIONAL CHARACTER VARYING(125),
ACCOUNT_EXECUTIVE_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_EXECUTIVE_NAME NATIONAL CHARACTER VARYING(125),
ACCOUNT_COORDINATOR_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_COORDINATOR_NAME NATIONAL CHARACTER VARYING(125),
ACCOUNT_SUPPORT_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_SUPPORT_NAME NATIONAL CHARACTER VARYING(125),
SALES_MANAGER_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_MANAGER_NAME NATIONAL CHARACTER VARYING(125),
SALES_EXECUTIVE_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_EXECUTIVE_NAME NATIONAL CHARACTER VARYING(125),
SALES_COORDINATOR_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_COORDINATOR_NAME NATIONAL CHARACTER VARYING(125),
SALES_SUPPORT_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_SUPPORT_NAME NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
CH_FINANCIAL_SETTLEMENT_ID INTEGER not null,
MIN_NUMBER_OF_OBJECTS_IN_FS NUMERIC(3,0),
CH_MVA_SETTLEMENT_TYPE_ID INTEGER not null,
PRIMARY KEY ( CUSTOMER_SLA_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.CUSTOMER_SLA ( -- Number of Columns = 38


CUSTOMER_SLA_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
PRODUCT_ID BIGINT not null,
CH_DATA_EXTRACT_METH_AGREED_ID INTEGER not null,
CH_REGISTRATION_STAT_AGREED_ID INTEGER not null,
CH_SALE_CHANNEL_ID INTEGER not null,
CH_SALES_SUB_CHANNEL_ID INTEGER not null,
CH_WINTER_TYRES_AGREED_ID INTEGER not null,
CH_QUOTATION_MEDIUM_AGREED_ID INTEGER not null,
CH_PURCHASE_OPTION_AGREED_ID INTEGER not null,
CH_LEASEPLAN_BRAND_ID INTEGER not null,
LOCAL_KEY_CUSTOMER_SLA NATIONAL CHARACTER VARYING(125),
CUSTOMER_SLA_NUMBER NATIONAL CHARACTER VARYING(125),
PROFIT_SHARING_PERCENTAGE NUMERIC(6,3),
INVOICE_PAYMENT_TERM NUMERIC(3,0),
DIRECT_DEBIT_APPLICABLE CHARACTER(1),
CAR_COLLECTION_INCLUDED INTEGER,
INTEREST_MARGIN NUMERIC(6,3),
ACCOUNT_MANAGER_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_MANAGER_NAME NATIONAL CHARACTER VARYING(125),
ACCOUNT_EXECUTIVE_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_EXECUTIVE_NAME NATIONAL CHARACTER VARYING(125),
ACCOUNT_COORDINATOR_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_COORDINATOR_NAME NATIONAL CHARACTER VARYING(125),
ACCOUNT_SUPPORT_NUMBER NATIONAL CHARACTER VARYING(125),
ACCOUNT_SUPPORT_NAME NATIONAL CHARACTER VARYING(125),
SALES_MANAGER_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_MANAGER_NAME NATIONAL CHARACTER VARYING(125),
SALES_EXECUTIVE_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_EXECUTIVE_NAME NATIONAL CHARACTER VARYING(125),
SALES_COORDINATOR_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_COORDINATOR_NAME NATIONAL CHARACTER VARYING(125),
SALES_SUPPORT_NUMBER NATIONAL CHARACTER VARYING(125),
SALES_SUPPORT_NAME NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
CH_FINANCIAL_SETTLEMENT_ID INTEGER not null,
MIN_NUMBER_OF_OBJECTS_IN_FS NUMERIC(3,0),
CH_MVA_SETTLEMENT_TYPE_ID INTEGER not null,
PRIMARY KEY ( CUSTOMER_SLA_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."CUSTOMER_SLA" ( -- Number of Columns = 38


"CUSTOMER_SLA_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"PRODUCT_ID" BIGINT not null,
"CH_DATA_EXTRACT_METH_AGREED_ID" INTEGER not null,
"CH_REGISTRATION_STAT_AGREED_ID" INTEGER not null,
"CH_SALE_CHANNEL_ID" INTEGER not null,
"CH_SALES_SUB_CHANNEL_ID" INTEGER not null,
"CH_WINTER_TYRES_AGREED_ID" INTEGER not null,
"CH_QUOTATION_MEDIUM_AGREED_ID" INTEGER not null,
"CH_PURCHASE_OPTION_AGREED_ID" INTEGER not null,
"CH_LEASEPLAN_BRAND_ID" INTEGER not null,
"LOCAL_KEY_CUSTOMER_SLA" NATIONAL CHARACTER VARYING(125),
"CUSTOMER_SLA_NUMBER" NATIONAL CHARACTER VARYING(125),
"PROFIT_SHARING_PERCENTAGE" NUMERIC(6,3),
"INVOICE_PAYMENT_TERM" NUMERIC(3,0),
"DIRECT_DEBIT_APPLICABLE" CHARACTER(1),
"CAR_COLLECTION_INCLUDED" INTEGER,
"INTEREST_MARGIN" NUMERIC(6,3),
"ACCOUNT_MANAGER_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_MANAGER_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_EXECUTIVE_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_EXECUTIVE_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_COORDINATOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_COORDINATOR_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_SUPPORT_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_SUPPORT_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_MANAGER_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_MANAGER_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_EXECUTIVE_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_EXECUTIVE_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_COORDINATOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_COORDINATOR_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_SUPPORT_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_SUPPORT_NAME" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"CH_FINANCIAL_SETTLEMENT_ID" INTEGER not null,
"MIN_NUMBER_OF_OBJECTS_IN_FS" NUMERIC(3,0),
"CH_MVA_SETTLEMENT_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "CUSTOMER_SLA_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."CUSTOMER_SLA" ( -- Number of Columns = 38


"CUSTOMER_SLA_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"PRODUCT_ID" BIGINT not null,
"CH_DATA_EXTRACT_METH_AGREED_ID" INTEGER not null,
"CH_REGISTRATION_STAT_AGREED_ID" INTEGER not null,
"CH_SALE_CHANNEL_ID" INTEGER not null,
"CH_SALES_SUB_CHANNEL_ID" INTEGER not null,
"CH_WINTER_TYRES_AGREED_ID" INTEGER not null,
"CH_QUOTATION_MEDIUM_AGREED_ID" INTEGER not null,
"CH_PURCHASE_OPTION_AGREED_ID" INTEGER not null,
"CH_LEASEPLAN_BRAND_ID" INTEGER not null,
"LOCAL_KEY_CUSTOMER_SLA" NATIONAL CHARACTER VARYING(125),
"CUSTOMER_SLA_NUMBER" NATIONAL CHARACTER VARYING(125),
"PROFIT_SHARING_PERCENTAGE" NUMERIC(6,3),
"INVOICE_PAYMENT_TERM" NUMERIC(3,0),
"DIRECT_DEBIT_APPLICABLE" CHARACTER(1),
"CAR_COLLECTION_INCLUDED" INTEGER,
"INTEREST_MARGIN" NUMERIC(6,3),
"ACCOUNT_MANAGER_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_MANAGER_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_EXECUTIVE_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_EXECUTIVE_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_COORDINATOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_COORDINATOR_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_SUPPORT_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_SUPPORT_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_MANAGER_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_MANAGER_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_EXECUTIVE_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_EXECUTIVE_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_COORDINATOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_COORDINATOR_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_SUPPORT_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_SUPPORT_NAME" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"CH_FINANCIAL_SETTLEMENT_ID" INTEGER not null,
"MIN_NUMBER_OF_OBJECTS_IN_FS" NUMERIC(3,0),
"CH_MVA_SETTLEMENT_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "CUSTOMER_SLA_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."CUSTOMER_SLA" ( -- Number of Columns = 38


"CUSTOMER_SLA_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"PRODUCT_ID" BIGINT not null,
"CH_DATA_EXTRACT_METH_AGREED_ID" INTEGER not null,
"CH_REGISTRATION_STAT_AGREED_ID" INTEGER not null,
"CH_SALE_CHANNEL_ID" INTEGER not null,
"CH_SALES_SUB_CHANNEL_ID" INTEGER not null,
"CH_WINTER_TYRES_AGREED_ID" INTEGER not null,
"CH_QUOTATION_MEDIUM_AGREED_ID" INTEGER not null,
"CH_PURCHASE_OPTION_AGREED_ID" INTEGER not null,
"CH_LEASEPLAN_BRAND_ID" INTEGER not null,
"LOCAL_KEY_CUSTOMER_SLA" NATIONAL CHARACTER VARYING(125),
"CUSTOMER_SLA_NUMBER" NATIONAL CHARACTER VARYING(125),
"PROFIT_SHARING_PERCENTAGE" NUMERIC(6,3),
"INVOICE_PAYMENT_TERM" NUMERIC(3,0),
"DIRECT_DEBIT_APPLICABLE" CHARACTER(1),
"CAR_COLLECTION_INCLUDED" INTEGER,
"INTEREST_MARGIN" NUMERIC(6,3),
"ACCOUNT_MANAGER_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_MANAGER_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_EXECUTIVE_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_EXECUTIVE_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_COORDINATOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_COORDINATOR_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_SUPPORT_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_SUPPORT_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_MANAGER_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_MANAGER_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_EXECUTIVE_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_EXECUTIVE_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_COORDINATOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_COORDINATOR_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_SUPPORT_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_SUPPORT_NAME" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"CH_FINANCIAL_SETTLEMENT_ID" INTEGER not null,
"MIN_NUMBER_OF_OBJECTS_IN_FS" NUMERIC(3,0),
"CH_MVA_SETTLEMENT_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "CUSTOMER_SLA_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."CUSTOMER_SLA" ( -- Number of Columns = 38


"CUSTOMER_SLA_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"PRODUCT_ID" BIGINT not null,
"CH_DATA_EXTRACT_METH_AGREED_ID" INTEGER not null,
"CH_REGISTRATION_STAT_AGREED_ID" INTEGER not null,
"CH_SALE_CHANNEL_ID" INTEGER not null,
"CH_SALES_SUB_CHANNEL_ID" INTEGER not null,
"CH_WINTER_TYRES_AGREED_ID" INTEGER not null,
"CH_QUOTATION_MEDIUM_AGREED_ID" INTEGER not null,
"CH_PURCHASE_OPTION_AGREED_ID" INTEGER not null,
"CH_LEASEPLAN_BRAND_ID" INTEGER not null,
"LOCAL_KEY_CUSTOMER_SLA" NATIONAL CHARACTER VARYING(125),
"CUSTOMER_SLA_NUMBER" NATIONAL CHARACTER VARYING(125),
"PROFIT_SHARING_PERCENTAGE" NUMERIC(6,3),
"INVOICE_PAYMENT_TERM" NUMERIC(3,0),
"DIRECT_DEBIT_APPLICABLE" CHARACTER(1),
"CAR_COLLECTION_INCLUDED" INTEGER,
"INTEREST_MARGIN" NUMERIC(6,3),
"ACCOUNT_MANAGER_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_MANAGER_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_EXECUTIVE_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_EXECUTIVE_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_COORDINATOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_COORDINATOR_NAME" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_SUPPORT_NUMBER" NATIONAL CHARACTER VARYING(125),
"ACCOUNT_SUPPORT_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_MANAGER_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_MANAGER_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_EXECUTIVE_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_EXECUTIVE_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_COORDINATOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_COORDINATOR_NAME" NATIONAL CHARACTER VARYING(125),
"SALES_SUPPORT_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALES_SUPPORT_NAME" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"CH_FINANCIAL_SETTLEMENT_ID" INTEGER not null,
"MIN_NUMBER_OF_OBJECTS_IN_FS" NUMERIC(3,0),
"CH_MVA_SETTLEMENT_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "CUSTOMER_SLA_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .
CREATE TABLE LPUK_DMA_ENTITY_REPORT."D_ORG" ( -- Number of Columns = 14
"ORG_KEY" BIGINT not null,
"ORGANISATION_CODE" CHARACTER(4),
"LP_ORGANISATION_NAME" NATIONAL CHARACTER VARYING(125),
"LP_REGION_NAME" NATIONAL CHARACTER VARYING(125),
"CURRENCY_CODE" NATIONAL CHARACTER VARYING(125),
"DISTANCE_UNIT_DESC" NATIONAL CHARACTER VARYING(125),
"DISTANCE_UNIT" NATIONAL CHARACTER VARYING(125),
"VOLUME_UNIT" NATIONAL CHARACTER VARYING(125),
"VOLUME_UNIT_DESC" NATIONAL CHARACTER VARYING(125),
"LAST_EXTRACT_DATE" DATE,
"LOAD_DATE" DATE,
"LAST_TRN_ID" CHARACTER(10),
"EXCHANGE_RATE_TO_EURO" NUMERIC(15,7),
"REPORT_PERIOD" NUMERIC(6,0)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.D_ORG ( -- Number of Columns = 14


ORG_KEY BIGINT not null,
ORGANISATION_CODE CHARACTER(4),
LP_ORGANISATION_NAME NATIONAL CHARACTER VARYING(125),
LP_REGION_NAME NATIONAL CHARACTER VARYING(125),
CURRENCY_CODE NATIONAL CHARACTER VARYING(125),
DISTANCE_UNIT_DESC NATIONAL CHARACTER VARYING(125),
DISTANCE_UNIT NATIONAL CHARACTER VARYING(125),
VOLUME_UNIT NATIONAL CHARACTER VARYING(125),
VOLUME_UNIT_DESC NATIONAL CHARACTER VARYING(125),
LAST_EXTRACT_DATE DATE,
LOAD_DATE DATE,
LAST_TRN_ID CHARACTER(10),
EXCHANGE_RATE_TO_EURO NUMERIC(15,7),
REPORT_PERIOD NUMERIC(6,0)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.D_ORG ( -- Number of Columns = 14


ORG_KEY BIGINT not null,
ORGANISATION_CODE CHARACTER(4),
LP_ORGANISATION_NAME NATIONAL CHARACTER VARYING(125),
LP_REGION_NAME NATIONAL CHARACTER VARYING(125),
CURRENCY_CODE NATIONAL CHARACTER VARYING(125),
DISTANCE_UNIT_DESC NATIONAL CHARACTER VARYING(125),
DISTANCE_UNIT NATIONAL CHARACTER VARYING(125),
VOLUME_UNIT NATIONAL CHARACTER VARYING(125),
VOLUME_UNIT_DESC NATIONAL CHARACTER VARYING(125),
LAST_EXTRACT_DATE DATE,
LOAD_DATE DATE,
LAST_TRN_ID CHARACTER(10),
EXCHANGE_RATE_TO_EURO NUMERIC(15,7),
REPORT_PERIOD NUMERIC(6,0)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."D_ORG" ( -- Number of Columns = 14


"ORG_KEY" BIGINT not null,
"ORGANISATION_CODE" CHARACTER(4),
"LP_ORGANISATION_NAME" NATIONAL CHARACTER VARYING(125),
"LP_REGION_NAME" NATIONAL CHARACTER VARYING(125),
"CURRENCY_CODE" NATIONAL CHARACTER VARYING(125),
"DISTANCE_UNIT_DESC" NATIONAL CHARACTER VARYING(125),
"DISTANCE_UNIT" NATIONAL CHARACTER VARYING(125),
"VOLUME_UNIT" NATIONAL CHARACTER VARYING(125),
"VOLUME_UNIT_DESC" NATIONAL CHARACTER VARYING(125),
"LAST_EXTRACT_DATE" DATE,
"LOAD_DATE" DATE,
"LAST_TRN_ID" CHARACTER(10),
"EXCHANGE_RATE_TO_EURO" NUMERIC(15,7),
"REPORT_PERIOD" NUMERIC(6,0)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.D_ORG ( -- Number of Columns = 14


ORG_KEY BIGINT not null,
ORGANISATION_CODE CHARACTER(4),
LP_ORGANISATION_NAME NATIONAL CHARACTER VARYING(125),
LP_REGION_NAME NATIONAL CHARACTER VARYING(125),
CURRENCY_CODE NATIONAL CHARACTER VARYING(125),
DISTANCE_UNIT_DESC NATIONAL CHARACTER VARYING(125),
DISTANCE_UNIT NATIONAL CHARACTER VARYING(125),
VOLUME_UNIT NATIONAL CHARACTER VARYING(125),
VOLUME_UNIT_DESC NATIONAL CHARACTER VARYING(125),
LAST_EXTRACT_DATE DATE,
LOAD_DATE DATE,
LAST_TRN_ID CHARACTER(10),
EXCHANGE_RATE_TO_EURO NUMERIC(15,7),
REPORT_PERIOD NUMERIC(6,0)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.D_ORG ( -- Number of Columns = 14


ORG_KEY BIGINT not null,
ORGANISATION_CODE CHARACTER(4),
LP_ORGANISATION_NAME NATIONAL CHARACTER VARYING(125),
LP_REGION_NAME NATIONAL CHARACTER VARYING(125),
CURRENCY_CODE NATIONAL CHARACTER VARYING(125),
DISTANCE_UNIT_DESC NATIONAL CHARACTER VARYING(125),
DISTANCE_UNIT NATIONAL CHARACTER VARYING(125),
VOLUME_UNIT NATIONAL CHARACTER VARYING(125),
VOLUME_UNIT_DESC NATIONAL CHARACTER VARYING(125),
LAST_EXTRACT_DATE DATE,
LOAD_DATE DATE,
LAST_TRN_ID CHARACTER(10),
EXCHANGE_RATE_TO_EURO NUMERIC(15,7),
REPORT_PERIOD NUMERIC(6,0)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.D_ORG ( -- Number of Columns = 14


ORG_KEY BIGINT not null,
ORGANISATION_CODE CHARACTER(4),
LP_ORGANISATION_NAME NATIONAL CHARACTER VARYING(125),
LP_REGION_NAME NATIONAL CHARACTER VARYING(125),
CURRENCY_CODE NATIONAL CHARACTER VARYING(125),
DISTANCE_UNIT_DESC NATIONAL CHARACTER VARYING(125),
DISTANCE_UNIT NATIONAL CHARACTER VARYING(125),
VOLUME_UNIT NATIONAL CHARACTER VARYING(125),
VOLUME_UNIT_DESC NATIONAL CHARACTER VARYING(125),
LAST_EXTRACT_DATE DATE,
LOAD_DATE DATE,
LAST_TRN_ID CHARACTER(10),
EXCHANGE_RATE_TO_EURO NUMERIC(15,7),
REPORT_PERIOD NUMERIC(6,0)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."D_ORG" ( -- Number of Columns = 14


"ORG_KEY" BIGINT not null,
"ORGANISATION_CODE" CHARACTER(4),
"LP_ORGANISATION_NAME" NATIONAL CHARACTER VARYING(125),
"LP_REGION_NAME" NATIONAL CHARACTER VARYING(125),
"CURRENCY_CODE" NATIONAL CHARACTER VARYING(125),
"DISTANCE_UNIT_DESC" NATIONAL CHARACTER VARYING(125),
"DISTANCE_UNIT" NATIONAL CHARACTER VARYING(125),
"VOLUME_UNIT" NATIONAL CHARACTER VARYING(125),
"VOLUME_UNIT_DESC" NATIONAL CHARACTER VARYING(125),
"LAST_EXTRACT_DATE" DATE,
"LOAD_DATE" DATE,
"LAST_TRN_ID" CHARACTER(10),
"EXCHANGE_RATE_TO_EURO" NUMERIC(15,7),
"REPORT_PERIOD" NUMERIC(6,0)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."D_ORG" ( -- Number of Columns = 14


"ORG_KEY" BIGINT not null,
"ORGANISATION_CODE" CHARACTER(4),
"LP_ORGANISATION_NAME" NATIONAL CHARACTER VARYING(125),
"LP_REGION_NAME" NATIONAL CHARACTER VARYING(125),
"CURRENCY_CODE" NATIONAL CHARACTER VARYING(125),
"DISTANCE_UNIT_DESC" NATIONAL CHARACTER VARYING(125),
"DISTANCE_UNIT" NATIONAL CHARACTER VARYING(125),
"VOLUME_UNIT" NATIONAL CHARACTER VARYING(125),
"VOLUME_UNIT_DESC" NATIONAL CHARACTER VARYING(125),
"LAST_EXTRACT_DATE" DATE,
"LOAD_DATE" DATE,
"LAST_TRN_ID" CHARACTER(10),
"EXCHANGE_RATE_TO_EURO" NUMERIC(15,7),
"REPORT_PERIOD" NUMERIC(6,0)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."D_ORG" ( -- Number of Columns = 14


"ORG_KEY" BIGINT not null,
"ORGANISATION_CODE" CHARACTER(4),
"LP_ORGANISATION_NAME" NATIONAL CHARACTER VARYING(125),
"LP_REGION_NAME" NATIONAL CHARACTER VARYING(125),
"CURRENCY_CODE" NATIONAL CHARACTER VARYING(125),
"DISTANCE_UNIT_DESC" NATIONAL CHARACTER VARYING(125),
"DISTANCE_UNIT" NATIONAL CHARACTER VARYING(125),
"VOLUME_UNIT" NATIONAL CHARACTER VARYING(125),
"VOLUME_UNIT_DESC" NATIONAL CHARACTER VARYING(125),
"LAST_EXTRACT_DATE" DATE,
"LOAD_DATE" DATE,
"LAST_TRN_ID" CHARACTER(10),
"EXCHANGE_RATE_TO_EURO" NUMERIC(15,7),
"REPORT_PERIOD" NUMERIC(6,0)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."D_ORG" ( -- Number of Columns = 14


"ORG_KEY" BIGINT not null,
"ORGANISATION_CODE" CHARACTER(4),
"LP_ORGANISATION_NAME" NATIONAL CHARACTER VARYING(125),
"LP_REGION_NAME" NATIONAL CHARACTER VARYING(125),
"CURRENCY_CODE" NATIONAL CHARACTER VARYING(125),
"DISTANCE_UNIT_DESC" NATIONAL CHARACTER VARYING(125),
"DISTANCE_UNIT" NATIONAL CHARACTER VARYING(125),
"VOLUME_UNIT" NATIONAL CHARACTER VARYING(125),
"VOLUME_UNIT_DESC" NATIONAL CHARACTER VARYING(125),
"LAST_EXTRACT_DATE" DATE,
"LOAD_DATE" DATE,
"LAST_TRN_ID" CHARACTER(10),
"EXCHANGE_RATE_TO_EURO" NUMERIC(15,7),
"REPORT_PERIOD" NUMERIC(6,0)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."D_TIME" ( -- Number of Columns = 7


"DATE" DATE not null,
"YEAR" INTEGER,
"MONTH" INTEGER,
"MONTH_DESC" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"PERIOD" NUMERIC(6,0),
"WEEK" INTEGER,
PRIMARY KEY ( "DATE" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.D_TIME ( -- Number of Columns = 7


DATE DATE not null,
YEAR INTEGER,
MONTH INTEGER,
MONTH_DESC NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PERIOD NUMERIC(6,0),
WEEK INTEGER,
PRIMARY KEY ( DATE )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.D_TIME ( -- Number of Columns = 7


DATE DATE not null,
YEAR INTEGER,
MONTH INTEGER,
MONTH_DESC NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PERIOD NUMERIC(6,0),
WEEK INTEGER
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."D_TIME" ( -- Number of Columns = 7


"DATE" DATE not null,
"YEAR" INTEGER,
"MONTH" INTEGER,
"MONTH_DESC" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"PERIOD" NUMERIC(6,0),
"WEEK" INTEGER,
PRIMARY KEY ( "DATE" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.D_TIME ( -- Number of Columns = 7


DATE DATE not null,
YEAR INTEGER,
MONTH INTEGER,
MONTH_DESC NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PERIOD NUMERIC(6,0),
WEEK INTEGER,
PRIMARY KEY ( DATE )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.D_TIME ( -- Number of Columns = 7


DATE DATE not null,
YEAR INTEGER,
MONTH INTEGER,
MONTH_DESC NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PERIOD NUMERIC(6,0),
WEEK INTEGER,
PRIMARY KEY ( DATE )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.D_TIME ( -- Number of Columns = 7


DATE DATE not null,
YEAR INTEGER,
MONTH INTEGER,
MONTH_DESC NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PERIOD NUMERIC(6,0),
WEEK INTEGER,
PRIMARY KEY ( DATE )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."D_TIME" ( -- Number of Columns = 7


"DATE" DATE not null,
"YEAR" INTEGER,
"MONTH" INTEGER,
"MONTH_DESC" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"PERIOD" NUMERIC(6,0),
"WEEK" INTEGER,
PRIMARY KEY ( "DATE" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."D_TIME" ( -- Number of Columns = 7


"DATE" DATE not null,
"YEAR" INTEGER,
"MONTH" INTEGER,
"MONTH_DESC" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"PERIOD" NUMERIC(6,0),
"WEEK" INTEGER,
PRIMARY KEY ( "DATE" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."D_TIME" ( -- Number of Columns = 7


"DATE" DATE not null,
"YEAR" INTEGER,
"MONTH" INTEGER,
"MONTH_DESC" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"PERIOD" NUMERIC(6,0),
"WEEK" INTEGER,
PRIMARY KEY ( "DATE" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."D_TIME" ( -- Number of Columns = 7


"DATE" DATE not null,
"YEAR" INTEGER,
"MONTH" INTEGER,
"MONTH_DESC" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"PERIOD" NUMERIC(6,0),
"WEEK" INTEGER,
PRIMARY KEY ( "DATE" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_ADDL_INSURANCE_COVER_ITEM" ( -- Number of


Columns = 13
"ADDL_INSURANCE_COVER_ITEM_ID" BIGINT not null,
"LOCAL_KEY_ADDL_INSCOVER_ITEM" NATIONAL CHARACTER VARYING(125),
"INSURANCE_COVER_ID" BIGINT not null,
"CH_INSCOVERITEM_CATEGORY_ID" INTEGER not null,
"CH_INSCOVERITEM_SUBCATEGORY_ID" INTEGER not null,
"CH_INSCOVER_ITEM_DATA_TYPE_ID" INTEGER not null,
"INSCOVER_ITEM_AMOUNTVALUE" NUMERIC(11,2),
"INSCOVER_ITEM_AMOUNTVALUE_EUR" NUMERIC(11,2),
"INSCOVER_ITEM_NUMERICVALUE" NUMERIC(17,5),
"INSCOVER_ITEM_PERCENTAGEVALUE" NUMERIC(6,3),
"INSCOVER_ITEM_TEXTVALUE" NATIONAL CHARACTER VARYING(125),
"INSCOVER_ITEM_FLAGVALUE" CHARACTER(1),
"LOAD_DATE" DATE,
PRIMARY KEY ( "ADDL_INSURANCE_COVER_ITEM_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM ( -- Number of


Columns = 13
ADDL_INSURANCE_COVER_ITEM_ID BIGINT not null,
LOCAL_KEY_ADDL_INSCOVER_ITEM NATIONAL CHARACTER VARYING(125),
INSURANCE_COVER_ID BIGINT not null,
CH_INSCOVERITEM_CATEGORY_ID INTEGER not null,
CH_INSCOVERITEM_SUBCATEGORY_ID INTEGER not null,
CH_INSCOVER_ITEM_DATA_TYPE_ID INTEGER not null,
INSCOVER_ITEM_AMOUNTVALUE NUMERIC(11,2),
INSCOVER_ITEM_AMOUNTVALUE_EUR NUMERIC(11,2),
INSCOVER_ITEM_NUMERICVALUE NUMERIC(17,5),
INSCOVER_ITEM_PERCENTAGEVALUE NUMERIC(6,3),
INSCOVER_ITEM_TEXTVALUE NATIONAL CHARACTER VARYING(125),
INSCOVER_ITEM_FLAGVALUE CHARACTER(1),
LOAD_DATE DATE,
PRIMARY KEY ( ADDL_INSURANCE_COVER_ITEM_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_ADDL_INSURANCE_COVER_ITEM ( -- Number of


Columns = 13
ADDL_INSURANCE_COVER_ITEM_ID BIGINT not null,
LOCAL_KEY_ADDL_INSCOVER_ITEM NATIONAL CHARACTER VARYING(125),
INSURANCE_COVER_ID BIGINT not null,
CH_INSCOVERITEM_CATEGORY_ID INTEGER not null,
CH_INSCOVERITEM_SUBCATEGORY_ID INTEGER not null,
CH_INSCOVER_ITEM_DATA_TYPE_ID INTEGER not null,
INSCOVER_ITEM_AMOUNTVALUE NUMERIC(11,2),
INSCOVER_ITEM_AMOUNTVALUE_EUR NUMERIC(11,2),
INSCOVER_ITEM_NUMERICVALUE NUMERIC(17,5),
INSCOVER_ITEM_PERCENTAGEVALUE NUMERIC(6,3),
INSCOVER_ITEM_TEXTVALUE NATIONAL CHARACTER VARYING(125),
INSCOVER_ITEM_FLAGVALUE CHARACTER(1),
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_ADDL_INSURANCE_COVER_ITEM" ( -- Number of


Columns = 13
"ADDL_INSURANCE_COVER_ITEM_ID" BIGINT not null,
"LOCAL_KEY_ADDL_INSCOVER_ITEM" NATIONAL CHARACTER VARYING(125),
"INSURANCE_COVER_ID" BIGINT not null,
"CH_INSCOVERITEM_CATEGORY_ID" INTEGER not null,
"CH_INSCOVERITEM_SUBCATEGORY_ID" INTEGER not null,
"CH_INSCOVER_ITEM_DATA_TYPE_ID" INTEGER not null,
"INSCOVER_ITEM_AMOUNTVALUE" NUMERIC(11,2),
"INSCOVER_ITEM_AMOUNTVALUE_EUR" NUMERIC(11,2),
"INSCOVER_ITEM_NUMERICVALUE" NUMERIC(17,5),
"INSCOVER_ITEM_PERCENTAGEVALUE" NUMERIC(6,3),
"INSCOVER_ITEM_TEXTVALUE" NATIONAL CHARACTER VARYING(125),
"INSCOVER_ITEM_FLAGVALUE" CHARACTER(1),
"LOAD_DATE" DATE,
PRIMARY KEY ( "ADDL_INSURANCE_COVER_ITEM_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM ( -- Number of


Columns = 13
ADDL_INSURANCE_COVER_ITEM_ID BIGINT not null,
LOCAL_KEY_ADDL_INSCOVER_ITEM NATIONAL CHARACTER VARYING(125),
INSURANCE_COVER_ID BIGINT not null,
CH_INSCOVERITEM_CATEGORY_ID INTEGER not null,
CH_INSCOVERITEM_SUBCATEGORY_ID INTEGER not null,
CH_INSCOVER_ITEM_DATA_TYPE_ID INTEGER not null,
INSCOVER_ITEM_AMOUNTVALUE NUMERIC(11,2),
INSCOVER_ITEM_AMOUNTVALUE_EUR NUMERIC(11,2),
INSCOVER_ITEM_NUMERICVALUE NUMERIC(17,5),
INSCOVER_ITEM_PERCENTAGEVALUE NUMERIC(6,3),
INSCOVER_ITEM_TEXTVALUE NATIONAL CHARACTER VARYING(125),
INSCOVER_ITEM_FLAGVALUE CHARACTER(1),
LOAD_DATE DATE,
PRIMARY KEY ( ADDL_INSURANCE_COVER_ITEM_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_ADDL_INSURANCE_COVER_ITEM ( -- Number of


Columns = 13
ADDL_INSURANCE_COVER_ITEM_ID BIGINT not null,
LOCAL_KEY_ADDL_INSCOVER_ITEM NATIONAL CHARACTER VARYING(125),
INSURANCE_COVER_ID BIGINT not null,
CH_INSCOVERITEM_CATEGORY_ID INTEGER not null,
CH_INSCOVERITEM_SUBCATEGORY_ID INTEGER not null,
CH_INSCOVER_ITEM_DATA_TYPE_ID INTEGER not null,
INSCOVER_ITEM_AMOUNTVALUE NUMERIC(11,2),
INSCOVER_ITEM_AMOUNTVALUE_EUR NUMERIC(11,2),
INSCOVER_ITEM_NUMERICVALUE NUMERIC(17,5),
INSCOVER_ITEM_PERCENTAGEVALUE NUMERIC(6,3),
INSCOVER_ITEM_TEXTVALUE NATIONAL CHARACTER VARYING(125),
INSCOVER_ITEM_FLAGVALUE CHARACTER(1),
LOAD_DATE DATE,
PRIMARY KEY ( ADDL_INSURANCE_COVER_ITEM_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM ( -- Number of


Columns = 13
ADDL_INSURANCE_COVER_ITEM_ID BIGINT not null,
LOCAL_KEY_ADDL_INSCOVER_ITEM NATIONAL CHARACTER VARYING(125),
INSURANCE_COVER_ID BIGINT not null,
CH_INSCOVERITEM_CATEGORY_ID INTEGER not null,
CH_INSCOVERITEM_SUBCATEGORY_ID INTEGER not null,
CH_INSCOVER_ITEM_DATA_TYPE_ID INTEGER not null,
INSCOVER_ITEM_AMOUNTVALUE NUMERIC(11,2),
INSCOVER_ITEM_AMOUNTVALUE_EUR NUMERIC(11,2),
INSCOVER_ITEM_NUMERICVALUE NUMERIC(17,5),
INSCOVER_ITEM_PERCENTAGEVALUE NUMERIC(6,3),
INSCOVER_ITEM_TEXTVALUE NATIONAL CHARACTER VARYING(125),
INSCOVER_ITEM_FLAGVALUE CHARACTER(1),
LOAD_DATE DATE,
PRIMARY KEY ( ADDL_INSURANCE_COVER_ITEM_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_ADDL_INSURANCE_COVER_ITEM" ( -- Number of


Columns = 13
"ADDL_INSURANCE_COVER_ITEM_ID" BIGINT not null,
"LOCAL_KEY_ADDL_INSCOVER_ITEM" NATIONAL CHARACTER VARYING(125),
"INSURANCE_COVER_ID" BIGINT not null,
"CH_INSCOVERITEM_CATEGORY_ID" INTEGER not null,
"CH_INSCOVERITEM_SUBCATEGORY_ID" INTEGER not null,
"CH_INSCOVER_ITEM_DATA_TYPE_ID" INTEGER not null,
"INSCOVER_ITEM_AMOUNTVALUE" NUMERIC(11,2),
"INSCOVER_ITEM_AMOUNTVALUE_EUR" NUMERIC(11,2),
"INSCOVER_ITEM_NUMERICVALUE" NUMERIC(17,5),
"INSCOVER_ITEM_PERCENTAGEVALUE" NUMERIC(6,3),
"INSCOVER_ITEM_TEXTVALUE" NATIONAL CHARACTER VARYING(125),
"INSCOVER_ITEM_FLAGVALUE" CHARACTER(1),
"LOAD_DATE" DATE,
PRIMARY KEY ( "ADDL_INSURANCE_COVER_ITEM_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_ADDL_INSURANCE_COVER_ITEM" ( -- Number of


Columns = 13
"ADDL_INSURANCE_COVER_ITEM_ID" BIGINT not null,
"LOCAL_KEY_ADDL_INSCOVER_ITEM" NATIONAL CHARACTER VARYING(125),
"INSURANCE_COVER_ID" BIGINT not null,
"CH_INSCOVERITEM_CATEGORY_ID" INTEGER not null,
"CH_INSCOVERITEM_SUBCATEGORY_ID" INTEGER not null,
"CH_INSCOVER_ITEM_DATA_TYPE_ID" INTEGER not null,
"INSCOVER_ITEM_AMOUNTVALUE" NUMERIC(11,2),
"INSCOVER_ITEM_AMOUNTVALUE_EUR" NUMERIC(11,2),
"INSCOVER_ITEM_NUMERICVALUE" NUMERIC(17,5),
"INSCOVER_ITEM_PERCENTAGEVALUE" NUMERIC(6,3),
"INSCOVER_ITEM_TEXTVALUE" NATIONAL CHARACTER VARYING(125),
"INSCOVER_ITEM_FLAGVALUE" CHARACTER(1),
"LOAD_DATE" DATE,
PRIMARY KEY ( "ADDL_INSURANCE_COVER_ITEM_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_ADDL_INSURANCE_COVER_ITEM" ( -- Number of


Columns = 13
"ADDL_INSURANCE_COVER_ITEM_ID" BIGINT not null,
"LOCAL_KEY_ADDL_INSCOVER_ITEM" NATIONAL CHARACTER VARYING(125),
"INSURANCE_COVER_ID" BIGINT not null,
"CH_INSCOVERITEM_CATEGORY_ID" INTEGER not null,
"CH_INSCOVERITEM_SUBCATEGORY_ID" INTEGER not null,
"CH_INSCOVER_ITEM_DATA_TYPE_ID" INTEGER not null,
"INSCOVER_ITEM_AMOUNTVALUE" NUMERIC(11,2),
"INSCOVER_ITEM_AMOUNTVALUE_EUR" NUMERIC(11,2),
"INSCOVER_ITEM_NUMERICVALUE" NUMERIC(17,5),
"INSCOVER_ITEM_PERCENTAGEVALUE" NUMERIC(6,3),
"INSCOVER_ITEM_TEXTVALUE" NATIONAL CHARACTER VARYING(125),
"INSCOVER_ITEM_FLAGVALUE" CHARACTER(1),
"LOAD_DATE" DATE,
PRIMARY KEY ( "ADDL_INSURANCE_COVER_ITEM_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_ADDL_INSURANCE_COVER_ITEM" ( -- Number of


Columns = 13
"ADDL_INSURANCE_COVER_ITEM_ID" BIGINT not null,
"LOCAL_KEY_ADDL_INSCOVER_ITEM" NATIONAL CHARACTER VARYING(125),
"INSURANCE_COVER_ID" BIGINT not null,
"CH_INSCOVERITEM_CATEGORY_ID" INTEGER not null,
"CH_INSCOVERITEM_SUBCATEGORY_ID" INTEGER not null,
"CH_INSCOVER_ITEM_DATA_TYPE_ID" INTEGER not null,
"INSCOVER_ITEM_AMOUNTVALUE" NUMERIC(11,2),
"INSCOVER_ITEM_AMOUNTVALUE_EUR" NUMERIC(11,2),
"INSCOVER_ITEM_NUMERICVALUE" NUMERIC(17,5),
"INSCOVER_ITEM_PERCENTAGEVALUE" NUMERIC(6,3),
"INSCOVER_ITEM_TEXTVALUE" NATIONAL CHARACTER VARYING(125),
"INSCOVER_ITEM_FLAGVALUE" CHARACTER(1),
"LOAD_DATE" DATE,
PRIMARY KEY ( "ADDL_INSURANCE_COVER_ITEM_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_APPROVAL_DETAIL" ( -- Number of Columns =


11
"APPROVAL_DETAIL_ID" BIGINT not null,
"LOCAL_KEY_APPROVAL_DETAIL" NATIONAL CHARACTER VARYING(125) not null,
"CH_MAINTENANCE_DESCRIPTION_ID" INTEGER not null,
"CH_RECORD_STATUS_ID" INTEGER not null,
"LEASE_SERVICE_ID" INTEGER not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"APPROVAL_HEADER_ID" BIGINT not null,
"APPROVAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"APPROVAL_LINE_AMOUNT" NUMERIC(11,2),
"APPROVAL_PASSED_ON_LINE_AMOUNT" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "APPROVAL_DETAIL_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_APPROVAL_DETAIL ( -- Number of Columns = 11


APPROVAL_DETAIL_ID BIGINT not null,
LOCAL_KEY_APPROVAL_DETAIL NATIONAL CHARACTER VARYING(125) not null,
CH_MAINTENANCE_DESCRIPTION_ID INTEGER not null,
CH_RECORD_STATUS_ID INTEGER not null,
LEASE_SERVICE_ID INTEGER not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
APPROVAL_HEADER_ID BIGINT not null,
APPROVAL_NUMBER NATIONAL CHARACTER VARYING(125),
APPROVAL_LINE_AMOUNT NUMERIC(11,2),
APPROVAL_PASSED_ON_LINE_AMOUNT NUMERIC(11,2),
LOAD_DATE DATE,
PRIMARY KEY ( APPROVAL_DETAIL_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_DETAIL ( -- Number of Columns = 11


APPROVAL_DETAIL_ID BIGINT not null,
LOCAL_KEY_APPROVAL_DETAIL NATIONAL CHARACTER VARYING(125) not null,
CH_MAINTENANCE_DESCRIPTION_ID INTEGER not null,
CH_RECORD_STATUS_ID INTEGER not null,
LEASE_SERVICE_ID INTEGER not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
APPROVAL_HEADER_ID BIGINT not null,
APPROVAL_NUMBER NATIONAL CHARACTER VARYING(125),
APPROVAL_LINE_AMOUNT NUMERIC(11,2),
APPROVAL_PASSED_ON_LINE_AMOUNT NUMERIC(11,2),
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_APPROVAL_DETAIL" ( -- Number of Columns =


11
"APPROVAL_DETAIL_ID" BIGINT not null,
"LOCAL_KEY_APPROVAL_DETAIL" NATIONAL CHARACTER VARYING(125) not null,
"CH_MAINTENANCE_DESCRIPTION_ID" INTEGER not null,
"CH_RECORD_STATUS_ID" INTEGER not null,
"LEASE_SERVICE_ID" INTEGER not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"APPROVAL_HEADER_ID" BIGINT not null,
"APPROVAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"APPROVAL_LINE_AMOUNT" NUMERIC(11,2),
"APPROVAL_PASSED_ON_LINE_AMOUNT" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "APPROVAL_DETAIL_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_APPROVAL_DETAIL ( -- Number of Columns = 11


APPROVAL_DETAIL_ID BIGINT not null,
LOCAL_KEY_APPROVAL_DETAIL NATIONAL CHARACTER VARYING(125) not null,
CH_MAINTENANCE_DESCRIPTION_ID INTEGER not null,
CH_RECORD_STATUS_ID INTEGER not null,
LEASE_SERVICE_ID INTEGER not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
APPROVAL_HEADER_ID BIGINT not null,
APPROVAL_NUMBER NATIONAL CHARACTER VARYING(125),
APPROVAL_LINE_AMOUNT NUMERIC(11,2),
APPROVAL_PASSED_ON_LINE_AMOUNT NUMERIC(11,2),
LOAD_DATE DATE,
PRIMARY KEY ( APPROVAL_DETAIL_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_APPROVAL_DETAIL ( -- Number of Columns = 11


APPROVAL_DETAIL_ID BIGINT not null,
LOCAL_KEY_APPROVAL_DETAIL NATIONAL CHARACTER VARYING(125) not null,
CH_MAINTENANCE_DESCRIPTION_ID INTEGER not null,
CH_RECORD_STATUS_ID INTEGER not null,
LEASE_SERVICE_ID INTEGER not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
APPROVAL_HEADER_ID BIGINT not null,
APPROVAL_NUMBER NATIONAL CHARACTER VARYING(125),
APPROVAL_LINE_AMOUNT NUMERIC(11,2),
APPROVAL_PASSED_ON_LINE_AMOUNT NUMERIC(11,2),
LOAD_DATE DATE,
PRIMARY KEY ( APPROVAL_DETAIL_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_APPROVAL_DETAIL ( -- Number of Columns = 11


APPROVAL_DETAIL_ID BIGINT not null,
LOCAL_KEY_APPROVAL_DETAIL NATIONAL CHARACTER VARYING(125) not null,
CH_MAINTENANCE_DESCRIPTION_ID INTEGER not null,
CH_RECORD_STATUS_ID INTEGER not null,
LEASE_SERVICE_ID INTEGER not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
APPROVAL_HEADER_ID BIGINT not null,
APPROVAL_NUMBER NATIONAL CHARACTER VARYING(125),
APPROVAL_LINE_AMOUNT NUMERIC(11,2),
APPROVAL_PASSED_ON_LINE_AMOUNT NUMERIC(11,2),
LOAD_DATE DATE,
PRIMARY KEY ( APPROVAL_DETAIL_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .
CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_APPROVAL_DETAIL" ( -- Number of Columns =
11
"APPROVAL_DETAIL_ID" BIGINT not null,
"LOCAL_KEY_APPROVAL_DETAIL" NATIONAL CHARACTER VARYING(125) not null,
"CH_MAINTENANCE_DESCRIPTION_ID" INTEGER not null,
"CH_RECORD_STATUS_ID" INTEGER not null,
"LEASE_SERVICE_ID" INTEGER not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"APPROVAL_HEADER_ID" BIGINT not null,
"APPROVAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"APPROVAL_LINE_AMOUNT" NUMERIC(11,2),
"APPROVAL_PASSED_ON_LINE_AMOUNT" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "APPROVAL_DETAIL_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_APPROVAL_DETAIL" ( -- Number of Columns =


11
"APPROVAL_DETAIL_ID" BIGINT not null,
"LOCAL_KEY_APPROVAL_DETAIL" NATIONAL CHARACTER VARYING(125) not null,
"CH_MAINTENANCE_DESCRIPTION_ID" INTEGER not null,
"CH_RECORD_STATUS_ID" INTEGER not null,
"LEASE_SERVICE_ID" INTEGER not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"APPROVAL_HEADER_ID" BIGINT not null,
"APPROVAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"APPROVAL_LINE_AMOUNT" NUMERIC(11,2),
"APPROVAL_PASSED_ON_LINE_AMOUNT" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "APPROVAL_DETAIL_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_APPROVAL_DETAIL" ( -- Number of Columns =


11
"APPROVAL_DETAIL_ID" BIGINT not null,
"LOCAL_KEY_APPROVAL_DETAIL" NATIONAL CHARACTER VARYING(125) not null,
"CH_MAINTENANCE_DESCRIPTION_ID" INTEGER not null,
"CH_RECORD_STATUS_ID" INTEGER not null,
"LEASE_SERVICE_ID" INTEGER not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"APPROVAL_HEADER_ID" BIGINT not null,
"APPROVAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"APPROVAL_LINE_AMOUNT" NUMERIC(11,2),
"APPROVAL_PASSED_ON_LINE_AMOUNT" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "APPROVAL_DETAIL_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_APPROVAL_DETAIL" ( -- Number of Columns =


11
"APPROVAL_DETAIL_ID" BIGINT not null,
"LOCAL_KEY_APPROVAL_DETAIL" NATIONAL CHARACTER VARYING(125) not null,
"CH_MAINTENANCE_DESCRIPTION_ID" INTEGER not null,
"CH_RECORD_STATUS_ID" INTEGER not null,
"LEASE_SERVICE_ID" INTEGER not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"APPROVAL_HEADER_ID" BIGINT not null,
"APPROVAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"APPROVAL_LINE_AMOUNT" NUMERIC(11,2),
"APPROVAL_PASSED_ON_LINE_AMOUNT" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "APPROVAL_DETAIL_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_APPROVAL_HEADER" ( -- Number of Columns =


16
"APPROVAL_HEADER_ID" BIGINT not null,
"CH_APPROVAL_TYPE_ID" INTEGER not null,
"CH_APPROVAL_JOB_STATUS_ID" INTEGER not null,
"LOCAL_KEY_APPROVAL_HEADER" NATIONAL CHARACTER VARYING(125) not null,
"SERVICE_AUTORISATION_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SUPPLIER_ID" BIGINT not null,
"DAMAGE_ID" BIGINT not null,
"APPROVAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"IND_PASSED_ON" CHARACTER(4),
"APPROVAL_BOOKED_AMOUNT" NUMERIC(11,2),
"APPROVAL_AMOUNT" NUMERIC(11,2),
"EXTRA_GOODWILL_AMOUNT" NUMERIC(11,2),
"APPROVAL_CREATION_TIMESTAMP" TIMESTAMP,
"APPROVAL_LAST_UPD_TIMESTAMP" TIMESTAMP,
"LOAD_DATE" DATE not null,
PRIMARY KEY ( "APPROVAL_HEADER_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER ( -- Number of Columns = 16


APPROVAL_HEADER_ID BIGINT not null,
CH_APPROVAL_TYPE_ID INTEGER not null,
CH_APPROVAL_JOB_STATUS_ID INTEGER not null,
LOCAL_KEY_APPROVAL_HEADER NATIONAL CHARACTER VARYING(125) not null,
SERVICE_AUTORISATION_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
SUPPLIER_ID BIGINT not null,
DAMAGE_ID BIGINT not null,
APPROVAL_NUMBER NATIONAL CHARACTER VARYING(125),
IND_PASSED_ON CHARACTER(4),
APPROVAL_BOOKED_AMOUNT NUMERIC(11,2),
APPROVAL_AMOUNT NUMERIC(11,2),
EXTRA_GOODWILL_AMOUNT NUMERIC(11,2),
APPROVAL_CREATION_TIMESTAMP TIMESTAMP,
APPROVAL_LAST_UPD_TIMESTAMP TIMESTAMP,
LOAD_DATE DATE not null,
PRIMARY KEY ( APPROVAL_HEADER_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER ( -- Number of Columns = 16


APPROVAL_HEADER_ID BIGINT not null,
CH_APPROVAL_TYPE_ID INTEGER not null,
CH_APPROVAL_JOB_STATUS_ID INTEGER not null,
LOCAL_KEY_APPROVAL_HEADER NATIONAL CHARACTER VARYING(125) not null,
SERVICE_AUTORISATION_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
SUPPLIER_ID BIGINT not null,
DAMAGE_ID BIGINT not null,
APPROVAL_NUMBER NATIONAL CHARACTER VARYING(125),
IND_PASSED_ON CHARACTER(4),
APPROVAL_BOOKED_AMOUNT NUMERIC(11,2),
APPROVAL_AMOUNT NUMERIC(11,2),
EXTRA_GOODWILL_AMOUNT NUMERIC(11,2),
APPROVAL_CREATION_TIMESTAMP TIMESTAMP,
APPROVAL_LAST_UPD_TIMESTAMP TIMESTAMP,
LOAD_DATE DATE not null
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_APPROVAL_HEADER" ( -- Number of Columns =


16
"APPROVAL_HEADER_ID" BIGINT not null,
"CH_APPROVAL_TYPE_ID" INTEGER not null,
"CH_APPROVAL_JOB_STATUS_ID" INTEGER not null,
"LOCAL_KEY_APPROVAL_HEADER" NATIONAL CHARACTER VARYING(125) not null,
"SERVICE_AUTORISATION_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SUPPLIER_ID" BIGINT not null,
"DAMAGE_ID" BIGINT not null,
"APPROVAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"IND_PASSED_ON" CHARACTER(4),
"APPROVAL_BOOKED_AMOUNT" NUMERIC(11,2),
"APPROVAL_AMOUNT" NUMERIC(11,2),
"EXTRA_GOODWILL_AMOUNT" NUMERIC(11,2),
"APPROVAL_CREATION_TIMESTAMP" TIMESTAMP,
"APPROVAL_LAST_UPD_TIMESTAMP" TIMESTAMP,
"LOAD_DATE" DATE not null,
PRIMARY KEY ( "APPROVAL_HEADER_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_APPROVAL_HEADER ( -- Number of Columns = 16


APPROVAL_HEADER_ID BIGINT not null,
CH_APPROVAL_TYPE_ID INTEGER not null,
CH_APPROVAL_JOB_STATUS_ID INTEGER not null,
LOCAL_KEY_APPROVAL_HEADER NATIONAL CHARACTER VARYING(125) not null,
SERVICE_AUTORISATION_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
SUPPLIER_ID BIGINT not null,
DAMAGE_ID BIGINT not null,
APPROVAL_NUMBER NATIONAL CHARACTER VARYING(125),
IND_PASSED_ON CHARACTER(4),
APPROVAL_BOOKED_AMOUNT NUMERIC(11,2),
APPROVAL_AMOUNT NUMERIC(11,2),
EXTRA_GOODWILL_AMOUNT NUMERIC(11,2),
APPROVAL_CREATION_TIMESTAMP TIMESTAMP,
APPROVAL_LAST_UPD_TIMESTAMP TIMESTAMP,
LOAD_DATE DATE not null,
PRIMARY KEY ( APPROVAL_HEADER_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER ( -- Number of Columns = 16


APPROVAL_HEADER_ID BIGINT not null,
CH_APPROVAL_TYPE_ID INTEGER not null,
CH_APPROVAL_JOB_STATUS_ID INTEGER not null,
LOCAL_KEY_APPROVAL_HEADER NATIONAL CHARACTER VARYING(125) not null,
SERVICE_AUTORISATION_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
SUPPLIER_ID BIGINT not null,
DAMAGE_ID BIGINT not null,
APPROVAL_NUMBER NATIONAL CHARACTER VARYING(125),
IND_PASSED_ON CHARACTER(4),
APPROVAL_BOOKED_AMOUNT NUMERIC(11,2),
APPROVAL_AMOUNT NUMERIC(11,2),
EXTRA_GOODWILL_AMOUNT NUMERIC(11,2),
APPROVAL_CREATION_TIMESTAMP TIMESTAMP,
APPROVAL_LAST_UPD_TIMESTAMP TIMESTAMP,
LOAD_DATE DATE not null,
PRIMARY KEY ( APPROVAL_HEADER_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_APPROVAL_HEADER ( -- Number of Columns = 16


APPROVAL_HEADER_ID BIGINT not null,
CH_APPROVAL_TYPE_ID INTEGER not null,
CH_APPROVAL_JOB_STATUS_ID INTEGER not null,
LOCAL_KEY_APPROVAL_HEADER NATIONAL CHARACTER VARYING(125) not null,
SERVICE_AUTORISATION_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
SUPPLIER_ID BIGINT not null,
DAMAGE_ID BIGINT not null,
APPROVAL_NUMBER NATIONAL CHARACTER VARYING(125),
IND_PASSED_ON CHARACTER(4),
APPROVAL_BOOKED_AMOUNT NUMERIC(11,2),
APPROVAL_AMOUNT NUMERIC(11,2),
EXTRA_GOODWILL_AMOUNT NUMERIC(11,2),
APPROVAL_CREATION_TIMESTAMP TIMESTAMP,
APPROVAL_LAST_UPD_TIMESTAMP TIMESTAMP,
LOAD_DATE DATE not null,
PRIMARY KEY ( APPROVAL_HEADER_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_APPROVAL_HEADER" ( -- Number of Columns =


16
"APPROVAL_HEADER_ID" BIGINT not null,
"CH_APPROVAL_TYPE_ID" INTEGER not null,
"CH_APPROVAL_JOB_STATUS_ID" INTEGER not null,
"LOCAL_KEY_APPROVAL_HEADER" NATIONAL CHARACTER VARYING(125) not null,
"SERVICE_AUTORISATION_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SUPPLIER_ID" BIGINT not null,
"DAMAGE_ID" BIGINT not null,
"APPROVAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"IND_PASSED_ON" CHARACTER(4),
"APPROVAL_BOOKED_AMOUNT" NUMERIC(11,2),
"APPROVAL_AMOUNT" NUMERIC(11,2),
"EXTRA_GOODWILL_AMOUNT" NUMERIC(11,2),
"APPROVAL_CREATION_TIMESTAMP" TIMESTAMP,
"APPROVAL_LAST_UPD_TIMESTAMP" TIMESTAMP,
"LOAD_DATE" DATE not null,
PRIMARY KEY ( "APPROVAL_HEADER_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_APPROVAL_HEADER" ( -- Number of Columns =


16
"APPROVAL_HEADER_ID" BIGINT not null,
"CH_APPROVAL_TYPE_ID" INTEGER not null,
"CH_APPROVAL_JOB_STATUS_ID" INTEGER not null,
"LOCAL_KEY_APPROVAL_HEADER" NATIONAL CHARACTER VARYING(125) not null,
"SERVICE_AUTORISATION_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SUPPLIER_ID" BIGINT not null,
"DAMAGE_ID" BIGINT not null,
"APPROVAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"IND_PASSED_ON" CHARACTER(4),
"APPROVAL_BOOKED_AMOUNT" NUMERIC(11,2),
"APPROVAL_AMOUNT" NUMERIC(11,2),
"EXTRA_GOODWILL_AMOUNT" NUMERIC(11,2),
"APPROVAL_CREATION_TIMESTAMP" TIMESTAMP,
"APPROVAL_LAST_UPD_TIMESTAMP" TIMESTAMP,
"LOAD_DATE" DATE not null,
PRIMARY KEY ( "APPROVAL_HEADER_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_APPROVAL_HEADER" ( -- Number of Columns =


16
"APPROVAL_HEADER_ID" BIGINT not null,
"CH_APPROVAL_TYPE_ID" INTEGER not null,
"CH_APPROVAL_JOB_STATUS_ID" INTEGER not null,
"LOCAL_KEY_APPROVAL_HEADER" NATIONAL CHARACTER VARYING(125) not null,
"SERVICE_AUTORISATION_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SUPPLIER_ID" BIGINT not null,
"DAMAGE_ID" BIGINT not null,
"APPROVAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"IND_PASSED_ON" CHARACTER(4),
"APPROVAL_BOOKED_AMOUNT" NUMERIC(11,2),
"APPROVAL_AMOUNT" NUMERIC(11,2),
"EXTRA_GOODWILL_AMOUNT" NUMERIC(11,2),
"APPROVAL_CREATION_TIMESTAMP" TIMESTAMP,
"APPROVAL_LAST_UPD_TIMESTAMP" TIMESTAMP,
"LOAD_DATE" DATE not null,
PRIMARY KEY ( "APPROVAL_HEADER_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_APPROVAL_HEADER" ( -- Number of Columns =


16
"APPROVAL_HEADER_ID" BIGINT not null,
"CH_APPROVAL_TYPE_ID" INTEGER not null,
"CH_APPROVAL_JOB_STATUS_ID" INTEGER not null,
"LOCAL_KEY_APPROVAL_HEADER" NATIONAL CHARACTER VARYING(125) not null,
"SERVICE_AUTORISATION_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SUPPLIER_ID" BIGINT not null,
"DAMAGE_ID" BIGINT not null,
"APPROVAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"IND_PASSED_ON" CHARACTER(4),
"APPROVAL_BOOKED_AMOUNT" NUMERIC(11,2),
"APPROVAL_AMOUNT" NUMERIC(11,2),
"EXTRA_GOODWILL_AMOUNT" NUMERIC(11,2),
"APPROVAL_CREATION_TIMESTAMP" TIMESTAMP,
"APPROVAL_LAST_UPD_TIMESTAMP" TIMESTAMP,
"LOAD_DATE" DATE not null,
PRIMARY KEY ( "APPROVAL_HEADER_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_CALCULATION" ( -- Number of Columns = 8


"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CALCULATION_DATE" DATE not null,
"PROPOSAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"CALCULATION_ID" BIGINT not null,
"LOCAL_KEY_CALCULATION" NATIONAL CHARACTER VARYING(125),
"CH_CALCULATION_TYPE_ID" INTEGER not null,
"CH_QUOTATION_MEDIUM_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "CALCULATION_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_CALCULATION ( -- Number of Columns = 8


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CALCULATION_DATE DATE not null,
PROPOSAL_NUMBER NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
CALCULATION_ID BIGINT not null,
LOCAL_KEY_CALCULATION NATIONAL CHARACTER VARYING(125),
CH_CALCULATION_TYPE_ID INTEGER not null,
CH_QUOTATION_MEDIUM_TYPE_ID INTEGER not null,
PRIMARY KEY ( CALCULATION_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_CALCULATION ( -- Number of Columns = 8


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CALCULATION_DATE DATE not null,
PROPOSAL_NUMBER NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
CALCULATION_ID BIGINT not null,
LOCAL_KEY_CALCULATION NATIONAL CHARACTER VARYING(125),
CH_CALCULATION_TYPE_ID INTEGER not null,
CH_QUOTATION_MEDIUM_TYPE_ID INTEGER not null
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_CALCULATION" ( -- Number of Columns = 8


"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CALCULATION_DATE" DATE not null,
"PROPOSAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"CALCULATION_ID" BIGINT not null,
"LOCAL_KEY_CALCULATION" NATIONAL CHARACTER VARYING(125),
"CH_CALCULATION_TYPE_ID" INTEGER not null,
"CH_QUOTATION_MEDIUM_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "CALCULATION_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_CALCULATION ( -- Number of Columns = 8


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CALCULATION_DATE DATE not null,
PROPOSAL_NUMBER NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
CALCULATION_ID BIGINT not null,
LOCAL_KEY_CALCULATION NATIONAL CHARACTER VARYING(125),
CH_CALCULATION_TYPE_ID INTEGER not null,
CH_QUOTATION_MEDIUM_TYPE_ID INTEGER not null,
PRIMARY KEY ( CALCULATION_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_CALCULATION ( -- Number of Columns = 8


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CALCULATION_DATE DATE not null,
PROPOSAL_NUMBER NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
CALCULATION_ID BIGINT not null,
LOCAL_KEY_CALCULATION NATIONAL CHARACTER VARYING(125),
CH_CALCULATION_TYPE_ID INTEGER not null,
CH_QUOTATION_MEDIUM_TYPE_ID INTEGER not null,
PRIMARY KEY ( CALCULATION_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_CALCULATION ( -- Number of Columns = 8


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CALCULATION_DATE DATE not null,
PROPOSAL_NUMBER NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
CALCULATION_ID BIGINT not null,
LOCAL_KEY_CALCULATION NATIONAL CHARACTER VARYING(125),
CH_CALCULATION_TYPE_ID INTEGER not null,
CH_QUOTATION_MEDIUM_TYPE_ID INTEGER not null,
PRIMARY KEY ( CALCULATION_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_CALCULATION" ( -- Number of Columns = 8


"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CALCULATION_DATE" DATE not null,
"PROPOSAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"CALCULATION_ID" BIGINT not null,
"LOCAL_KEY_CALCULATION" NATIONAL CHARACTER VARYING(125),
"CH_CALCULATION_TYPE_ID" INTEGER not null,
"CH_QUOTATION_MEDIUM_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "CALCULATION_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_CALCULATION" ( -- Number of Columns = 8


"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CALCULATION_DATE" DATE not null,
"PROPOSAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"CALCULATION_ID" BIGINT not null,
"LOCAL_KEY_CALCULATION" NATIONAL CHARACTER VARYING(125),
"CH_CALCULATION_TYPE_ID" INTEGER not null,
"CH_QUOTATION_MEDIUM_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "CALCULATION_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_CALCULATION" ( -- Number of Columns = 8


"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CALCULATION_DATE" DATE not null,
"PROPOSAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"CALCULATION_ID" BIGINT not null,
"LOCAL_KEY_CALCULATION" NATIONAL CHARACTER VARYING(125),
"CH_CALCULATION_TYPE_ID" INTEGER not null,
"CH_QUOTATION_MEDIUM_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "CALCULATION_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_CALCULATION" ( -- Number of Columns = 8


"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CALCULATION_DATE" DATE not null,
"PROPOSAL_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"CALCULATION_ID" BIGINT not null,
"LOCAL_KEY_CALCULATION" NATIONAL CHARACTER VARYING(125),
"CH_CALCULATION_TYPE_ID" INTEGER not null,
"CH_QUOTATION_MEDIUM_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "CALCULATION_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_CLAIM" ( -- Number of Columns = 14


"CLAIM_ID" BIGINT not null,
"DAMAGE_ID" BIGINT not null,
"LOCAL_KEY_CLAIM" NATIONAL CHARACTER VARYING(125),
"CH_CLAIM_TYPE_ID" INTEGER not null,
"CH_CLAIM_STATUS_ID" INTEGER not null,
"CLAIM_PAID_AMOUNT" NUMERIC(11,2),
"CLAIM_PAID_AMOUNT_EUR" NUMERIC(11,2),
"CLAIM_RESERVE_AMOUNT" NUMERIC(11,2),
"CLAIM_RESERVE_AMOUNT_EUR" NUMERIC(11,2),
"CLAIM_DEDUCTIBLE_AMOUNT" NUMERIC(11,2),
"CLAIM_DEDUCTIBLE_AMOUNT_EUR" NUMERIC(11,2),
"LOSS_EXPENSES_PAID_AMOUNT" NUMERIC(11,2),
"LOSS_EXPENSES_PAID_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "CLAIM_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_CLAIM ( -- Number of Columns = 14


CLAIM_ID BIGINT not null,
DAMAGE_ID BIGINT not null,
LOCAL_KEY_CLAIM NATIONAL CHARACTER VARYING(125),
CH_CLAIM_TYPE_ID INTEGER not null,
CH_CLAIM_STATUS_ID INTEGER not null,
CLAIM_PAID_AMOUNT NUMERIC(11,2),
CLAIM_PAID_AMOUNT_EUR NUMERIC(11,2),
CLAIM_RESERVE_AMOUNT NUMERIC(11,2),
CLAIM_RESERVE_AMOUNT_EUR NUMERIC(11,2),
CLAIM_DEDUCTIBLE_AMOUNT NUMERIC(11,2),
CLAIM_DEDUCTIBLE_AMOUNT_EUR NUMERIC(11,2),
LOSS_EXPENSES_PAID_AMOUNT NUMERIC(11,2),
LOSS_EXPENSES_PAID_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
PRIMARY KEY ( CLAIM_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_CLAIM ( -- Number of Columns = 14


CLAIM_ID BIGINT not null,
DAMAGE_ID BIGINT not null,
LOCAL_KEY_CLAIM NATIONAL CHARACTER VARYING(125),
CH_CLAIM_TYPE_ID INTEGER not null,
CH_CLAIM_STATUS_ID INTEGER not null,
CLAIM_PAID_AMOUNT NUMERIC(11,2),
CLAIM_PAID_AMOUNT_EUR NUMERIC(11,2),
CLAIM_RESERVE_AMOUNT NUMERIC(11,2),
CLAIM_RESERVE_AMOUNT_EUR NUMERIC(11,2),
CLAIM_DEDUCTIBLE_AMOUNT NUMERIC(11,2),
CLAIM_DEDUCTIBLE_AMOUNT_EUR NUMERIC(11,2),
LOSS_EXPENSES_PAID_AMOUNT NUMERIC(11,2),
LOSS_EXPENSES_PAID_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_CLAIM" ( -- Number of Columns = 14


"CLAIM_ID" BIGINT not null,
"DAMAGE_ID" BIGINT not null,
"LOCAL_KEY_CLAIM" NATIONAL CHARACTER VARYING(125),
"CH_CLAIM_TYPE_ID" INTEGER not null,
"CH_CLAIM_STATUS_ID" INTEGER not null,
"CLAIM_PAID_AMOUNT" NUMERIC(11,2),
"CLAIM_PAID_AMOUNT_EUR" NUMERIC(11,2),
"CLAIM_RESERVE_AMOUNT" NUMERIC(11,2),
"CLAIM_RESERVE_AMOUNT_EUR" NUMERIC(11,2),
"CLAIM_DEDUCTIBLE_AMOUNT" NUMERIC(11,2),
"CLAIM_DEDUCTIBLE_AMOUNT_EUR" NUMERIC(11,2),
"LOSS_EXPENSES_PAID_AMOUNT" NUMERIC(11,2),
"LOSS_EXPENSES_PAID_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "CLAIM_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_CLAIM ( -- Number of Columns = 14


CLAIM_ID BIGINT not null,
DAMAGE_ID BIGINT not null,
LOCAL_KEY_CLAIM NATIONAL CHARACTER VARYING(125),
CH_CLAIM_TYPE_ID INTEGER not null,
CH_CLAIM_STATUS_ID INTEGER not null,
CLAIM_PAID_AMOUNT NUMERIC(11,2),
CLAIM_PAID_AMOUNT_EUR NUMERIC(11,2),
CLAIM_RESERVE_AMOUNT NUMERIC(11,2),
CLAIM_RESERVE_AMOUNT_EUR NUMERIC(11,2),
CLAIM_DEDUCTIBLE_AMOUNT NUMERIC(11,2),
CLAIM_DEDUCTIBLE_AMOUNT_EUR NUMERIC(11,2),
LOSS_EXPENSES_PAID_AMOUNT NUMERIC(11,2),
LOSS_EXPENSES_PAID_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
PRIMARY KEY ( CLAIM_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_CLAIM ( -- Number of Columns = 14


CLAIM_ID BIGINT not null,
DAMAGE_ID BIGINT not null,
LOCAL_KEY_CLAIM NATIONAL CHARACTER VARYING(125),
CH_CLAIM_TYPE_ID INTEGER not null,
CH_CLAIM_STATUS_ID INTEGER not null,
CLAIM_PAID_AMOUNT NUMERIC(11,2),
CLAIM_PAID_AMOUNT_EUR NUMERIC(11,2),
CLAIM_RESERVE_AMOUNT NUMERIC(11,2),
CLAIM_RESERVE_AMOUNT_EUR NUMERIC(11,2),
CLAIM_DEDUCTIBLE_AMOUNT NUMERIC(11,2),
CLAIM_DEDUCTIBLE_AMOUNT_EUR NUMERIC(11,2),
LOSS_EXPENSES_PAID_AMOUNT NUMERIC(11,2),
LOSS_EXPENSES_PAID_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
PRIMARY KEY ( CLAIM_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_CLAIM ( -- Number of Columns = 14


CLAIM_ID BIGINT not null,
DAMAGE_ID BIGINT not null,
LOCAL_KEY_CLAIM NATIONAL CHARACTER VARYING(125),
CH_CLAIM_TYPE_ID INTEGER not null,
CH_CLAIM_STATUS_ID INTEGER not null,
CLAIM_PAID_AMOUNT NUMERIC(11,2),
CLAIM_PAID_AMOUNT_EUR NUMERIC(11,2),
CLAIM_RESERVE_AMOUNT NUMERIC(11,2),
CLAIM_RESERVE_AMOUNT_EUR NUMERIC(11,2),
CLAIM_DEDUCTIBLE_AMOUNT NUMERIC(11,2),
CLAIM_DEDUCTIBLE_AMOUNT_EUR NUMERIC(11,2),
LOSS_EXPENSES_PAID_AMOUNT NUMERIC(11,2),
LOSS_EXPENSES_PAID_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
PRIMARY KEY ( CLAIM_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_CLAIM" ( -- Number of Columns = 14


"CLAIM_ID" BIGINT not null,
"DAMAGE_ID" BIGINT not null,
"LOCAL_KEY_CLAIM" NATIONAL CHARACTER VARYING(125),
"CH_CLAIM_TYPE_ID" INTEGER not null,
"CH_CLAIM_STATUS_ID" INTEGER not null,
"CLAIM_PAID_AMOUNT" NUMERIC(11,2),
"CLAIM_PAID_AMOUNT_EUR" NUMERIC(11,2),
"CLAIM_RESERVE_AMOUNT" NUMERIC(11,2),
"CLAIM_RESERVE_AMOUNT_EUR" NUMERIC(11,2),
"CLAIM_DEDUCTIBLE_AMOUNT" NUMERIC(11,2),
"CLAIM_DEDUCTIBLE_AMOUNT_EUR" NUMERIC(11,2),
"LOSS_EXPENSES_PAID_AMOUNT" NUMERIC(11,2),
"LOSS_EXPENSES_PAID_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "CLAIM_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_CLAIM" ( -- Number of Columns = 14


"CLAIM_ID" BIGINT not null,
"DAMAGE_ID" BIGINT not null,
"LOCAL_KEY_CLAIM" NATIONAL CHARACTER VARYING(125),
"CH_CLAIM_TYPE_ID" INTEGER not null,
"CH_CLAIM_STATUS_ID" INTEGER not null,
"CLAIM_PAID_AMOUNT" NUMERIC(11,2),
"CLAIM_PAID_AMOUNT_EUR" NUMERIC(11,2),
"CLAIM_RESERVE_AMOUNT" NUMERIC(11,2),
"CLAIM_RESERVE_AMOUNT_EUR" NUMERIC(11,2),
"CLAIM_DEDUCTIBLE_AMOUNT" NUMERIC(11,2),
"CLAIM_DEDUCTIBLE_AMOUNT_EUR" NUMERIC(11,2),
"LOSS_EXPENSES_PAID_AMOUNT" NUMERIC(11,2),
"LOSS_EXPENSES_PAID_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "CLAIM_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_CLAIM" ( -- Number of Columns = 14


"CLAIM_ID" BIGINT not null,
"DAMAGE_ID" BIGINT not null,
"LOCAL_KEY_CLAIM" NATIONAL CHARACTER VARYING(125),
"CH_CLAIM_TYPE_ID" INTEGER not null,
"CH_CLAIM_STATUS_ID" INTEGER not null,
"CLAIM_PAID_AMOUNT" NUMERIC(11,2),
"CLAIM_PAID_AMOUNT_EUR" NUMERIC(11,2),
"CLAIM_RESERVE_AMOUNT" NUMERIC(11,2),
"CLAIM_RESERVE_AMOUNT_EUR" NUMERIC(11,2),
"CLAIM_DEDUCTIBLE_AMOUNT" NUMERIC(11,2),
"CLAIM_DEDUCTIBLE_AMOUNT_EUR" NUMERIC(11,2),
"LOSS_EXPENSES_PAID_AMOUNT" NUMERIC(11,2),
"LOSS_EXPENSES_PAID_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "CLAIM_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_CLAIM" ( -- Number of Columns = 14


"CLAIM_ID" BIGINT not null,
"DAMAGE_ID" BIGINT not null,
"LOCAL_KEY_CLAIM" NATIONAL CHARACTER VARYING(125),
"CH_CLAIM_TYPE_ID" INTEGER not null,
"CH_CLAIM_STATUS_ID" INTEGER not null,
"CLAIM_PAID_AMOUNT" NUMERIC(11,2),
"CLAIM_PAID_AMOUNT_EUR" NUMERIC(11,2),
"CLAIM_RESERVE_AMOUNT" NUMERIC(11,2),
"CLAIM_RESERVE_AMOUNT_EUR" NUMERIC(11,2),
"CLAIM_DEDUCTIBLE_AMOUNT" NUMERIC(11,2),
"CLAIM_DEDUCTIBLE_AMOUNT_EUR" NUMERIC(11,2),
"LOSS_EXPENSES_PAID_AMOUNT" NUMERIC(11,2),
"LOSS_EXPENSES_PAID_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "CLAIM_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_CONTACT_EVENTS" ( -- Number of Columns = 9


"CONTACT_EVENT_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"LEASEPLAN_ID" BIGINT not null,
"LOCAL_KEY_CONTACT_EVENT" NATIONAL CHARACTER VARYING(125),
"EVENTDATE" DATE not null,
"NUMBER_OF_CALLS" INTEGER,
"CH_CALL_TYPE_ID" INTEGER not null,
"CH_OUTCOME_TYPE_ID" INTEGER not null,
"LOAD_DATE" DATE,
PRIMARY KEY ( "CONTACT_EVENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_CONTACT_EVENTS ( -- Number of Columns = 9


CONTACT_EVENT_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
LEASEPLAN_ID BIGINT not null,
LOCAL_KEY_CONTACT_EVENT NATIONAL CHARACTER VARYING(125),
EVENTDATE DATE not null,
NUMBER_OF_CALLS INTEGER,
CH_CALL_TYPE_ID INTEGER not null,
CH_OUTCOME_TYPE_ID INTEGER not null,
LOAD_DATE DATE,
PRIMARY KEY ( CONTACT_EVENT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_CONTACT_EVENTS ( -- Number of Columns = 9


CONTACT_EVENT_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
LEASEPLAN_ID BIGINT not null,
LOCAL_KEY_CONTACT_EVENT NATIONAL CHARACTER VARYING(125),
EVENTDATE DATE not null,
NUMBER_OF_CALLS INTEGER,
CH_CALL_TYPE_ID INTEGER not null,
CH_OUTCOME_TYPE_ID INTEGER not null,
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_CONTACT_EVENTS" ( -- Number of Columns = 9


"CONTACT_EVENT_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"LEASEPLAN_ID" BIGINT not null,
"LOCAL_KEY_CONTACT_EVENT" NATIONAL CHARACTER VARYING(125),
"EVENTDATE" DATE not null,
"NUMBER_OF_CALLS" INTEGER,
"CH_CALL_TYPE_ID" INTEGER not null,
"CH_OUTCOME_TYPE_ID" INTEGER not null,
"LOAD_DATE" DATE,
PRIMARY KEY ( "CONTACT_EVENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_CONTACT_EVENTS ( -- Number of Columns = 9


CONTACT_EVENT_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
LEASEPLAN_ID BIGINT not null,
LOCAL_KEY_CONTACT_EVENT NATIONAL CHARACTER VARYING(125),
EVENTDATE DATE not null,
NUMBER_OF_CALLS INTEGER,
CH_CALL_TYPE_ID INTEGER not null,
CH_OUTCOME_TYPE_ID INTEGER not null,
LOAD_DATE DATE,
PRIMARY KEY ( CONTACT_EVENT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_CONTACT_EVENTS ( -- Number of Columns = 9


CONTACT_EVENT_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
LEASEPLAN_ID BIGINT not null,
LOCAL_KEY_CONTACT_EVENT NATIONAL CHARACTER VARYING(125),
EVENTDATE DATE not null,
NUMBER_OF_CALLS INTEGER,
CH_CALL_TYPE_ID INTEGER not null,
CH_OUTCOME_TYPE_ID INTEGER not null,
LOAD_DATE DATE,
PRIMARY KEY ( CONTACT_EVENT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_CONTACT_EVENTS ( -- Number of Columns = 9


CONTACT_EVENT_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
LEASEPLAN_ID BIGINT not null,
LOCAL_KEY_CONTACT_EVENT NATIONAL CHARACTER VARYING(125),
EVENTDATE DATE not null,
NUMBER_OF_CALLS INTEGER,
CH_CALL_TYPE_ID INTEGER not null,
CH_OUTCOME_TYPE_ID INTEGER not null,
LOAD_DATE DATE,
PRIMARY KEY ( CONTACT_EVENT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_CONTACT_EVENTS" ( -- Number of Columns = 9


"CONTACT_EVENT_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"LEASEPLAN_ID" BIGINT not null,
"LOCAL_KEY_CONTACT_EVENT" NATIONAL CHARACTER VARYING(125),
"EVENTDATE" DATE not null,
"NUMBER_OF_CALLS" INTEGER,
"CH_CALL_TYPE_ID" INTEGER not null,
"CH_OUTCOME_TYPE_ID" INTEGER not null,
"LOAD_DATE" DATE,
PRIMARY KEY ( "CONTACT_EVENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_CONTACT_EVENTS" ( -- Number of Columns = 9


"CONTACT_EVENT_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"LEASEPLAN_ID" BIGINT not null,
"LOCAL_KEY_CONTACT_EVENT" NATIONAL CHARACTER VARYING(125),
"EVENTDATE" DATE not null,
"NUMBER_OF_CALLS" INTEGER,
"CH_CALL_TYPE_ID" INTEGER not null,
"CH_OUTCOME_TYPE_ID" INTEGER not null,
"LOAD_DATE" DATE,
PRIMARY KEY ( "CONTACT_EVENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_CONTACT_EVENTS" ( -- Number of Columns = 9


"CONTACT_EVENT_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"LEASEPLAN_ID" BIGINT not null,
"LOCAL_KEY_CONTACT_EVENT" NATIONAL CHARACTER VARYING(125),
"EVENTDATE" DATE not null,
"NUMBER_OF_CALLS" INTEGER,
"CH_CALL_TYPE_ID" INTEGER not null,
"CH_OUTCOME_TYPE_ID" INTEGER not null,
"LOAD_DATE" DATE,
PRIMARY KEY ( "CONTACT_EVENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_CONTACT_EVENTS" ( -- Number of Columns = 9


"CONTACT_EVENT_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"LEASEPLAN_ID" BIGINT not null,
"LOCAL_KEY_CONTACT_EVENT" NATIONAL CHARACTER VARYING(125),
"EVENTDATE" DATE not null,
"NUMBER_OF_CALLS" INTEGER,
"CH_CALL_TYPE_ID" INTEGER not null,
"CH_OUTCOME_TYPE_ID" INTEGER not null,
"LOAD_DATE" DATE,
PRIMARY KEY ( "CONTACT_EVENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_CUSTOMER_MONTHLY_INVOICED" ( -- Number of


Columns = 7
"CUSTOMER_MONTHLY_INVOICED_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LOCAL_KEY_CUSTOMERMONTHLYINV" NATIONAL CHARACTER VARYING(125),
"BOOK_PERIOD" NUMERIC(6,0),
"TOTAL_INVOICED_AMOUNT" NUMERIC(11,2),
"TOTAL_INVOICED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_CUSTOMER_MONTHLY_INVOICED ( -- Number of


Columns = 7
CUSTOMER_MONTHLY_INVOICED_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
LOCAL_KEY_CUSTOMERMONTHLYINV NATIONAL CHARACTER VARYING(125),
BOOK_PERIOD NUMERIC(6,0),
TOTAL_INVOICED_AMOUNT NUMERIC(11,2),
TOTAL_INVOICED_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_CUSTOMER_MONTHLY_INVOICED ( -- Number of


Columns = 7
CUSTOMER_MONTHLY_INVOICED_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
LOCAL_KEY_CUSTOMERMONTHLYINV NATIONAL CHARACTER VARYING(125),
BOOK_PERIOD NUMERIC(6,0),
TOTAL_INVOICED_AMOUNT NUMERIC(11,2),
TOTAL_INVOICED_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_CUSTOMER_MONTHLY_INVOICED" ( -- Number of


Columns = 7
"CUSTOMER_MONTHLY_INVOICED_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LOCAL_KEY_CUSTOMERMONTHLYINV" NATIONAL CHARACTER VARYING(125),
"BOOK_PERIOD" NUMERIC(6,0),
"TOTAL_INVOICED_AMOUNT" NUMERIC(11,2),
"TOTAL_INVOICED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_CUSTOMER_MONTHLY_INVOICED ( -- Number of


Columns = 7
CUSTOMER_MONTHLY_INVOICED_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
LOCAL_KEY_CUSTOMERMONTHLYINV NATIONAL CHARACTER VARYING(125),
BOOK_PERIOD NUMERIC(6,0),
TOTAL_INVOICED_AMOUNT NUMERIC(11,2),
TOTAL_INVOICED_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_CUSTOMER_MONTHLY_INVOICED ( -- Number of


Columns = 7
CUSTOMER_MONTHLY_INVOICED_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
LOCAL_KEY_CUSTOMERMONTHLYINV NATIONAL CHARACTER VARYING(125),
BOOK_PERIOD NUMERIC(6,0),
TOTAL_INVOICED_AMOUNT NUMERIC(11,2),
TOTAL_INVOICED_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_CUSTOMER_MONTHLY_INVOICED ( -- Number of


Columns = 7
CUSTOMER_MONTHLY_INVOICED_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
LOCAL_KEY_CUSTOMERMONTHLYINV NATIONAL CHARACTER VARYING(125),
BOOK_PERIOD NUMERIC(6,0),
TOTAL_INVOICED_AMOUNT NUMERIC(11,2),
TOTAL_INVOICED_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_CUSTOMER_MONTHLY_INVOICED" ( -- Number of


Columns = 7
"CUSTOMER_MONTHLY_INVOICED_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LOCAL_KEY_CUSTOMERMONTHLYINV" NATIONAL CHARACTER VARYING(125),
"BOOK_PERIOD" NUMERIC(6,0),
"TOTAL_INVOICED_AMOUNT" NUMERIC(11,2),
"TOTAL_INVOICED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_CUSTOMER_MONTHLY_INVOICED" ( -- Number of


Columns = 7
"CUSTOMER_MONTHLY_INVOICED_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LOCAL_KEY_CUSTOMERMONTHLYINV" NATIONAL CHARACTER VARYING(125),
"BOOK_PERIOD" NUMERIC(6,0),
"TOTAL_INVOICED_AMOUNT" NUMERIC(11,2),
"TOTAL_INVOICED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_CUSTOMER_MONTHLY_INVOICED" ( -- Number of


Columns = 7
"CUSTOMER_MONTHLY_INVOICED_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LOCAL_KEY_CUSTOMERMONTHLYINV" NATIONAL CHARACTER VARYING(125),
"BOOK_PERIOD" NUMERIC(6,0),
"TOTAL_INVOICED_AMOUNT" NUMERIC(11,2),
"TOTAL_INVOICED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_CUSTOMER_MONTHLY_INVOICED" ( -- Number of


Columns = 7
"CUSTOMER_MONTHLY_INVOICED_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LOCAL_KEY_CUSTOMERMONTHLYINV" NATIONAL CHARACTER VARYING(125),
"BOOK_PERIOD" NUMERIC(6,0),
"TOTAL_INVOICED_AMOUNT" NUMERIC(11,2),
"TOTAL_INVOICED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_DAMAGE" ( -- Number of Columns = 54


"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"DAMAGE_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_AMOUNT" NUMERIC(11,2),
"DAMAGE_AMOUNT_EUR" NUMERIC(11,2),
"DAMAGE_RECOVERED_AMOUNT" NUMERIC(11,2),
"DAMAGE_RECOVERED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"DAMAGE_DATE" DATE not null,
"DAMAGE_ID" BIGINT not null,
"LOCAL_KEY_DAMAGE" NATIONAL CHARACTER VARYING(125),
"CH_DAMAGE_CAUSE_ID" INTEGER not null,
"LOCAL_KEY_LP_EXPERT" NATIONAL CHARACTER VARYING(125),
"LP_EXPERT_NUMBER" NATIONAL CHARACTER VARYING(125),
"LP_EXPERT_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMAGE_DRIVER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_DRIVER_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_DRIVER_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMGE_REPAIRSHOP" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_NAME" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_ADDRESS" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMAGE_BROKER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_BROKER_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_BROKER_NAME" NATIONAL CHARACTER VARYING(125),
"OWN_RISK_AMOUNT" NUMERIC(11,2),
"OWN_RISK_AMOUNT_EUR" NUMERIC(11,2),
"OWN_FAULT_INDICATOR" CHARACTER(1),
"CAR_TRANSPORTATION_REQUIRED" CHARACTER(1),
"CH_DAMAGE_CIRCUMSTANCE_ID" INTEGER,
"CH_DAMAGE_AREA_ID" INTEGER,
"CH_DAMAGE_STATUS_ID" INTEGER,
"ACCIDENT_ADDRESS" NATIONAL CHARACTER VARYING(125),
"DAMAGE_CREATION_DATE" DATE,
"DAMAGE_ASSESSMENT_DATE" DATE,
"REPAIRSHOP_ENTRY_DATE" DATE,
"DAMAGEREPAIR_BUDGETAPPR_DATE" DATE,
"DAMAGEREPAIR_START_DATE" DATE,
"PLANNED_DAMAGEREPAIR_END_DATE" DATE,
"ACTUAL_DAMAGEREPAIR_END_DATE" DATE,
"DAMAGEREPAIR_DURATION" NUMERIC(3,0),
"CH_DAMAGE_CATEGORY_ID" INTEGER,
"LOCAL_KEY_DRIVER_AT_ACCIDENT" NATIONAL CHARACTER VARYING(125),
"DRIVER_AT_ACCIDENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"DRIVER_AT_ACCIDENT_NAME" NATIONAL CHARACTER VARYING(125),
"AT_FAULT_INDICATOR" CHARACTER(1),
"CH_DAMAGE_FILE_STATUS_ID" INTEGER,
"DAMAGE_NOTIFICATION_DATE" DATE,
"CH_OD_ACCIDENT_TYPE_ID" INTEGER,
"CH_TPL_ACCIDENT_TYPE_ID" INTEGER,
"MILEAGE_AT_DAMAGEEVENTMOMENT" NUMERIC(7,0),
"BODILY_INJURY_INDICATOR" CHARACTER(1),
"DAMAGE_DESCRIPTION" NATIONAL CHARACTER VARYING(500),
"RECOVERABLE_INDICATOR" CHARACTER(1),
"CH_LEGAL_LIABILITY_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "DAMAGE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_DAMAGE ( -- Number of Columns = 54


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
DAMAGE_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_AMOUNT NUMERIC(11,2),
DAMAGE_AMOUNT_EUR NUMERIC(11,2),
DAMAGE_RECOVERED_AMOUNT NUMERIC(11,2),
DAMAGE_RECOVERED_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
DAMAGE_DATE DATE not null,
DAMAGE_ID BIGINT not null,
LOCAL_KEY_DAMAGE NATIONAL CHARACTER VARYING(125),
CH_DAMAGE_CAUSE_ID INTEGER not null,
LOCAL_KEY_LP_EXPERT NATIONAL CHARACTER VARYING(125),
LP_EXPERT_NUMBER NATIONAL CHARACTER VARYING(125),
LP_EXPERT_NAME NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_DAMAGE_DRIVER NATIONAL CHARACTER VARYING(125),
DAMAGE_DRIVER_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_DRIVER_NAME NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_DAMGE_REPAIRSHOP NATIONAL CHARACTER VARYING(125),
DAMAGE_REPAIRSHOP_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_REPAIRSHOP_NAME NATIONAL CHARACTER VARYING(125),
DAMAGE_REPAIRSHOP_ADDRESS NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_DAMAGE_BROKER NATIONAL CHARACTER VARYING(125),
DAMAGE_BROKER_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_BROKER_NAME NATIONAL CHARACTER VARYING(125),
OWN_RISK_AMOUNT NUMERIC(11,2),
OWN_RISK_AMOUNT_EUR NUMERIC(11,2),
OWN_FAULT_INDICATOR CHARACTER(1),
CAR_TRANSPORTATION_REQUIRED CHARACTER(1),
CH_DAMAGE_CIRCUMSTANCE_ID INTEGER,
CH_DAMAGE_AREA_ID INTEGER,
CH_DAMAGE_STATUS_ID INTEGER,
ACCIDENT_ADDRESS NATIONAL CHARACTER VARYING(125),
DAMAGE_CREATION_DATE DATE,
DAMAGE_ASSESSMENT_DATE DATE,
REPAIRSHOP_ENTRY_DATE DATE,
DAMAGEREPAIR_BUDGETAPPR_DATE DATE,
DAMAGEREPAIR_START_DATE DATE,
PLANNED_DAMAGEREPAIR_END_DATE DATE,
ACTUAL_DAMAGEREPAIR_END_DATE DATE,
DAMAGEREPAIR_DURATION NUMERIC(3,0),
CH_DAMAGE_CATEGORY_ID INTEGER,
LOCAL_KEY_DRIVER_AT_ACCIDENT NATIONAL CHARACTER VARYING(125),
DRIVER_AT_ACCIDENT_NUMBER NATIONAL CHARACTER VARYING(125),
DRIVER_AT_ACCIDENT_NAME NATIONAL CHARACTER VARYING(125),
AT_FAULT_INDICATOR CHARACTER(1),
CH_DAMAGE_FILE_STATUS_ID INTEGER,
DAMAGE_NOTIFICATION_DATE DATE,
CH_OD_ACCIDENT_TYPE_ID INTEGER,
CH_TPL_ACCIDENT_TYPE_ID INTEGER,
MILEAGE_AT_DAMAGEEVENTMOMENT NUMERIC(7,0),
BODILY_INJURY_INDICATOR CHARACTER(1),
DAMAGE_DESCRIPTION NATIONAL CHARACTER VARYING(500),
RECOVERABLE_INDICATOR CHARACTER(1),
CH_LEGAL_LIABILITY_TYPE_ID INTEGER not null,
PRIMARY KEY ( DAMAGE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_DAMAGE ( -- Number of Columns = 54


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
DAMAGE_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_AMOUNT NUMERIC(11,2),
DAMAGE_AMOUNT_EUR NUMERIC(11,2),
DAMAGE_RECOVERED_AMOUNT NUMERIC(11,2),
DAMAGE_RECOVERED_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
DAMAGE_DATE DATE not null,
DAMAGE_ID BIGINT not null,
LOCAL_KEY_DAMAGE NATIONAL CHARACTER VARYING(125),
CH_DAMAGE_CAUSE_ID INTEGER not null,
LOCAL_KEY_LP_EXPERT NATIONAL CHARACTER VARYING(125),
LP_EXPERT_NUMBER NATIONAL CHARACTER VARYING(125),
LP_EXPERT_NAME NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_DAMAGE_DRIVER NATIONAL CHARACTER VARYING(125),
DAMAGE_DRIVER_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_DRIVER_NAME NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_DAMGE_REPAIRSHOP NATIONAL CHARACTER VARYING(125),
DAMAGE_REPAIRSHOP_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_REPAIRSHOP_NAME NATIONAL CHARACTER VARYING(125),
DAMAGE_REPAIRSHOP_ADDRESS NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_DAMAGE_BROKER NATIONAL CHARACTER VARYING(125),
DAMAGE_BROKER_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_BROKER_NAME NATIONAL CHARACTER VARYING(125),
OWN_RISK_AMOUNT NUMERIC(11,2),
OWN_RISK_AMOUNT_EUR NUMERIC(11,2),
OWN_FAULT_INDICATOR CHARACTER(1),
CAR_TRANSPORTATION_REQUIRED CHARACTER(1),
CH_DAMAGE_CIRCUMSTANCE_ID INTEGER,
CH_DAMAGE_AREA_ID INTEGER,
CH_DAMAGE_STATUS_ID INTEGER,
ACCIDENT_ADDRESS NATIONAL CHARACTER VARYING(125),
DAMAGE_CREATION_DATE DATE,
DAMAGE_ASSESSMENT_DATE DATE,
REPAIRSHOP_ENTRY_DATE DATE,
DAMAGEREPAIR_BUDGETAPPR_DATE DATE,
DAMAGEREPAIR_START_DATE DATE,
PLANNED_DAMAGEREPAIR_END_DATE DATE,
ACTUAL_DAMAGEREPAIR_END_DATE DATE,
DAMAGEREPAIR_DURATION NUMERIC(3,0),
CH_DAMAGE_CATEGORY_ID INTEGER,
LOCAL_KEY_DRIVER_AT_ACCIDENT NATIONAL CHARACTER VARYING(125),
DRIVER_AT_ACCIDENT_NUMBER NATIONAL CHARACTER VARYING(125),
DRIVER_AT_ACCIDENT_NAME NATIONAL CHARACTER VARYING(125),
AT_FAULT_INDICATOR CHARACTER(1),
CH_DAMAGE_FILE_STATUS_ID INTEGER,
DAMAGE_NOTIFICATION_DATE DATE,
CH_OD_ACCIDENT_TYPE_ID INTEGER,
CH_TPL_ACCIDENT_TYPE_ID INTEGER,
MILEAGE_AT_DAMAGEEVENTMOMENT NUMERIC(7,0),
BODILY_INJURY_INDICATOR CHARACTER(1),
DAMAGE_DESCRIPTION NATIONAL CHARACTER VARYING(500),
RECOVERABLE_INDICATOR CHARACTER(1),
CH_LEGAL_LIABILITY_TYPE_ID INTEGER not null
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_DAMAGE" ( -- Number of Columns = 54


"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"DAMAGE_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_AMOUNT" NUMERIC(11,2),
"DAMAGE_AMOUNT_EUR" NUMERIC(11,2),
"DAMAGE_RECOVERED_AMOUNT" NUMERIC(11,2),
"DAMAGE_RECOVERED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"DAMAGE_DATE" DATE not null,
"DAMAGE_ID" BIGINT not null,
"LOCAL_KEY_DAMAGE" NATIONAL CHARACTER VARYING(125),
"CH_DAMAGE_CAUSE_ID" INTEGER not null,
"LOCAL_KEY_LP_EXPERT" NATIONAL CHARACTER VARYING(125),
"LP_EXPERT_NUMBER" NATIONAL CHARACTER VARYING(125),
"LP_EXPERT_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMAGE_DRIVER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_DRIVER_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_DRIVER_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMGE_REPAIRSHOP" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_NAME" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_ADDRESS" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMAGE_BROKER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_BROKER_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_BROKER_NAME" NATIONAL CHARACTER VARYING(125),
"OWN_RISK_AMOUNT" NUMERIC(11,2),
"OWN_RISK_AMOUNT_EUR" NUMERIC(11,2),
"OWN_FAULT_INDICATOR" CHARACTER(1),
"CAR_TRANSPORTATION_REQUIRED" CHARACTER(1),
"CH_DAMAGE_CIRCUMSTANCE_ID" INTEGER,
"CH_DAMAGE_AREA_ID" INTEGER,
"CH_DAMAGE_STATUS_ID" INTEGER,
"ACCIDENT_ADDRESS" NATIONAL CHARACTER VARYING(125),
"DAMAGE_CREATION_DATE" DATE,
"DAMAGE_ASSESSMENT_DATE" DATE,
"REPAIRSHOP_ENTRY_DATE" DATE,
"DAMAGEREPAIR_BUDGETAPPR_DATE" DATE,
"DAMAGEREPAIR_START_DATE" DATE,
"PLANNED_DAMAGEREPAIR_END_DATE" DATE,
"ACTUAL_DAMAGEREPAIR_END_DATE" DATE,
"DAMAGEREPAIR_DURATION" NUMERIC(3,0),
"CH_DAMAGE_CATEGORY_ID" INTEGER,
"LOCAL_KEY_DRIVER_AT_ACCIDENT" NATIONAL CHARACTER VARYING(125),
"DRIVER_AT_ACCIDENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"DRIVER_AT_ACCIDENT_NAME" NATIONAL CHARACTER VARYING(125),
"AT_FAULT_INDICATOR" CHARACTER(1),
"CH_DAMAGE_FILE_STATUS_ID" INTEGER,
"DAMAGE_NOTIFICATION_DATE" DATE,
"CH_OD_ACCIDENT_TYPE_ID" INTEGER,
"CH_TPL_ACCIDENT_TYPE_ID" INTEGER,
"MILEAGE_AT_DAMAGEEVENTMOMENT" NUMERIC(7,0),
"BODILY_INJURY_INDICATOR" CHARACTER(1),
"DAMAGE_DESCRIPTION" NATIONAL CHARACTER VARYING(500),
"RECOVERABLE_INDICATOR" CHARACTER(1),
"CH_LEGAL_LIABILITY_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "DAMAGE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_DAMAGE ( -- Number of Columns = 54


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
DAMAGE_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_AMOUNT NUMERIC(11,2),
DAMAGE_AMOUNT_EUR NUMERIC(11,2),
DAMAGE_RECOVERED_AMOUNT NUMERIC(11,2),
DAMAGE_RECOVERED_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
DAMAGE_DATE DATE not null,
DAMAGE_ID BIGINT not null,
LOCAL_KEY_DAMAGE NATIONAL CHARACTER VARYING(125),
CH_DAMAGE_CAUSE_ID INTEGER not null,
LOCAL_KEY_LP_EXPERT NATIONAL CHARACTER VARYING(125),
LP_EXPERT_NUMBER NATIONAL CHARACTER VARYING(125),
LP_EXPERT_NAME NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_DAMAGE_DRIVER NATIONAL CHARACTER VARYING(125),
DAMAGE_DRIVER_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_DRIVER_NAME NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_DAMGE_REPAIRSHOP NATIONAL CHARACTER VARYING(125),
DAMAGE_REPAIRSHOP_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_REPAIRSHOP_NAME NATIONAL CHARACTER VARYING(125),
DAMAGE_REPAIRSHOP_ADDRESS NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_DAMAGE_BROKER NATIONAL CHARACTER VARYING(125),
DAMAGE_BROKER_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_BROKER_NAME NATIONAL CHARACTER VARYING(125),
OWN_RISK_AMOUNT NUMERIC(11,2),
OWN_RISK_AMOUNT_EUR NUMERIC(11,2),
OWN_FAULT_INDICATOR CHARACTER(1),
CAR_TRANSPORTATION_REQUIRED CHARACTER(1),
CH_DAMAGE_CIRCUMSTANCE_ID INTEGER,
CH_DAMAGE_AREA_ID INTEGER,
CH_DAMAGE_STATUS_ID INTEGER,
ACCIDENT_ADDRESS NATIONAL CHARACTER VARYING(125),
DAMAGE_CREATION_DATE DATE,
DAMAGE_ASSESSMENT_DATE DATE,
REPAIRSHOP_ENTRY_DATE DATE,
DAMAGEREPAIR_BUDGETAPPR_DATE DATE,
DAMAGEREPAIR_START_DATE DATE,
PLANNED_DAMAGEREPAIR_END_DATE DATE,
ACTUAL_DAMAGEREPAIR_END_DATE DATE,
DAMAGEREPAIR_DURATION NUMERIC(3,0),
CH_DAMAGE_CATEGORY_ID INTEGER,
LOCAL_KEY_DRIVER_AT_ACCIDENT NATIONAL CHARACTER VARYING(125),
DRIVER_AT_ACCIDENT_NUMBER NATIONAL CHARACTER VARYING(125),
DRIVER_AT_ACCIDENT_NAME NATIONAL CHARACTER VARYING(125),
AT_FAULT_INDICATOR CHARACTER(1),
CH_DAMAGE_FILE_STATUS_ID INTEGER,
DAMAGE_NOTIFICATION_DATE DATE,
CH_OD_ACCIDENT_TYPE_ID INTEGER,
CH_TPL_ACCIDENT_TYPE_ID INTEGER,
MILEAGE_AT_DAMAGEEVENTMOMENT NUMERIC(7,0),
BODILY_INJURY_INDICATOR CHARACTER(1),
DAMAGE_DESCRIPTION NATIONAL CHARACTER VARYING(500),
RECOVERABLE_INDICATOR CHARACTER(1),
CH_LEGAL_LIABILITY_TYPE_ID INTEGER not null,
PRIMARY KEY ( DAMAGE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_DAMAGE ( -- Number of Columns = 54


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
DAMAGE_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_AMOUNT NUMERIC(11,2),
DAMAGE_AMOUNT_EUR NUMERIC(11,2),
DAMAGE_RECOVERED_AMOUNT NUMERIC(11,2),
DAMAGE_RECOVERED_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
DAMAGE_DATE DATE not null,
DAMAGE_ID BIGINT not null,
LOCAL_KEY_DAMAGE NATIONAL CHARACTER VARYING(125),
CH_DAMAGE_CAUSE_ID INTEGER not null,
LOCAL_KEY_LP_EXPERT NATIONAL CHARACTER VARYING(125),
LP_EXPERT_NUMBER NATIONAL CHARACTER VARYING(125),
LP_EXPERT_NAME NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_DAMAGE_DRIVER NATIONAL CHARACTER VARYING(125),
DAMAGE_DRIVER_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_DRIVER_NAME NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_DAMGE_REPAIRSHOP NATIONAL CHARACTER VARYING(125),
DAMAGE_REPAIRSHOP_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_REPAIRSHOP_NAME NATIONAL CHARACTER VARYING(125),
DAMAGE_REPAIRSHOP_ADDRESS NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_DAMAGE_BROKER NATIONAL CHARACTER VARYING(125),
DAMAGE_BROKER_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_BROKER_NAME NATIONAL CHARACTER VARYING(125),
OWN_RISK_AMOUNT NUMERIC(11,2),
OWN_RISK_AMOUNT_EUR NUMERIC(11,2),
OWN_FAULT_INDICATOR CHARACTER(1),
CAR_TRANSPORTATION_REQUIRED CHARACTER(1),
CH_DAMAGE_CIRCUMSTANCE_ID INTEGER,
CH_DAMAGE_AREA_ID INTEGER,
CH_DAMAGE_STATUS_ID INTEGER,
ACCIDENT_ADDRESS NATIONAL CHARACTER VARYING(125),
DAMAGE_CREATION_DATE DATE,
DAMAGE_ASSESSMENT_DATE DATE,
REPAIRSHOP_ENTRY_DATE DATE,
DAMAGEREPAIR_BUDGETAPPR_DATE DATE,
DAMAGEREPAIR_START_DATE DATE,
PLANNED_DAMAGEREPAIR_END_DATE DATE,
ACTUAL_DAMAGEREPAIR_END_DATE DATE,
DAMAGEREPAIR_DURATION NUMERIC(3,0),
CH_DAMAGE_CATEGORY_ID INTEGER,
LOCAL_KEY_DRIVER_AT_ACCIDENT NATIONAL CHARACTER VARYING(125),
DRIVER_AT_ACCIDENT_NUMBER NATIONAL CHARACTER VARYING(125),
DRIVER_AT_ACCIDENT_NAME NATIONAL CHARACTER VARYING(125),
AT_FAULT_INDICATOR CHARACTER(1),
CH_DAMAGE_FILE_STATUS_ID INTEGER,
DAMAGE_NOTIFICATION_DATE DATE,
CH_OD_ACCIDENT_TYPE_ID INTEGER,
CH_TPL_ACCIDENT_TYPE_ID INTEGER,
MILEAGE_AT_DAMAGEEVENTMOMENT NUMERIC(7,0),
BODILY_INJURY_INDICATOR CHARACTER(1),
DAMAGE_DESCRIPTION NATIONAL CHARACTER VARYING(500),
RECOVERABLE_INDICATOR CHARACTER(1),
CH_LEGAL_LIABILITY_TYPE_ID INTEGER not null,
PRIMARY KEY ( DAMAGE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_DAMAGE ( -- Number of Columns = 54


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
DAMAGE_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_AMOUNT NUMERIC(11,2),
DAMAGE_AMOUNT_EUR NUMERIC(11,2),
DAMAGE_RECOVERED_AMOUNT NUMERIC(11,2),
DAMAGE_RECOVERED_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
DAMAGE_DATE DATE not null,
DAMAGE_ID BIGINT not null,
LOCAL_KEY_DAMAGE NATIONAL CHARACTER VARYING(125),
CH_DAMAGE_CAUSE_ID INTEGER not null,
LOCAL_KEY_LP_EXPERT NATIONAL CHARACTER VARYING(125),
LP_EXPERT_NUMBER NATIONAL CHARACTER VARYING(125),
LP_EXPERT_NAME NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_DAMAGE_DRIVER NATIONAL CHARACTER VARYING(125),
DAMAGE_DRIVER_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_DRIVER_NAME NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_DAMGE_REPAIRSHOP NATIONAL CHARACTER VARYING(125),
DAMAGE_REPAIRSHOP_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_REPAIRSHOP_NAME NATIONAL CHARACTER VARYING(125),
DAMAGE_REPAIRSHOP_ADDRESS NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_DAMAGE_BROKER NATIONAL CHARACTER VARYING(125),
DAMAGE_BROKER_NUMBER NATIONAL CHARACTER VARYING(125),
DAMAGE_BROKER_NAME NATIONAL CHARACTER VARYING(125),
OWN_RISK_AMOUNT NUMERIC(11,2),
OWN_RISK_AMOUNT_EUR NUMERIC(11,2),
OWN_FAULT_INDICATOR CHARACTER(1),
CAR_TRANSPORTATION_REQUIRED CHARACTER(1),
CH_DAMAGE_CIRCUMSTANCE_ID INTEGER,
CH_DAMAGE_AREA_ID INTEGER,
CH_DAMAGE_STATUS_ID INTEGER,
ACCIDENT_ADDRESS NATIONAL CHARACTER VARYING(125),
DAMAGE_CREATION_DATE DATE,
DAMAGE_ASSESSMENT_DATE DATE,
REPAIRSHOP_ENTRY_DATE DATE,
DAMAGEREPAIR_BUDGETAPPR_DATE DATE,
DAMAGEREPAIR_START_DATE DATE,
PLANNED_DAMAGEREPAIR_END_DATE DATE,
ACTUAL_DAMAGEREPAIR_END_DATE DATE,
DAMAGEREPAIR_DURATION NUMERIC(3,0),
CH_DAMAGE_CATEGORY_ID INTEGER,
LOCAL_KEY_DRIVER_AT_ACCIDENT NATIONAL CHARACTER VARYING(125),
DRIVER_AT_ACCIDENT_NUMBER NATIONAL CHARACTER VARYING(125),
DRIVER_AT_ACCIDENT_NAME NATIONAL CHARACTER VARYING(125),
AT_FAULT_INDICATOR CHARACTER(1),
CH_DAMAGE_FILE_STATUS_ID INTEGER,
DAMAGE_NOTIFICATION_DATE DATE,
CH_OD_ACCIDENT_TYPE_ID INTEGER,
CH_TPL_ACCIDENT_TYPE_ID INTEGER,
MILEAGE_AT_DAMAGEEVENTMOMENT NUMERIC(7,0),
BODILY_INJURY_INDICATOR CHARACTER(1),
DAMAGE_DESCRIPTION NATIONAL CHARACTER VARYING(500),
RECOVERABLE_INDICATOR CHARACTER(1),
CH_LEGAL_LIABILITY_TYPE_ID INTEGER not null,
PRIMARY KEY ( DAMAGE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_DAMAGE" ( -- Number of Columns = 54


"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"DAMAGE_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_AMOUNT" NUMERIC(11,2),
"DAMAGE_AMOUNT_EUR" NUMERIC(11,2),
"DAMAGE_RECOVERED_AMOUNT" NUMERIC(11,2),
"DAMAGE_RECOVERED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"DAMAGE_DATE" DATE not null,
"DAMAGE_ID" BIGINT not null,
"LOCAL_KEY_DAMAGE" NATIONAL CHARACTER VARYING(125),
"CH_DAMAGE_CAUSE_ID" INTEGER not null,
"LOCAL_KEY_LP_EXPERT" NATIONAL CHARACTER VARYING(125),
"LP_EXPERT_NUMBER" NATIONAL CHARACTER VARYING(125),
"LP_EXPERT_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMAGE_DRIVER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_DRIVER_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_DRIVER_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMGE_REPAIRSHOP" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_NAME" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_ADDRESS" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMAGE_BROKER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_BROKER_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_BROKER_NAME" NATIONAL CHARACTER VARYING(125),
"OWN_RISK_AMOUNT" NUMERIC(11,2),
"OWN_RISK_AMOUNT_EUR" NUMERIC(11,2),
"OWN_FAULT_INDICATOR" CHARACTER(1),
"CAR_TRANSPORTATION_REQUIRED" CHARACTER(1),
"CH_DAMAGE_CIRCUMSTANCE_ID" INTEGER,
"CH_DAMAGE_AREA_ID" INTEGER,
"CH_DAMAGE_STATUS_ID" INTEGER,
"ACCIDENT_ADDRESS" NATIONAL CHARACTER VARYING(125),
"DAMAGE_CREATION_DATE" DATE,
"DAMAGE_ASSESSMENT_DATE" DATE,
"REPAIRSHOP_ENTRY_DATE" DATE,
"DAMAGEREPAIR_BUDGETAPPR_DATE" DATE,
"DAMAGEREPAIR_START_DATE" DATE,
"PLANNED_DAMAGEREPAIR_END_DATE" DATE,
"ACTUAL_DAMAGEREPAIR_END_DATE" DATE,
"DAMAGEREPAIR_DURATION" NUMERIC(3,0),
"CH_DAMAGE_CATEGORY_ID" INTEGER,
"LOCAL_KEY_DRIVER_AT_ACCIDENT" NATIONAL CHARACTER VARYING(125),
"DRIVER_AT_ACCIDENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"DRIVER_AT_ACCIDENT_NAME" NATIONAL CHARACTER VARYING(125),
"AT_FAULT_INDICATOR" CHARACTER(1),
"CH_DAMAGE_FILE_STATUS_ID" INTEGER,
"DAMAGE_NOTIFICATION_DATE" DATE,
"CH_OD_ACCIDENT_TYPE_ID" INTEGER,
"CH_TPL_ACCIDENT_TYPE_ID" INTEGER,
"MILEAGE_AT_DAMAGEEVENTMOMENT" NUMERIC(7,0),
"BODILY_INJURY_INDICATOR" CHARACTER(1),
"DAMAGE_DESCRIPTION" NATIONAL CHARACTER VARYING(500),
"RECOVERABLE_INDICATOR" CHARACTER(1),
"CH_LEGAL_LIABILITY_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "DAMAGE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_DAMAGE" ( -- Number of Columns = 54


"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"DAMAGE_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_AMOUNT" NUMERIC(11,2),
"DAMAGE_AMOUNT_EUR" NUMERIC(11,2),
"DAMAGE_RECOVERED_AMOUNT" NUMERIC(11,2),
"DAMAGE_RECOVERED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"DAMAGE_DATE" DATE not null,
"DAMAGE_ID" BIGINT not null,
"LOCAL_KEY_DAMAGE" NATIONAL CHARACTER VARYING(125),
"CH_DAMAGE_CAUSE_ID" INTEGER not null,
"LOCAL_KEY_LP_EXPERT" NATIONAL CHARACTER VARYING(125),
"LP_EXPERT_NUMBER" NATIONAL CHARACTER VARYING(125),
"LP_EXPERT_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMAGE_DRIVER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_DRIVER_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_DRIVER_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMGE_REPAIRSHOP" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_NAME" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_ADDRESS" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMAGE_BROKER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_BROKER_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_BROKER_NAME" NATIONAL CHARACTER VARYING(125),
"OWN_RISK_AMOUNT" NUMERIC(11,2),
"OWN_RISK_AMOUNT_EUR" NUMERIC(11,2),
"OWN_FAULT_INDICATOR" CHARACTER(1),
"CAR_TRANSPORTATION_REQUIRED" CHARACTER(1),
"CH_DAMAGE_CIRCUMSTANCE_ID" INTEGER,
"CH_DAMAGE_AREA_ID" INTEGER,
"CH_DAMAGE_STATUS_ID" INTEGER,
"ACCIDENT_ADDRESS" NATIONAL CHARACTER VARYING(125),
"DAMAGE_CREATION_DATE" DATE,
"DAMAGE_ASSESSMENT_DATE" DATE,
"REPAIRSHOP_ENTRY_DATE" DATE,
"DAMAGEREPAIR_BUDGETAPPR_DATE" DATE,
"DAMAGEREPAIR_START_DATE" DATE,
"PLANNED_DAMAGEREPAIR_END_DATE" DATE,
"ACTUAL_DAMAGEREPAIR_END_DATE" DATE,
"DAMAGEREPAIR_DURATION" NUMERIC(3,0),
"CH_DAMAGE_CATEGORY_ID" INTEGER,
"LOCAL_KEY_DRIVER_AT_ACCIDENT" NATIONAL CHARACTER VARYING(125),
"DRIVER_AT_ACCIDENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"DRIVER_AT_ACCIDENT_NAME" NATIONAL CHARACTER VARYING(125),
"AT_FAULT_INDICATOR" CHARACTER(1),
"CH_DAMAGE_FILE_STATUS_ID" INTEGER,
"DAMAGE_NOTIFICATION_DATE" DATE,
"CH_OD_ACCIDENT_TYPE_ID" INTEGER,
"CH_TPL_ACCIDENT_TYPE_ID" INTEGER,
"MILEAGE_AT_DAMAGEEVENTMOMENT" NUMERIC(7,0),
"BODILY_INJURY_INDICATOR" CHARACTER(1),
"DAMAGE_DESCRIPTION" NATIONAL CHARACTER VARYING(500),
"RECOVERABLE_INDICATOR" CHARACTER(1),
"CH_LEGAL_LIABILITY_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "DAMAGE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_DAMAGE" ( -- Number of Columns = 54


"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"DAMAGE_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_AMOUNT" NUMERIC(11,2),
"DAMAGE_AMOUNT_EUR" NUMERIC(11,2),
"DAMAGE_RECOVERED_AMOUNT" NUMERIC(11,2),
"DAMAGE_RECOVERED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"DAMAGE_DATE" DATE not null,
"DAMAGE_ID" BIGINT not null,
"LOCAL_KEY_DAMAGE" NATIONAL CHARACTER VARYING(125),
"CH_DAMAGE_CAUSE_ID" INTEGER not null,
"LOCAL_KEY_LP_EXPERT" NATIONAL CHARACTER VARYING(125),
"LP_EXPERT_NUMBER" NATIONAL CHARACTER VARYING(125),
"LP_EXPERT_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMAGE_DRIVER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_DRIVER_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_DRIVER_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMGE_REPAIRSHOP" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_NAME" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_ADDRESS" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMAGE_BROKER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_BROKER_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_BROKER_NAME" NATIONAL CHARACTER VARYING(125),
"OWN_RISK_AMOUNT" NUMERIC(11,2),
"OWN_RISK_AMOUNT_EUR" NUMERIC(11,2),
"OWN_FAULT_INDICATOR" CHARACTER(1),
"CAR_TRANSPORTATION_REQUIRED" CHARACTER(1),
"CH_DAMAGE_CIRCUMSTANCE_ID" INTEGER,
"CH_DAMAGE_AREA_ID" INTEGER,
"CH_DAMAGE_STATUS_ID" INTEGER,
"ACCIDENT_ADDRESS" NATIONAL CHARACTER VARYING(125),
"DAMAGE_CREATION_DATE" DATE,
"DAMAGE_ASSESSMENT_DATE" DATE,
"REPAIRSHOP_ENTRY_DATE" DATE,
"DAMAGEREPAIR_BUDGETAPPR_DATE" DATE,
"DAMAGEREPAIR_START_DATE" DATE,
"PLANNED_DAMAGEREPAIR_END_DATE" DATE,
"ACTUAL_DAMAGEREPAIR_END_DATE" DATE,
"DAMAGEREPAIR_DURATION" NUMERIC(3,0),
"CH_DAMAGE_CATEGORY_ID" INTEGER,
"LOCAL_KEY_DRIVER_AT_ACCIDENT" NATIONAL CHARACTER VARYING(125),
"DRIVER_AT_ACCIDENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"DRIVER_AT_ACCIDENT_NAME" NATIONAL CHARACTER VARYING(125),
"AT_FAULT_INDICATOR" CHARACTER(1),
"CH_DAMAGE_FILE_STATUS_ID" INTEGER,
"DAMAGE_NOTIFICATION_DATE" DATE,
"CH_OD_ACCIDENT_TYPE_ID" INTEGER,
"CH_TPL_ACCIDENT_TYPE_ID" INTEGER,
"MILEAGE_AT_DAMAGEEVENTMOMENT" NUMERIC(7,0),
"BODILY_INJURY_INDICATOR" CHARACTER(1),
"DAMAGE_DESCRIPTION" NATIONAL CHARACTER VARYING(500),
"RECOVERABLE_INDICATOR" CHARACTER(1),
"CH_LEGAL_LIABILITY_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "DAMAGE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_DAMAGE" ( -- Number of Columns = 54


"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"DAMAGE_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_AMOUNT" NUMERIC(11,2),
"DAMAGE_AMOUNT_EUR" NUMERIC(11,2),
"DAMAGE_RECOVERED_AMOUNT" NUMERIC(11,2),
"DAMAGE_RECOVERED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"DAMAGE_DATE" DATE not null,
"DAMAGE_ID" BIGINT not null,
"LOCAL_KEY_DAMAGE" NATIONAL CHARACTER VARYING(125),
"CH_DAMAGE_CAUSE_ID" INTEGER not null,
"LOCAL_KEY_LP_EXPERT" NATIONAL CHARACTER VARYING(125),
"LP_EXPERT_NUMBER" NATIONAL CHARACTER VARYING(125),
"LP_EXPERT_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMAGE_DRIVER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_DRIVER_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_DRIVER_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMGE_REPAIRSHOP" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_NAME" NATIONAL CHARACTER VARYING(125),
"DAMAGE_REPAIRSHOP_ADDRESS" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_DAMAGE_BROKER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_BROKER_NUMBER" NATIONAL CHARACTER VARYING(125),
"DAMAGE_BROKER_NAME" NATIONAL CHARACTER VARYING(125),
"OWN_RISK_AMOUNT" NUMERIC(11,2),
"OWN_RISK_AMOUNT_EUR" NUMERIC(11,2),
"OWN_FAULT_INDICATOR" CHARACTER(1),
"CAR_TRANSPORTATION_REQUIRED" CHARACTER(1),
"CH_DAMAGE_CIRCUMSTANCE_ID" INTEGER,
"CH_DAMAGE_AREA_ID" INTEGER,
"CH_DAMAGE_STATUS_ID" INTEGER,
"ACCIDENT_ADDRESS" NATIONAL CHARACTER VARYING(125),
"DAMAGE_CREATION_DATE" DATE,
"DAMAGE_ASSESSMENT_DATE" DATE,
"REPAIRSHOP_ENTRY_DATE" DATE,
"DAMAGEREPAIR_BUDGETAPPR_DATE" DATE,
"DAMAGEREPAIR_START_DATE" DATE,
"PLANNED_DAMAGEREPAIR_END_DATE" DATE,
"ACTUAL_DAMAGEREPAIR_END_DATE" DATE,
"DAMAGEREPAIR_DURATION" NUMERIC(3,0),
"CH_DAMAGE_CATEGORY_ID" INTEGER,
"LOCAL_KEY_DRIVER_AT_ACCIDENT" NATIONAL CHARACTER VARYING(125),
"DRIVER_AT_ACCIDENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"DRIVER_AT_ACCIDENT_NAME" NATIONAL CHARACTER VARYING(125),
"AT_FAULT_INDICATOR" CHARACTER(1),
"CH_DAMAGE_FILE_STATUS_ID" INTEGER,
"DAMAGE_NOTIFICATION_DATE" DATE,
"CH_OD_ACCIDENT_TYPE_ID" INTEGER,
"CH_TPL_ACCIDENT_TYPE_ID" INTEGER,
"MILEAGE_AT_DAMAGEEVENTMOMENT" NUMERIC(7,0),
"BODILY_INJURY_INDICATOR" CHARACTER(1),
"DAMAGE_DESCRIPTION" NATIONAL CHARACTER VARYING(500),
"RECOVERABLE_INDICATOR" CHARACTER(1),
"CH_LEGAL_LIABILITY_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "DAMAGE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ( -- Number of Columns =


23
LEASE_SERVICE_ID INTEGER not null,
SERVICE_DATE DATE not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
SUPPLIER_INVOICE_ID BIGINT not null,
AMOUNT_TYPE CHARACTER(1),
DELIVERED_SERVICE_AMOUNT NUMERIC(11,2),
DELIVERED_SERVICE_AMOUNT_EUR NUMERIC(11,2),
SERVICE_MILEAGE NUMERIC(7,0),
SERVICE_SUPPLIER_ID BIGINT not null,
SERVICE_MILEAGE_KM NUMERIC(7,0),
SERVICE_QUANTITY NUMERIC(11,2),
LOAD_DATE DATE,
SERVICE_ID BIGINT not null,
CH_SERVICE_TYPE_ID INTEGER not null,
CH_SUBJECT_TYPE_ID INTEGER not null,
CH_SUBJECT_BRAND_ID INTEGER not null,
BOOK_PERIOD_DATE DATE not null,
SERVICE_TYPE_ID INTEGER,
VEHICLE_AGE INTEGER,
DAMAGE_ID BIGINT,
SERVICE_NUMBER NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_SERVICE NATIONAL CHARACTER VARYING(125),
NUMBER_OF_REPLACEMENT_CAR_DAYS NUMERIC(7,0),
PRIMARY KEY ( SERVICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_DELIVERED_SERVICE ( -- Number of Columns =


23
LEASE_SERVICE_ID INTEGER not null,
SERVICE_DATE DATE not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
SUPPLIER_INVOICE_ID BIGINT not null,
AMOUNT_TYPE CHARACTER(1),
DELIVERED_SERVICE_AMOUNT NUMERIC(11,2),
DELIVERED_SERVICE_AMOUNT_EUR NUMERIC(11,2),
SERVICE_MILEAGE NUMERIC(7,0),
SERVICE_SUPPLIER_ID BIGINT not null,
SERVICE_MILEAGE_KM NUMERIC(7,0),
SERVICE_QUANTITY NUMERIC(11,2),
LOAD_DATE DATE,
SERVICE_ID BIGINT not null,
CH_SERVICE_TYPE_ID INTEGER not null,
CH_SUBJECT_TYPE_ID INTEGER not null,
CH_SUBJECT_BRAND_ID INTEGER not null,
BOOK_PERIOD_DATE DATE not null,
SERVICE_TYPE_ID INTEGER,
VEHICLE_AGE INTEGER,
DAMAGE_ID BIGINT,
SERVICE_NUMBER NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_SERVICE NATIONAL CHARACTER VARYING(125),
NUMBER_OF_REPLACEMENT_CAR_DAYS NUMERIC(7,0),
PRIMARY KEY ( SERVICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ( -- Number of Columns =


23
LEASE_SERVICE_ID INTEGER not null,
SERVICE_DATE DATE not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
SUPPLIER_INVOICE_ID BIGINT not null,
AMOUNT_TYPE CHARACTER(1),
DELIVERED_SERVICE_AMOUNT NUMERIC(11,2),
DELIVERED_SERVICE_AMOUNT_EUR NUMERIC(11,2),
SERVICE_MILEAGE NUMERIC(7,0),
SERVICE_SUPPLIER_ID BIGINT not null,
SERVICE_MILEAGE_KM NUMERIC(7,0),
SERVICE_QUANTITY NUMERIC(11,2),
LOAD_DATE DATE,
SERVICE_ID BIGINT not null,
CH_SERVICE_TYPE_ID INTEGER not null,
CH_SUBJECT_TYPE_ID INTEGER not null,
CH_SUBJECT_BRAND_ID INTEGER not null,
BOOK_PERIOD_DATE DATE not null,
SERVICE_TYPE_ID INTEGER,
VEHICLE_AGE INTEGER,
DAMAGE_ID BIGINT,
SERVICE_NUMBER NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_SERVICE NATIONAL CHARACTER VARYING(125),
NUMBER_OF_REPLACEMENT_CAR_DAYS NUMERIC(7,0),
PRIMARY KEY ( SERVICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2.F_DELIVERED_SERVICE ( -- Number of Columns =


23
"LEASE_SERVICE_ID" INTEGER not null,
"SERVICE_DATE" DATE not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SUPPLIER_INVOICE_ID" BIGINT not null,
"AMOUNT_TYPE" CHARACTER(1),
"DELIVERED_SERVICE_AMOUNT" NUMERIC(11,2),
"DELIVERED_SERVICE_AMOUNT_EUR" NUMERIC(11,2),
"SERVICE_MILEAGE" NUMERIC(7,0),
"SERVICE_SUPPLIER_ID" BIGINT not null,
"SERVICE_MILEAGE_KM" NUMERIC(7,0),
"SERVICE_QUANTITY" NUMERIC(11,2),
"LOAD_DATE" DATE,
"SERVICE_ID" BIGINT not null,
"CH_SERVICE_TYPE_ID" INTEGER not null,
"CH_SUBJECT_TYPE_ID" INTEGER not null,
"CH_SUBJECT_BRAND_ID" INTEGER not null,
"BOOK_PERIOD_DATE" DATE not null,
"SERVICE_TYPE_ID" INTEGER,
"VEHICLE_AGE" INTEGER,
"DAMAGE_ID" BIGINT,
SERVICE_NUMBER NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_SERVICE NATIONAL CHARACTER VARYING(125),
NUMBER_OF_REPLACEMENT_CAR_DAYS NUMERIC(7,0),
PRIMARY KEY ( "SERVICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ( -- Number of Columns =


23
"LEASE_SERVICE_ID" INTEGER not null,
"SERVICE_DATE" DATE not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SUPPLIER_INVOICE_ID" BIGINT not null,
"AMOUNT_TYPE" CHARACTER(1),
"DELIVERED_SERVICE_AMOUNT" NUMERIC(11,2),
"DELIVERED_SERVICE_AMOUNT_EUR" NUMERIC(11,2),
"SERVICE_MILEAGE" NUMERIC(7,0),
"SERVICE_SUPPLIER_ID" BIGINT not null,
"SERVICE_MILEAGE_KM" NUMERIC(7,0),
"SERVICE_QUANTITY" NUMERIC(11,2),
"LOAD_DATE" DATE,
"SERVICE_ID" BIGINT not null,
"CH_SERVICE_TYPE_ID" INTEGER not null,
"CH_SUBJECT_TYPE_ID" INTEGER not null,
"CH_SUBJECT_BRAND_ID" INTEGER not null,
"BOOK_PERIOD_DATE" DATE not null,
"SERVICE_TYPE_ID" INTEGER,
"VEHICLE_AGE" INTEGER,
"DAMAGE_ID" BIGINT,
SERVICE_NUMBER NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_SERVICE NATIONAL CHARACTER VARYING(125),
NUMBER_OF_REPLACEMENT_CAR_DAYS NUMERIC(7,0),
PRIMARY KEY ( "SERVICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2.F_DELIVERED_SERVICE ( -- Number of Columns =


23
"LEASE_SERVICE_ID" INTEGER not null,
"SERVICE_DATE" DATE not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SUPPLIER_INVOICE_ID" BIGINT not null,
"AMOUNT_TYPE" CHARACTER(1),
"DELIVERED_SERVICE_AMOUNT" NUMERIC(11,2),
"DELIVERED_SERVICE_AMOUNT_EUR" NUMERIC(11,2),
"SERVICE_MILEAGE" NUMERIC(7,0),
"SERVICE_SUPPLIER_ID" BIGINT not null,
"SERVICE_MILEAGE_KM" NUMERIC(7,0),
"SERVICE_QUANTITY" NUMERIC(11,2),
"LOAD_DATE" DATE,
"SERVICE_ID" BIGINT not null,
"CH_SERVICE_TYPE_ID" INTEGER not null,
"CH_SUBJECT_TYPE_ID" INTEGER not null,
"CH_SUBJECT_BRAND_ID" INTEGER not null,
"BOOK_PERIOD_DATE" DATE not null,
"SERVICE_TYPE_ID" INTEGER,
"VEHICLE_AGE" INTEGER,
"DAMAGE_ID" BIGINT,
SERVICE_NUMBER NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_SERVICE NATIONAL CHARACTER VARYING(125),
NUMBER_OF_REPLACEMENT_CAR_DAYS NUMERIC(7,0),
PRIMARY KEY ( "SERVICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ( -- Number of Columns =


23
"LEASE_SERVICE_ID" INTEGER not null,
"SERVICE_DATE" DATE not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SUPPLIER_INVOICE_ID" BIGINT not null,
"AMOUNT_TYPE" CHARACTER(1),
"DELIVERED_SERVICE_AMOUNT" NUMERIC(11,2),
"DELIVERED_SERVICE_AMOUNT_EUR" NUMERIC(11,2),
"SERVICE_MILEAGE" NUMERIC(7,0),
"SERVICE_SUPPLIER_ID" BIGINT not null,
"SERVICE_MILEAGE_KM" NUMERIC(7,0),
"SERVICE_QUANTITY" NUMERIC(11,2),
"LOAD_DATE" DATE,
"SERVICE_ID" BIGINT not null,
"CH_SERVICE_TYPE_ID" INTEGER not null,
"CH_SUBJECT_TYPE_ID" INTEGER not null,
"CH_SUBJECT_BRAND_ID" INTEGER not null,
"BOOK_PERIOD_DATE" DATE not null,
"SERVICE_TYPE_ID" INTEGER,
"VEHICLE_AGE" INTEGER,
"DAMAGE_ID" BIGINT,
SERVICE_NUMBER NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_SERVICE NATIONAL CHARACTER VARYING(125),
NUMBER_OF_REPLACEMENT_CAR_DAYS NUMERIC(7,0),
PRIMARY KEY ( "SERVICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ( -- Number of Columns =


22
"LEASE_SERVICE_ID" INTEGER not null,
"SERVICE_DATE" DATE not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SUPPLIER_INVOICE_ID" BIGINT not null,
"AMOUNT_TYPE" CHARACTER(1),
"DELIVERED_SERVICE_AMOUNT" NUMERIC(11,2),
"DELIVERED_SERVICE_AMOUNT_EUR" NUMERIC(11,2),
"SERVICE_MILEAGE" NUMERIC(7,0),
"SERVICE_SUPPLIER_ID" BIGINT not null,
"SERVICE_MILEAGE_KM" NUMERIC(7,0),
"SERVICE_QUANTITY" NUMERIC(11,2),
"LOAD_DATE" DATE,
"SERVICE_NUMBER" CHARACTER(50),
"SERVICE_ID" BIGINT not null,
"LOCAL_KEY_SERVICE" CHARACTER(50),
"CH_SERVICE_TYPE_ID" INTEGER not null,
"CH_SUBJECT_TYPE_ID" INTEGER not null,
"CH_SUBJECT_BRAND_ID" INTEGER not null,
"BOOK_PERIOD_DATE" DATE not null,
"SERVICE_TYPE_ID" INTEGER,
"VEHICLE_AGE" INTEGER,
"DAMAGE_ID" BIGINT
) DISTRIBUTE ON RANDOM;

-- Table F_DELIVERED_SERVICE version 2;


SET collapse_empty_table_version = false;
ALTER TABLE LPUK_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ADD COLUMN
SERVICE_NUMBER NATIONAL CHARACTER VARYING(125);
SET collapse_empty_table_version = true;
ALTER TABLE LPUK_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ADD COLUMN
LOCAL_KEY_SERVICE NATIONAL CHARACTER VARYING(125);
ALTER TABLE LPUK_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ADD COLUMN
NUMBER_OF_REPLACEMENT_CAR_DAYS NUMERIC(7,0);
ALTER TABLE LPUK_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE DROP COLUMN
"SERVICE_NUMBER" CASCADE;
ALTER TABLE LPUK_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE DROP COLUMN
"LOCAL_KEY_SERVICE" CASCADE;

ALTER TABLE LPUK_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ADD CONSTRAINT


"F_DELIVERED_SERVICE_PK" PRIMARY KEY ( "SERVICE_ID" );
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ( -- Number of Columns =


22
"LEASE_SERVICE_ID" INTEGER not null,
"SERVICE_DATE" DATE not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SUPPLIER_INVOICE_ID" BIGINT not null,
"AMOUNT_TYPE" CHARACTER(1),
"DELIVERED_SERVICE_AMOUNT" NUMERIC(11,2),
"DELIVERED_SERVICE_AMOUNT_EUR" NUMERIC(11,2),
"SERVICE_MILEAGE" NUMERIC(7,0),
"SERVICE_SUPPLIER_ID" BIGINT not null,
"SERVICE_MILEAGE_KM" NUMERIC(7,0),
"SERVICE_QUANTITY" NUMERIC(11,2),
"LOAD_DATE" DATE,
"SERVICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"SERVICE_ID" BIGINT not null,
"LOCAL_KEY_SERVICE" NATIONAL CHARACTER VARYING(125),
"CH_SERVICE_TYPE_ID" INTEGER not null,
"CH_SUBJECT_TYPE_ID" INTEGER not null,
"CH_SUBJECT_BRAND_ID" INTEGER not null,
"BOOK_PERIOD_DATE" DATE not null,
"SERVICE_TYPE_ID" INTEGER,
"VEHICLE_AGE" INTEGER,
"DAMAGE_ID" BIGINT
) DISTRIBUTE ON RANDOM;

-- Table F_DELIVERED_SERVICE version 2;


SET collapse_empty_table_version = false;
ALTER TABLE LPUS_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ADD COLUMN
NUMBER_OF_REPLACEMENT_CAR_DAYS NUMERIC(7,0);
SET collapse_empty_table_version = true;

ALTER TABLE LPUS_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ADD CONSTRAINT


"F_DELIVERED_SERVICE_PK" PRIMARY KEY ( "SERVICE_ID" );
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_DELIVERED_SERVICE ( -- Number of Columns =


22
"LEASE_SERVICE_ID" INTEGER not null,
"SERVICE_DATE" DATE not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SUPPLIER_INVOICE_ID" BIGINT not null,
"AMOUNT_TYPE" CHARACTER(1),
"DELIVERED_SERVICE_AMOUNT" NUMERIC(11,2),
"DELIVERED_SERVICE_AMOUNT_EUR" NUMERIC(11,2),
"SERVICE_MILEAGE" NUMERIC(7,0),
"SERVICE_SUPPLIER_ID" BIGINT not null,
"SERVICE_MILEAGE_KM" NUMERIC(7,0),
"SERVICE_QUANTITY" NUMERIC(11,2),
"LOAD_DATE" DATE,
"SERVICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"SERVICE_ID" BIGINT not null,
"LOCAL_KEY_SERVICE" NATIONAL CHARACTER VARYING(125),
"CH_SERVICE_TYPE_ID" INTEGER not null,
"CH_SUBJECT_TYPE_ID" INTEGER not null,
"CH_SUBJECT_BRAND_ID" INTEGER not null,
"BOOK_PERIOD_DATE" DATE not null,
"SERVICE_TYPE_ID" INTEGER,
"VEHICLE_AGE" INTEGER,
"DAMAGE_ID" BIGINT
) DISTRIBUTE ON RANDOM;

-- Table F_DELIVERED_SERVICE version 2;


SET collapse_empty_table_version = false;
ALTER TABLE LPGR_DMA_ENTITY_REPORT2.F_DELIVERED_SERVICE ADD COLUMN
SERVICE_NUMBER NATIONAL CHARACTER VARYING(125);
SET collapse_empty_table_version = true;
ALTER TABLE LPGR_DMA_ENTITY_REPORT2.F_DELIVERED_SERVICE ADD COLUMN
LOCAL_KEY_SERVICE NATIONAL CHARACTER VARYING(125);
ALTER TABLE LPGR_DMA_ENTITY_REPORT2.F_DELIVERED_SERVICE ADD COLUMN
NUMBER_OF_REPLACEMENT_CAR_DAYS NUMERIC(7,0);
ALTER TABLE LPGR_DMA_ENTITY_REPORT2.F_DELIVERED_SERVICE DROP COLUMN
"SERVICE_NUMBER" CASCADE;
ALTER TABLE LPGR_DMA_ENTITY_REPORT2.F_DELIVERED_SERVICE DROP COLUMN
"LOCAL_KEY_SERVICE" CASCADE;

ALTER TABLE LPGR_DMA_ENTITY_REPORT2.F_DELIVERED_SERVICE ADD CONSTRAINT


"F_DELIVERED_SERVICE_PK" PRIMARY KEY ( "SERVICE_ID" );
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ( -- Number of Columns =


22
LEASE_SERVICE_ID INTEGER not null,
SERVICE_DATE DATE not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
SUPPLIER_INVOICE_ID BIGINT not null,
AMOUNT_TYPE CHARACTER(1),
DELIVERED_SERVICE_AMOUNT NUMERIC(11,2),
DELIVERED_SERVICE_AMOUNT_EUR NUMERIC(11,2),
SERVICE_MILEAGE NUMERIC(7,0),
SERVICE_SUPPLIER_ID BIGINT not null,
SERVICE_MILEAGE_KM NUMERIC(7,0),
SERVICE_QUANTITY NUMERIC(11,2),
LOAD_DATE DATE,
SERVICE_NUMBER CHARACTER(50),
SERVICE_ID BIGINT not null,
LOCAL_KEY_SERVICE CHARACTER(50),
CH_SERVICE_TYPE_ID INTEGER not null,
CH_SUBJECT_TYPE_ID INTEGER not null,
CH_SUBJECT_BRAND_ID INTEGER not null,
BOOK_PERIOD_DATE DATE not null,
SERVICE_TYPE_ID INTEGER,
VEHICLE_AGE INTEGER,
DAMAGE_ID BIGINT
) DISTRIBUTE ON RANDOM;

-- Table F_DELIVERED_SERVICE version 2;


SET collapse_empty_table_version = false;
ALTER TABLE LPGR_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ADD COLUMN
SERVICE_NUMBER NATIONAL CHARACTER VARYING(125);
SET collapse_empty_table_version = true;
ALTER TABLE LPGR_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ADD COLUMN
LOCAL_KEY_SERVICE NATIONAL CHARACTER VARYING(125);
ALTER TABLE LPGR_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ADD COLUMN
NUMBER_OF_REPLACEMENT_CAR_DAYS NUMERIC(7,0);
ALTER TABLE LPGR_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE DROP COLUMN
SERVICE_NUMBER CASCADE;
ALTER TABLE LPGR_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE DROP COLUMN
LOCAL_KEY_SERVICE CASCADE;

ALTER TABLE LPGR_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE ADD CONSTRAINT


F_DELIVERED_SERVICE_PK PRIMARY KEY ( SERVICE_ID );
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_EARNED_INSURANCE_PREMIUM" ( -- Number of


Columns = 11
"EARNED_PREMIUN_ID" BIGINT not null,
"LOCAL_KEY_EARNED_PREMIUM" NATIONAL CHARACTER VARYING(125),
"INSURANCE_COVER_ID" BIGINT not null,
"CH_COVER_TYPE_ID" INTEGER not null,
"START_DATE_EARNED_PREMIUM" DATE not null,
"END_DATE_EARNED_PREMIUM" DATE not null,
"EARNED_PREMIUM_AMOUNT" NUMERIC(11,2),
"EARNED_PREMIUM_AM_EUR" NUMERIC(11,2),
"STOP_LOSS_EARNED_AMOUNT" NUMERIC(11,2),
"STOP_LOSS_EARNED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "EARNED_PREMIUN_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_EARNED_INSURANCE_PREMIUM ( -- Number of


Columns = 11
EARNED_PREMIUN_ID BIGINT not null,
LOCAL_KEY_EARNED_PREMIUM NATIONAL CHARACTER VARYING(125),
INSURANCE_COVER_ID BIGINT not null,
CH_COVER_TYPE_ID INTEGER not null,
START_DATE_EARNED_PREMIUM DATE not null,
END_DATE_EARNED_PREMIUM DATE not null,
EARNED_PREMIUM_AMOUNT NUMERIC(11,2),
EARNED_PREMIUM_AM_EUR NUMERIC(11,2),
STOP_LOSS_EARNED_AMOUNT NUMERIC(11,2),
STOP_LOSS_EARNED_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
PRIMARY KEY ( EARNED_PREMIUN_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_EARNED_INSURANCE_PREMIUM ( -- Number of


Columns = 11
EARNED_PREMIUN_ID BIGINT not null,
LOCAL_KEY_EARNED_PREMIUM NATIONAL CHARACTER VARYING(125),
INSURANCE_COVER_ID BIGINT not null,
CH_COVER_TYPE_ID INTEGER not null,
START_DATE_EARNED_PREMIUM DATE not null,
END_DATE_EARNED_PREMIUM DATE not null,
EARNED_PREMIUM_AMOUNT NUMERIC(11,2),
EARNED_PREMIUM_AM_EUR NUMERIC(11,2),
STOP_LOSS_EARNED_AMOUNT NUMERIC(11,2),
STOP_LOSS_EARNED_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_EARNED_INSURANCE_PREMIUM" ( -- Number of


Columns = 11
"EARNED_PREMIUN_ID" BIGINT not null,
"LOCAL_KEY_EARNED_PREMIUM" NATIONAL CHARACTER VARYING(125),
"INSURANCE_COVER_ID" BIGINT not null,
"CH_COVER_TYPE_ID" INTEGER not null,
"START_DATE_EARNED_PREMIUM" DATE not null,
"END_DATE_EARNED_PREMIUM" DATE not null,
"EARNED_PREMIUM_AMOUNT" NUMERIC(11,2),
"EARNED_PREMIUM_AM_EUR" NUMERIC(11,2),
"STOP_LOSS_EARNED_AMOUNT" NUMERIC(11,2),
"STOP_LOSS_EARNED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "EARNED_PREMIUN_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_EARNED_INSURANCE_PREMIUM ( -- Number of


Columns = 11
EARNED_PREMIUN_ID BIGINT not null,
LOCAL_KEY_EARNED_PREMIUM NATIONAL CHARACTER VARYING(125),
INSURANCE_COVER_ID BIGINT not null,
CH_COVER_TYPE_ID INTEGER not null,
START_DATE_EARNED_PREMIUM DATE not null,
END_DATE_EARNED_PREMIUM DATE not null,
EARNED_PREMIUM_AMOUNT NUMERIC(11,2),
EARNED_PREMIUM_AM_EUR NUMERIC(11,2),
STOP_LOSS_EARNED_AMOUNT NUMERIC(11,2),
STOP_LOSS_EARNED_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
PRIMARY KEY ( EARNED_PREMIUN_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_EARNED_INSURANCE_PREMIUM ( -- Number of


Columns = 11
EARNED_PREMIUN_ID BIGINT not null,
LOCAL_KEY_EARNED_PREMIUM NATIONAL CHARACTER VARYING(125),
INSURANCE_COVER_ID BIGINT not null,
CH_COVER_TYPE_ID INTEGER not null,
START_DATE_EARNED_PREMIUM DATE not null,
END_DATE_EARNED_PREMIUM DATE not null,
EARNED_PREMIUM_AMOUNT NUMERIC(11,2),
EARNED_PREMIUM_AM_EUR NUMERIC(11,2),
STOP_LOSS_EARNED_AMOUNT NUMERIC(11,2),
STOP_LOSS_EARNED_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
PRIMARY KEY ( EARNED_PREMIUN_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_EARNED_INSURANCE_PREMIUM ( -- Number of


Columns = 11
EARNED_PREMIUN_ID BIGINT not null,
LOCAL_KEY_EARNED_PREMIUM NATIONAL CHARACTER VARYING(125),
INSURANCE_COVER_ID BIGINT not null,
CH_COVER_TYPE_ID INTEGER not null,
START_DATE_EARNED_PREMIUM DATE not null,
END_DATE_EARNED_PREMIUM DATE not null,
EARNED_PREMIUM_AMOUNT NUMERIC(11,2),
EARNED_PREMIUM_AM_EUR NUMERIC(11,2),
STOP_LOSS_EARNED_AMOUNT NUMERIC(11,2),
STOP_LOSS_EARNED_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
PRIMARY KEY ( EARNED_PREMIUN_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_EARNED_INSURANCE_PREMIUM" ( -- Number of


Columns = 11
"EARNED_PREMIUN_ID" BIGINT not null,
"LOCAL_KEY_EARNED_PREMIUM" NATIONAL CHARACTER VARYING(125),
"INSURANCE_COVER_ID" BIGINT not null,
"CH_COVER_TYPE_ID" INTEGER not null,
"START_DATE_EARNED_PREMIUM" DATE not null,
"END_DATE_EARNED_PREMIUM" DATE not null,
"EARNED_PREMIUM_AMOUNT" NUMERIC(11,2),
"EARNED_PREMIUM_AM_EUR" NUMERIC(11,2),
"STOP_LOSS_EARNED_AMOUNT" NUMERIC(11,2),
"STOP_LOSS_EARNED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "EARNED_PREMIUN_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_EARNED_INSURANCE_PREMIUM" ( -- Number of


Columns = 11
"EARNED_PREMIUN_ID" BIGINT not null,
"LOCAL_KEY_EARNED_PREMIUM" NATIONAL CHARACTER VARYING(125),
"INSURANCE_COVER_ID" BIGINT not null,
"CH_COVER_TYPE_ID" INTEGER not null,
"START_DATE_EARNED_PREMIUM" DATE not null,
"END_DATE_EARNED_PREMIUM" DATE not null,
"EARNED_PREMIUM_AMOUNT" NUMERIC(11,2),
"EARNED_PREMIUM_AM_EUR" NUMERIC(11,2),
"STOP_LOSS_EARNED_AMOUNT" NUMERIC(11,2),
"STOP_LOSS_EARNED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "EARNED_PREMIUN_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_EARNED_INSURANCE_PREMIUM" ( -- Number of


Columns = 11
"EARNED_PREMIUN_ID" BIGINT not null,
"LOCAL_KEY_EARNED_PREMIUM" NATIONAL CHARACTER VARYING(125),
"INSURANCE_COVER_ID" BIGINT not null,
"CH_COVER_TYPE_ID" INTEGER not null,
"START_DATE_EARNED_PREMIUM" DATE not null,
"END_DATE_EARNED_PREMIUM" DATE not null,
"EARNED_PREMIUM_AMOUNT" NUMERIC(11,2),
"EARNED_PREMIUM_AM_EUR" NUMERIC(11,2),
"STOP_LOSS_EARNED_AMOUNT" NUMERIC(11,2),
"STOP_LOSS_EARNED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "EARNED_PREMIUN_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_EARNED_INSURANCE_PREMIUM" ( -- Number of


Columns = 11
"EARNED_PREMIUN_ID" BIGINT not null,
"LOCAL_KEY_EARNED_PREMIUM" NATIONAL CHARACTER VARYING(125),
"INSURANCE_COVER_ID" BIGINT not null,
"CH_COVER_TYPE_ID" INTEGER not null,
"START_DATE_EARNED_PREMIUM" DATE not null,
"END_DATE_EARNED_PREMIUM" DATE not null,
"EARNED_PREMIUM_AMOUNT" NUMERIC(11,2),
"EARNED_PREMIUM_AM_EUR" NUMERIC(11,2),
"STOP_LOSS_EARNED_AMOUNT" NUMERIC(11,2),
"STOP_LOSS_EARNED_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "EARNED_PREMIUN_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_FINAL_TOTALS" ( -- Number of Columns = 14


"FINAL_TOTALS_ID" BIGINT not null,
"LOCAL_KEY_FINAL_TOTALS" NATIONAL CHARACTER VARYING(125),
"BOOKPERIOD" DATE not null,
"COST_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_COST" NUMERIC(11,2),
"INVOICED_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_INVOICED" NUMERIC(11,2),
"PREPAID_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_PREPAID" NUMERIC(11,2),
"LEASE_CONTRACT_ID" BIGINT not null,
"CH_REPORTTYPE_ID" INTEGER not null,
"CH_SERVICE_ID" INTEGER not null,
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER,
"LOAD_DATE" DATE,
PRIMARY KEY ( "FINAL_TOTALS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_FINAL_TOTALS ( -- Number of Columns = 14


FINAL_TOTALS_ID BIGINT not null,
LOCAL_KEY_FINAL_TOTALS NATIONAL CHARACTER VARYING(125),
BOOKPERIOD DATE not null,
COST_AMOUNT NUMERIC(11,2),
CUMULATIVE_COST NUMERIC(11,2),
INVOICED_AMOUNT NUMERIC(11,2),
CUMULATIVE_INVOICED NUMERIC(11,2),
PREPAID_AMOUNT NUMERIC(11,2),
CUMULATIVE_PREPAID NUMERIC(11,2),
LEASE_CONTRACT_ID BIGINT not null,
CH_REPORTTYPE_ID INTEGER not null,
CH_SERVICE_ID INTEGER not null,
CH_LEASE_CONTRACT_STATUS_ID INTEGER,
LOAD_DATE DATE,
PRIMARY KEY ( FINAL_TOTALS_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .
CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_FINAL_TOTALS ( -- Number of Columns = 14
FINAL_TOTALS_ID BIGINT not null,
LOCAL_KEY_FINAL_TOTALS NATIONAL CHARACTER VARYING(125),
BOOKPERIOD DATE not null,
COST_AMOUNT NUMERIC(11,2),
CUMULATIVE_COST NUMERIC(11,2),
INVOICED_AMOUNT NUMERIC(11,2),
CUMULATIVE_INVOICED NUMERIC(11,2),
PREPAID_AMOUNT NUMERIC(11,2),
CUMULATIVE_PREPAID NUMERIC(11,2),
LEASE_CONTRACT_ID BIGINT not null,
CH_REPORTTYPE_ID INTEGER not null,
CH_SERVICE_ID INTEGER not null,
CH_LEASE_CONTRACT_STATUS_ID INTEGER,
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_FINAL_TOTALS" ( -- Number of Columns = 14


"FINAL_TOTALS_ID" BIGINT not null,
"LOCAL_KEY_FINAL_TOTALS" NATIONAL CHARACTER VARYING(125),
"BOOKPERIOD" DATE not null,
"COST_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_COST" NUMERIC(11,2),
"INVOICED_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_INVOICED" NUMERIC(11,2),
"PREPAID_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_PREPAID" NUMERIC(11,2),
"LEASE_CONTRACT_ID" BIGINT not null,
"CH_REPORTTYPE_ID" INTEGER not null,
"CH_SERVICE_ID" INTEGER not null,
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER,
"LOAD_DATE" DATE,
PRIMARY KEY ( "FINAL_TOTALS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_FINAL_TOTALS ( -- Number of Columns = 14


FINAL_TOTALS_ID BIGINT not null,
LOCAL_KEY_FINAL_TOTALS NATIONAL CHARACTER VARYING(125),
BOOKPERIOD DATE not null,
COST_AMOUNT NUMERIC(11,2),
CUMULATIVE_COST NUMERIC(11,2),
INVOICED_AMOUNT NUMERIC(11,2),
CUMULATIVE_INVOICED NUMERIC(11,2),
PREPAID_AMOUNT NUMERIC(11,2),
CUMULATIVE_PREPAID NUMERIC(11,2),
LEASE_CONTRACT_ID BIGINT not null,
CH_REPORTTYPE_ID INTEGER not null,
CH_SERVICE_ID INTEGER not null,
CH_LEASE_CONTRACT_STATUS_ID INTEGER,
LOAD_DATE DATE,
PRIMARY KEY ( FINAL_TOTALS_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_FINAL_TOTALS ( -- Number of Columns = 14


FINAL_TOTALS_ID BIGINT not null,
LOCAL_KEY_FINAL_TOTALS NATIONAL CHARACTER VARYING(125),
BOOKPERIOD DATE not null,
COST_AMOUNT NUMERIC(11,2),
CUMULATIVE_COST NUMERIC(11,2),
INVOICED_AMOUNT NUMERIC(11,2),
CUMULATIVE_INVOICED NUMERIC(11,2),
PREPAID_AMOUNT NUMERIC(11,2),
CUMULATIVE_PREPAID NUMERIC(11,2),
LEASE_CONTRACT_ID BIGINT not null,
CH_REPORTTYPE_ID INTEGER not null,
CH_SERVICE_ID INTEGER not null,
CH_LEASE_CONTRACT_STATUS_ID INTEGER,
LOAD_DATE DATE,
PRIMARY KEY ( FINAL_TOTALS_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_FINAL_TOTALS ( -- Number of Columns = 14


FINAL_TOTALS_ID BIGINT not null,
LOCAL_KEY_FINAL_TOTALS NATIONAL CHARACTER VARYING(125),
BOOKPERIOD DATE not null,
COST_AMOUNT NUMERIC(11,2),
CUMULATIVE_COST NUMERIC(11,2),
INVOICED_AMOUNT NUMERIC(11,2),
CUMULATIVE_INVOICED NUMERIC(11,2),
PREPAID_AMOUNT NUMERIC(11,2),
CUMULATIVE_PREPAID NUMERIC(11,2),
LEASE_CONTRACT_ID BIGINT not null,
CH_REPORTTYPE_ID INTEGER not null,
CH_SERVICE_ID INTEGER not null,
CH_LEASE_CONTRACT_STATUS_ID INTEGER,
LOAD_DATE DATE,
PRIMARY KEY ( FINAL_TOTALS_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_FINAL_TOTALS" ( -- Number of Columns = 14


"FINAL_TOTALS_ID" BIGINT not null,
"LOCAL_KEY_FINAL_TOTALS" NATIONAL CHARACTER VARYING(125),
"BOOKPERIOD" DATE not null,
"COST_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_COST" NUMERIC(11,2),
"INVOICED_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_INVOICED" NUMERIC(11,2),
"PREPAID_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_PREPAID" NUMERIC(11,2),
"LEASE_CONTRACT_ID" BIGINT not null,
"CH_REPORTTYPE_ID" INTEGER not null,
"CH_SERVICE_ID" INTEGER not null,
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER,
"LOAD_DATE" DATE,
PRIMARY KEY ( "FINAL_TOTALS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_FINAL_TOTALS" ( -- Number of Columns = 14


"FINAL_TOTALS_ID" BIGINT not null,
"LOCAL_KEY_FINAL_TOTALS" NATIONAL CHARACTER VARYING(125),
"BOOKPERIOD" DATE not null,
"COST_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_COST" NUMERIC(11,2),
"INVOICED_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_INVOICED" NUMERIC(11,2),
"PREPAID_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_PREPAID" NUMERIC(11,2),
"LEASE_CONTRACT_ID" BIGINT not null,
"CH_REPORTTYPE_ID" INTEGER not null,
"CH_SERVICE_ID" INTEGER not null,
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER,
"LOAD_DATE" DATE,
PRIMARY KEY ( "FINAL_TOTALS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_FINAL_TOTALS" ( -- Number of Columns = 14


"FINAL_TOTALS_ID" BIGINT not null,
"LOCAL_KEY_FINAL_TOTALS" NATIONAL CHARACTER VARYING(125),
"BOOKPERIOD" DATE not null,
"COST_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_COST" NUMERIC(11,2),
"INVOICED_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_INVOICED" NUMERIC(11,2),
"PREPAID_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_PREPAID" NUMERIC(11,2),
"LEASE_CONTRACT_ID" BIGINT not null,
"CH_REPORTTYPE_ID" INTEGER not null,
"CH_SERVICE_ID" INTEGER not null,
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER,
"LOAD_DATE" DATE,
PRIMARY KEY ( "FINAL_TOTALS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_FINAL_TOTALS" ( -- Number of Columns = 14


"FINAL_TOTALS_ID" BIGINT not null,
"LOCAL_KEY_FINAL_TOTALS" NATIONAL CHARACTER VARYING(125),
"BOOKPERIOD" DATE not null,
"COST_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_COST" NUMERIC(11,2),
"INVOICED_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_INVOICED" NUMERIC(11,2),
"PREPAID_AMOUNT" NUMERIC(11,2),
"CUMULATIVE_PREPAID" NUMERIC(11,2),
"LEASE_CONTRACT_ID" BIGINT not null,
"CH_REPORTTYPE_ID" INTEGER not null,
"CH_SERVICE_ID" INTEGER not null,
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER,
"LOAD_DATE" DATE,
PRIMARY KEY ( "FINAL_TOTALS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_INSURANCE_COVER" ( -- Number of Columns =


22
"INSURANCE_COVER_ID" BIGINT not null,
"LOCAL_KEY_INSURANCE_COVER" NATIONAL CHARACTER VARYING(125),
"INSURANCE_AGREEMENT_ID" BIGINT not null,
"INSURER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CH_COVER_TYPE_ID" INTEGER not null,
"CH_PREMIUM_PERIOD_TYPE_ID" INTEGER not null,
"VEHICLE_REMOVED_DATE" DATE not null,
"VEHICLE_ADDED_DATE" DATE not null,
"MULTI_YEAR_COVER_INDICATOR" CHARACTER(1),
"GROSS_WRITTEN_PREMIUM_AM" NUMERIC(11,2),
"GROSS_WRITTEN_PREMIUM_AM_EUR" NUMERIC(11,2),
"PREMIUM_MARGIN_AM" NUMERIC(11,2),
"PREMIUM_MARGIN_AM_EUR" NUMERIC(11,2),
"STOP_LOSS_WRITTEN_AM" NUMERIC(11,2),
"STOP_LOSS_WRITTEN_AM_EUR" NUMERIC(11,2),
"VEHICLE_WRITE_OFF_INDICATOR" CHARACTER(1),
"AGGREGATE_DEDUCTABLE_INDICATOR" CHARACTER(1),
"FIXED_PREMIUM_DURATION" NUMERIC(2,0),
"CLAIM_FRANCHISE_AM" NUMERIC(11,2),
"CLAIM_FRANCHISE_AM_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "INSURANCE_COVER_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER ( -- Number of Columns = 22


INSURANCE_COVER_ID BIGINT not null,
LOCAL_KEY_INSURANCE_COVER NATIONAL CHARACTER VARYING(125),
INSURANCE_AGREEMENT_ID BIGINT not null,
INSURER_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CH_COVER_TYPE_ID INTEGER not null,
CH_PREMIUM_PERIOD_TYPE_ID INTEGER not null,
VEHICLE_REMOVED_DATE DATE not null,
VEHICLE_ADDED_DATE DATE not null,
MULTI_YEAR_COVER_INDICATOR CHARACTER(1),
GROSS_WRITTEN_PREMIUM_AM NUMERIC(11,2),
GROSS_WRITTEN_PREMIUM_AM_EUR NUMERIC(11,2),
PREMIUM_MARGIN_AM NUMERIC(11,2),
PREMIUM_MARGIN_AM_EUR NUMERIC(11,2),
STOP_LOSS_WRITTEN_AM NUMERIC(11,2),
STOP_LOSS_WRITTEN_AM_EUR NUMERIC(11,2),
VEHICLE_WRITE_OFF_INDICATOR CHARACTER(1),
AGGREGATE_DEDUCTABLE_INDICATOR CHARACTER(1),
FIXED_PREMIUM_DURATION NUMERIC(2,0),
CLAIM_FRANCHISE_AM NUMERIC(11,2),
CLAIM_FRANCHISE_AM_EUR NUMERIC(11,2),
LOAD_DATE DATE,
PRIMARY KEY ( INSURANCE_COVER_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER ( -- Number of Columns = 22


INSURANCE_COVER_ID BIGINT not null,
LOCAL_KEY_INSURANCE_COVER NATIONAL CHARACTER VARYING(125),
INSURANCE_AGREEMENT_ID BIGINT not null,
INSURER_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CH_COVER_TYPE_ID INTEGER not null,
CH_PREMIUM_PERIOD_TYPE_ID INTEGER not null,
VEHICLE_REMOVED_DATE DATE not null,
VEHICLE_ADDED_DATE DATE not null,
MULTI_YEAR_COVER_INDICATOR CHARACTER(1),
GROSS_WRITTEN_PREMIUM_AM NUMERIC(11,2),
GROSS_WRITTEN_PREMIUM_AM_EUR NUMERIC(11,2),
PREMIUM_MARGIN_AM NUMERIC(11,2),
PREMIUM_MARGIN_AM_EUR NUMERIC(11,2),
STOP_LOSS_WRITTEN_AM NUMERIC(11,2),
STOP_LOSS_WRITTEN_AM_EUR NUMERIC(11,2),
VEHICLE_WRITE_OFF_INDICATOR CHARACTER(1),
AGGREGATE_DEDUCTABLE_INDICATOR CHARACTER(1),
FIXED_PREMIUM_DURATION NUMERIC(2,0),
CLAIM_FRANCHISE_AM NUMERIC(11,2),
CLAIM_FRANCHISE_AM_EUR NUMERIC(11,2),
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_INSURANCE_COVER" ( -- Number of Columns =


22
"INSURANCE_COVER_ID" BIGINT not null,
"LOCAL_KEY_INSURANCE_COVER" NATIONAL CHARACTER VARYING(125),
"INSURANCE_AGREEMENT_ID" BIGINT not null,
"INSURER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CH_COVER_TYPE_ID" INTEGER not null,
"CH_PREMIUM_PERIOD_TYPE_ID" INTEGER not null,
"VEHICLE_REMOVED_DATE" DATE not null,
"VEHICLE_ADDED_DATE" DATE not null,
"MULTI_YEAR_COVER_INDICATOR" CHARACTER(1),
"GROSS_WRITTEN_PREMIUM_AM" NUMERIC(11,2),
"GROSS_WRITTEN_PREMIUM_AM_EUR" NUMERIC(11,2),
"PREMIUM_MARGIN_AM" NUMERIC(11,2),
"PREMIUM_MARGIN_AM_EUR" NUMERIC(11,2),
"STOP_LOSS_WRITTEN_AM" NUMERIC(11,2),
"STOP_LOSS_WRITTEN_AM_EUR" NUMERIC(11,2),
"VEHICLE_WRITE_OFF_INDICATOR" CHARACTER(1),
"AGGREGATE_DEDUCTABLE_INDICATOR" CHARACTER(1),
"FIXED_PREMIUM_DURATION" NUMERIC(2,0),
"CLAIM_FRANCHISE_AM" NUMERIC(11,2),
"CLAIM_FRANCHISE_AM_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "INSURANCE_COVER_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_INSURANCE_COVER ( -- Number of Columns = 22


INSURANCE_COVER_ID BIGINT not null,
LOCAL_KEY_INSURANCE_COVER NATIONAL CHARACTER VARYING(125),
INSURANCE_AGREEMENT_ID BIGINT not null,
INSURER_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CH_COVER_TYPE_ID INTEGER not null,
CH_PREMIUM_PERIOD_TYPE_ID INTEGER not null,
VEHICLE_REMOVED_DATE DATE not null,
VEHICLE_ADDED_DATE DATE not null,
MULTI_YEAR_COVER_INDICATOR CHARACTER(1),
GROSS_WRITTEN_PREMIUM_AM NUMERIC(11,2),
GROSS_WRITTEN_PREMIUM_AM_EUR NUMERIC(11,2),
PREMIUM_MARGIN_AM NUMERIC(11,2),
PREMIUM_MARGIN_AM_EUR NUMERIC(11,2),
STOP_LOSS_WRITTEN_AM NUMERIC(11,2),
STOP_LOSS_WRITTEN_AM_EUR NUMERIC(11,2),
VEHICLE_WRITE_OFF_INDICATOR CHARACTER(1),
AGGREGATE_DEDUCTABLE_INDICATOR CHARACTER(1),
FIXED_PREMIUM_DURATION NUMERIC(2,0),
CLAIM_FRANCHISE_AM NUMERIC(11,2),
CLAIM_FRANCHISE_AM_EUR NUMERIC(11,2),
LOAD_DATE DATE,
PRIMARY KEY ( INSURANCE_COVER_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_INSURANCE_COVER ( -- Number of Columns = 22


INSURANCE_COVER_ID BIGINT not null,
LOCAL_KEY_INSURANCE_COVER NATIONAL CHARACTER VARYING(125),
INSURANCE_AGREEMENT_ID BIGINT not null,
INSURER_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CH_COVER_TYPE_ID INTEGER not null,
CH_PREMIUM_PERIOD_TYPE_ID INTEGER not null,
VEHICLE_REMOVED_DATE DATE not null,
VEHICLE_ADDED_DATE DATE not null,
MULTI_YEAR_COVER_INDICATOR CHARACTER(1),
GROSS_WRITTEN_PREMIUM_AM NUMERIC(11,2),
GROSS_WRITTEN_PREMIUM_AM_EUR NUMERIC(11,2),
PREMIUM_MARGIN_AM NUMERIC(11,2),
PREMIUM_MARGIN_AM_EUR NUMERIC(11,2),
STOP_LOSS_WRITTEN_AM NUMERIC(11,2),
STOP_LOSS_WRITTEN_AM_EUR NUMERIC(11,2),
VEHICLE_WRITE_OFF_INDICATOR CHARACTER(1),
AGGREGATE_DEDUCTABLE_INDICATOR CHARACTER(1),
FIXED_PREMIUM_DURATION NUMERIC(2,0),
CLAIM_FRANCHISE_AM NUMERIC(11,2),
CLAIM_FRANCHISE_AM_EUR NUMERIC(11,2),
LOAD_DATE DATE,
PRIMARY KEY ( INSURANCE_COVER_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_INSURANCE_COVER ( -- Number of Columns = 22


INSURANCE_COVER_ID BIGINT not null,
LOCAL_KEY_INSURANCE_COVER NATIONAL CHARACTER VARYING(125),
INSURANCE_AGREEMENT_ID BIGINT not null,
INSURER_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CH_COVER_TYPE_ID INTEGER not null,
CH_PREMIUM_PERIOD_TYPE_ID INTEGER not null,
VEHICLE_REMOVED_DATE DATE not null,
VEHICLE_ADDED_DATE DATE not null,
MULTI_YEAR_COVER_INDICATOR CHARACTER(1),
GROSS_WRITTEN_PREMIUM_AM NUMERIC(11,2),
GROSS_WRITTEN_PREMIUM_AM_EUR NUMERIC(11,2),
PREMIUM_MARGIN_AM NUMERIC(11,2),
PREMIUM_MARGIN_AM_EUR NUMERIC(11,2),
STOP_LOSS_WRITTEN_AM NUMERIC(11,2),
STOP_LOSS_WRITTEN_AM_EUR NUMERIC(11,2),
VEHICLE_WRITE_OFF_INDICATOR CHARACTER(1),
AGGREGATE_DEDUCTABLE_INDICATOR CHARACTER(1),
FIXED_PREMIUM_DURATION NUMERIC(2,0),
CLAIM_FRANCHISE_AM NUMERIC(11,2),
CLAIM_FRANCHISE_AM_EUR NUMERIC(11,2),
LOAD_DATE DATE,
PRIMARY KEY ( INSURANCE_COVER_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_INSURANCE_COVER" ( -- Number of Columns =


22
"INSURANCE_COVER_ID" BIGINT not null,
"LOCAL_KEY_INSURANCE_COVER" NATIONAL CHARACTER VARYING(125),
"INSURANCE_AGREEMENT_ID" BIGINT not null,
"INSURER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CH_COVER_TYPE_ID" INTEGER not null,
"CH_PREMIUM_PERIOD_TYPE_ID" INTEGER not null,
"VEHICLE_REMOVED_DATE" DATE not null,
"VEHICLE_ADDED_DATE" DATE not null,
"MULTI_YEAR_COVER_INDICATOR" CHARACTER(1),
"GROSS_WRITTEN_PREMIUM_AM" NUMERIC(11,2),
"GROSS_WRITTEN_PREMIUM_AM_EUR" NUMERIC(11,2),
"PREMIUM_MARGIN_AM" NUMERIC(11,2),
"PREMIUM_MARGIN_AM_EUR" NUMERIC(11,2),
"STOP_LOSS_WRITTEN_AM" NUMERIC(11,2),
"STOP_LOSS_WRITTEN_AM_EUR" NUMERIC(11,2),
"VEHICLE_WRITE_OFF_INDICATOR" CHARACTER(1),
"AGGREGATE_DEDUCTABLE_INDICATOR" CHARACTER(1),
"FIXED_PREMIUM_DURATION" NUMERIC(2,0),
"CLAIM_FRANCHISE_AM" NUMERIC(11,2),
"CLAIM_FRANCHISE_AM_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "INSURANCE_COVER_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_INSURANCE_COVER" ( -- Number of Columns =


22
"INSURANCE_COVER_ID" BIGINT not null,
"LOCAL_KEY_INSURANCE_COVER" NATIONAL CHARACTER VARYING(125),
"INSURANCE_AGREEMENT_ID" BIGINT not null,
"INSURER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CH_COVER_TYPE_ID" INTEGER not null,
"CH_PREMIUM_PERIOD_TYPE_ID" INTEGER not null,
"VEHICLE_REMOVED_DATE" DATE not null,
"VEHICLE_ADDED_DATE" DATE not null,
"MULTI_YEAR_COVER_INDICATOR" CHARACTER(1),
"GROSS_WRITTEN_PREMIUM_AM" NUMERIC(11,2),
"GROSS_WRITTEN_PREMIUM_AM_EUR" NUMERIC(11,2),
"PREMIUM_MARGIN_AM" NUMERIC(11,2),
"PREMIUM_MARGIN_AM_EUR" NUMERIC(11,2),
"STOP_LOSS_WRITTEN_AM" NUMERIC(11,2),
"STOP_LOSS_WRITTEN_AM_EUR" NUMERIC(11,2),
"VEHICLE_WRITE_OFF_INDICATOR" CHARACTER(1),
"AGGREGATE_DEDUCTABLE_INDICATOR" CHARACTER(1),
"FIXED_PREMIUM_DURATION" NUMERIC(2,0),
"CLAIM_FRANCHISE_AM" NUMERIC(11,2),
"CLAIM_FRANCHISE_AM_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "INSURANCE_COVER_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_INSURANCE_COVER" ( -- Number of Columns =


22
"INSURANCE_COVER_ID" BIGINT not null,
"LOCAL_KEY_INSURANCE_COVER" NATIONAL CHARACTER VARYING(125),
"INSURANCE_AGREEMENT_ID" BIGINT not null,
"INSURER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CH_COVER_TYPE_ID" INTEGER not null,
"CH_PREMIUM_PERIOD_TYPE_ID" INTEGER not null,
"VEHICLE_REMOVED_DATE" DATE not null,
"VEHICLE_ADDED_DATE" DATE not null,
"MULTI_YEAR_COVER_INDICATOR" CHARACTER(1),
"GROSS_WRITTEN_PREMIUM_AM" NUMERIC(11,2),
"GROSS_WRITTEN_PREMIUM_AM_EUR" NUMERIC(11,2),
"PREMIUM_MARGIN_AM" NUMERIC(11,2),
"PREMIUM_MARGIN_AM_EUR" NUMERIC(11,2),
"STOP_LOSS_WRITTEN_AM" NUMERIC(11,2),
"STOP_LOSS_WRITTEN_AM_EUR" NUMERIC(11,2),
"VEHICLE_WRITE_OFF_INDICATOR" CHARACTER(1),
"AGGREGATE_DEDUCTABLE_INDICATOR" CHARACTER(1),
"FIXED_PREMIUM_DURATION" NUMERIC(2,0),
"CLAIM_FRANCHISE_AM" NUMERIC(11,2),
"CLAIM_FRANCHISE_AM_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "INSURANCE_COVER_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_INSURANCE_COVER" ( -- Number of Columns =


22
"INSURANCE_COVER_ID" BIGINT not null,
"LOCAL_KEY_INSURANCE_COVER" NATIONAL CHARACTER VARYING(125),
"INSURANCE_AGREEMENT_ID" BIGINT not null,
"INSURER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CH_COVER_TYPE_ID" INTEGER not null,
"CH_PREMIUM_PERIOD_TYPE_ID" INTEGER not null,
"VEHICLE_REMOVED_DATE" DATE not null,
"VEHICLE_ADDED_DATE" DATE not null,
"MULTI_YEAR_COVER_INDICATOR" CHARACTER(1),
"GROSS_WRITTEN_PREMIUM_AM" NUMERIC(11,2),
"GROSS_WRITTEN_PREMIUM_AM_EUR" NUMERIC(11,2),
"PREMIUM_MARGIN_AM" NUMERIC(11,2),
"PREMIUM_MARGIN_AM_EUR" NUMERIC(11,2),
"STOP_LOSS_WRITTEN_AM" NUMERIC(11,2),
"STOP_LOSS_WRITTEN_AM_EUR" NUMERIC(11,2),
"VEHICLE_WRITE_OFF_INDICATOR" CHARACTER(1),
"AGGREGATE_DEDUCTABLE_INDICATOR" CHARACTER(1),
"FIXED_PREMIUM_DURATION" NUMERIC(2,0),
"CLAIM_FRANCHISE_AM" NUMERIC(11,2),
"CLAIM_FRANCHISE_AM_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
PRIMARY KEY ( "INSURANCE_COVER_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .
CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_INVOICE_PAYMENT_DETAILS" ( -- Number of
Columns = 8
"INVOICE_PAYMENTS_ID" BIGINT not null,
"INVOICE_ID" BIGINT not null,
"DEBTOR_ID" BIGINT not null,
"LOCAL_KEY_INVOICE_PAYMENTS" NATIONAL CHARACTER VARYING(125),
"BOOKPERIOD" DATE,
"PAYED_AMOUNT" NUMERIC(11,2),
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "INVOICE_PAYMENTS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_INVOICE_PAYMENT_DETAILS ( -- Number of


Columns = 8
INVOICE_PAYMENTS_ID BIGINT not null,
INVOICE_ID BIGINT not null,
DEBTOR_ID BIGINT not null,
LOCAL_KEY_INVOICE_PAYMENTS NATIONAL CHARACTER VARYING(125),
BOOKPERIOD DATE,
PAYED_AMOUNT NUMERIC(11,2),
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PRIMARY KEY ( INVOICE_PAYMENTS_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_INVOICE_PAYMENT_DETAILS ( -- Number of


Columns = 8
INVOICE_PAYMENTS_ID BIGINT not null,
INVOICE_ID BIGINT not null,
DEBTOR_ID BIGINT not null,
LOCAL_KEY_INVOICE_PAYMENTS NATIONAL CHARACTER VARYING(125),
BOOKPERIOD DATE,
PAYED_AMOUNT NUMERIC(11,2),
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_INVOICE_PAYMENT_DETAILS" ( -- Number of


Columns = 8
"INVOICE_PAYMENTS_ID" BIGINT not null,
"INVOICE_ID" BIGINT not null,
"DEBTOR_ID" BIGINT not null,
"LOCAL_KEY_INVOICE_PAYMENTS" NATIONAL CHARACTER VARYING(125),
"BOOKPERIOD" DATE,
"PAYED_AMOUNT" NUMERIC(11,2),
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "INVOICE_PAYMENTS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_INVOICE_PAYMENT_DETAILS ( -- Number of


Columns = 8
INVOICE_PAYMENTS_ID BIGINT not null,
INVOICE_ID BIGINT not null,
DEBTOR_ID BIGINT not null,
LOCAL_KEY_INVOICE_PAYMENTS NATIONAL CHARACTER VARYING(125),
BOOKPERIOD DATE,
PAYED_AMOUNT NUMERIC(11,2),
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PRIMARY KEY ( INVOICE_PAYMENTS_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_INVOICE_PAYMENT_DETAILS ( -- Number of


Columns = 8
INVOICE_PAYMENTS_ID BIGINT not null,
INVOICE_ID BIGINT not null,
DEBTOR_ID BIGINT not null,
LOCAL_KEY_INVOICE_PAYMENTS NATIONAL CHARACTER VARYING(125),
BOOKPERIOD DATE,
PAYED_AMOUNT NUMERIC(11,2),
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PRIMARY KEY ( INVOICE_PAYMENTS_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_INVOICE_PAYMENT_DETAILS ( -- Number of


Columns = 8
INVOICE_PAYMENTS_ID BIGINT not null,
INVOICE_ID BIGINT not null,
DEBTOR_ID BIGINT not null,
LOCAL_KEY_INVOICE_PAYMENTS NATIONAL CHARACTER VARYING(125),
BOOKPERIOD DATE,
PAYED_AMOUNT NUMERIC(11,2),
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PRIMARY KEY ( INVOICE_PAYMENTS_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_INVOICE_PAYMENT_DETAILS" ( -- Number of


Columns = 8
"INVOICE_PAYMENTS_ID" BIGINT not null,
"INVOICE_ID" BIGINT not null,
"DEBTOR_ID" BIGINT not null,
"LOCAL_KEY_INVOICE_PAYMENTS" NATIONAL CHARACTER VARYING(125),
"BOOKPERIOD" DATE,
"PAYED_AMOUNT" NUMERIC(11,2),
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "INVOICE_PAYMENTS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_INVOICE_PAYMENT_DETAILS" ( -- Number of


Columns = 8
"INVOICE_PAYMENTS_ID" BIGINT not null,
"INVOICE_ID" BIGINT not null,
"DEBTOR_ID" BIGINT not null,
"LOCAL_KEY_INVOICE_PAYMENTS" NATIONAL CHARACTER VARYING(125),
"BOOKPERIOD" DATE,
"PAYED_AMOUNT" NUMERIC(11,2),
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "INVOICE_PAYMENTS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_INVOICE_PAYMENT_DETAILS" ( -- Number of


Columns = 8
"INVOICE_PAYMENTS_ID" BIGINT not null,
"INVOICE_ID" BIGINT not null,
"DEBTOR_ID" BIGINT not null,
"LOCAL_KEY_INVOICE_PAYMENTS" NATIONAL CHARACTER VARYING(125),
"BOOKPERIOD" DATE,
"PAYED_AMOUNT" NUMERIC(11,2),
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "INVOICE_PAYMENTS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_INVOICE_PAYMENT_DETAILS" ( -- Number of


Columns = 8
"INVOICE_PAYMENTS_ID" BIGINT not null,
"INVOICE_ID" BIGINT not null,
"DEBTOR_ID" BIGINT not null,
"LOCAL_KEY_INVOICE_PAYMENTS" NATIONAL CHARACTER VARYING(125),
"BOOKPERIOD" DATE,
"PAYED_AMOUNT" NUMERIC(11,2),
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "INVOICE_PAYMENTS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_KPI" ( -- Number of Columns = 9


"KPI_ID" BIGINT not null,
"LOCAL_KEY_KPI" NATIONAL CHARACTER VARYING(125),
"PERIOD" DATE,
"VALUE" NUMERIC(11,2),
"INVOLVED_PARTY_ID" BIGINT not null,
"CH_KPI_ID" INTEGER not null,
"CH_PERIOD_TYPE_ID" INTEGER not null,
"CH_VALUE_TYPE_ID" INTEGER not null,
"LOAD_DATE" DATE,
PRIMARY KEY ( "KPI_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_KPI ( -- Number of Columns = 9


KPI_ID BIGINT not null,
LOCAL_KEY_KPI NATIONAL CHARACTER VARYING(125),
PERIOD DATE,
VALUE NUMERIC(11,2),
INVOLVED_PARTY_ID BIGINT not null,
CH_KPI_ID INTEGER not null,
CH_PERIOD_TYPE_ID INTEGER not null,
CH_VALUE_TYPE_ID INTEGER not null,
LOAD_DATE DATE,
PRIMARY KEY ( KPI_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_KPI ( -- Number of Columns = 9


KPI_ID BIGINT not null,
LOCAL_KEY_KPI NATIONAL CHARACTER VARYING(125),
PERIOD DATE,
VALUE NUMERIC(11,2),
INVOLVED_PARTY_ID BIGINT not null,
CH_KPI_ID INTEGER not null,
CH_PERIOD_TYPE_ID INTEGER not null,
CH_VALUE_TYPE_ID INTEGER not null,
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_KPI" ( -- Number of Columns = 9


"KPI_ID" BIGINT not null,
"LOCAL_KEY_KPI" NATIONAL CHARACTER VARYING(125),
"PERIOD" DATE,
"VALUE" NUMERIC(11,2),
"INVOLVED_PARTY_ID" BIGINT not null,
"CH_KPI_ID" INTEGER not null,
"CH_PERIOD_TYPE_ID" INTEGER not null,
"CH_VALUE_TYPE_ID" INTEGER not null,
"LOAD_DATE" DATE,
PRIMARY KEY ( "KPI_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_KPI ( -- Number of Columns = 9


KPI_ID BIGINT not null,
LOCAL_KEY_KPI NATIONAL CHARACTER VARYING(125),
PERIOD DATE,
VALUE NUMERIC(11,2),
INVOLVED_PARTY_ID BIGINT not null,
CH_KPI_ID INTEGER not null,
CH_PERIOD_TYPE_ID INTEGER not null,
CH_VALUE_TYPE_ID INTEGER not null,
LOAD_DATE DATE,
PRIMARY KEY ( KPI_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_KPI ( -- Number of Columns = 9


KPI_ID BIGINT not null,
LOCAL_KEY_KPI NATIONAL CHARACTER VARYING(125),
PERIOD DATE,
VALUE NUMERIC(11,2),
INVOLVED_PARTY_ID BIGINT not null,
CH_KPI_ID INTEGER not null,
CH_PERIOD_TYPE_ID INTEGER not null,
CH_VALUE_TYPE_ID INTEGER not null,
LOAD_DATE DATE,
PRIMARY KEY ( KPI_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .
CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_KPI ( -- Number of Columns = 9
KPI_ID BIGINT not null,
LOCAL_KEY_KPI NATIONAL CHARACTER VARYING(125),
PERIOD DATE,
VALUE NUMERIC(11,2),
INVOLVED_PARTY_ID BIGINT not null,
CH_KPI_ID INTEGER not null,
CH_PERIOD_TYPE_ID INTEGER not null,
CH_VALUE_TYPE_ID INTEGER not null,
LOAD_DATE DATE,
PRIMARY KEY ( KPI_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_KPI" ( -- Number of Columns = 9


"KPI_ID" BIGINT not null,
"LOCAL_KEY_KPI" NATIONAL CHARACTER VARYING(125),
"PERIOD" DATE,
"VALUE" NUMERIC(11,2),
"INVOLVED_PARTY_ID" BIGINT not null,
"CH_KPI_ID" INTEGER not null,
"CH_PERIOD_TYPE_ID" INTEGER not null,
"CH_VALUE_TYPE_ID" INTEGER not null,
"LOAD_DATE" DATE,
PRIMARY KEY ( "KPI_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_KPI" ( -- Number of Columns = 9


"KPI_ID" BIGINT not null,
"LOCAL_KEY_KPI" NATIONAL CHARACTER VARYING(125),
"PERIOD" DATE,
"VALUE" NUMERIC(11,2),
"INVOLVED_PARTY_ID" BIGINT not null,
"CH_KPI_ID" INTEGER not null,
"CH_PERIOD_TYPE_ID" INTEGER not null,
"CH_VALUE_TYPE_ID" INTEGER not null,
"LOAD_DATE" DATE,
PRIMARY KEY ( "KPI_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_KPI" ( -- Number of Columns = 9


"KPI_ID" BIGINT not null,
"LOCAL_KEY_KPI" NATIONAL CHARACTER VARYING(125),
"PERIOD" DATE,
"VALUE" NUMERIC(11,2),
"INVOLVED_PARTY_ID" BIGINT not null,
"CH_KPI_ID" INTEGER not null,
"CH_PERIOD_TYPE_ID" INTEGER not null,
"CH_VALUE_TYPE_ID" INTEGER not null,
"LOAD_DATE" DATE,
PRIMARY KEY ( "KPI_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_KPI" ( -- Number of Columns = 9


"KPI_ID" BIGINT not null,
"LOCAL_KEY_KPI" NATIONAL CHARACTER VARYING(125),
"PERIOD" DATE,
"VALUE" NUMERIC(11,2),
"INVOLVED_PARTY_ID" BIGINT not null,
"CH_KPI_ID" INTEGER not null,
"CH_PERIOD_TYPE_ID" INTEGER not null,
"CH_VALUE_TYPE_ID" INTEGER not null,
"LOAD_DATE" DATE,
PRIMARY KEY ( "KPI_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_LC_STATUS_REGISTRATION_HIST" ( -- Number of


Columns = 4
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"EFFECTIVE_START_DATE" DATE not null,
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER,
"EFFECTIVE_END_DATE" DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_LC_STATUS_REGISTRATION_HIST ( -- Number of


Columns = 4
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
EFFECTIVE_START_DATE DATE not null,
CH_LEASE_CONTRACT_STATUS_ID INTEGER,
EFFECTIVE_END_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_LC_STATUS_REGISTRATION_HIST ( -- Number of


Columns = 4
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
EFFECTIVE_START_DATE DATE not null,
CH_LEASE_CONTRACT_STATUS_ID INTEGER,
EFFECTIVE_END_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_LC_STATUS_REGISTRATION_HIST" ( -- Number of


Columns = 4
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"EFFECTIVE_START_DATE" DATE not null,
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER,
"EFFECTIVE_END_DATE" DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_LC_STATUS_REGISTRATION_HIST ( -- Number of


Columns = 4
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
EFFECTIVE_START_DATE DATE not null,
CH_LEASE_CONTRACT_STATUS_ID INTEGER,
EFFECTIVE_END_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_LC_STATUS_REGISTRATION_HIST ( -- Number of


Columns = 4
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
EFFECTIVE_START_DATE DATE not null,
CH_LEASE_CONTRACT_STATUS_ID INTEGER,
EFFECTIVE_END_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_LC_STATUS_REGISTRATION_HIST ( -- Number of


Columns = 4
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
EFFECTIVE_START_DATE DATE not null,
CH_LEASE_CONTRACT_STATUS_ID INTEGER,
EFFECTIVE_END_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_LC_STATUS_REGISTRATION_HIST" ( -- Number


of Columns = 4
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"EFFECTIVE_START_DATE" DATE not null,
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER,
"EFFECTIVE_END_DATE" DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_LC_STATUS_REGISTRATION_HIST" ( -- Number of


Columns = 4
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"EFFECTIVE_START_DATE" DATE not null,
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER,
"EFFECTIVE_END_DATE" DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_LC_STATUS_REGISTRATION_HIST" ( -- Number of


Columns = 4
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"EFFECTIVE_START_DATE" DATE not null,
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER,
"EFFECTIVE_END_DATE" DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_LC_STATUS_REGISTRATION_HIST" ( -- Number


of Columns = 4
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"EFFECTIVE_START_DATE" DATE not null,
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER,
"EFFECTIVE_END_DATE" DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_LEASE_CONTRACT_STATUS_HIST" ( -- Number of


Columns = 5
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"STATUS_PERIOD_DATE" DATE not null,
"LOAD_DATE" DATE,
"LEASE_CONTRACT_PERIOD_STATUS" NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( "STATUS_PERIOD_DATE" , "LEASE_CONTRACT_VEHICLE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_LEASE_CONTRACT_STATUS_HIST ( -- Number of


Columns = 5
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
STATUS_PERIOD_DATE DATE not null,
LOAD_DATE DATE,
LEASE_CONTRACT_PERIOD_STATUS NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( STATUS_PERIOD_DATE , LEASE_CONTRACT_VEHICLE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_LEASE_CONTRACT_STATUS_HIST ( -- Number of


Columns = 5
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
STATUS_PERIOD_DATE DATE not null,
LOAD_DATE DATE,
LEASE_CONTRACT_PERIOD_STATUS NATIONAL CHARACTER VARYING(125)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_LEASE_CONTRACT_STATUS_HIST" ( -- Number of


Columns = 5
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"STATUS_PERIOD_DATE" DATE not null,
"LOAD_DATE" DATE,
"LEASE_CONTRACT_PERIOD_STATUS" NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( "STATUS_PERIOD_DATE" , "LEASE_CONTRACT_VEHICLE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_LEASE_CONTRACT_STATUS_HIST ( -- Number of


Columns = 5
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
STATUS_PERIOD_DATE DATE not null,
LOAD_DATE DATE,
LEASE_CONTRACT_PERIOD_STATUS NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( STATUS_PERIOD_DATE , LEASE_CONTRACT_VEHICLE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_LEASE_CONTRACT_STATUS_HIST ( -- Number of


Columns = 5
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
STATUS_PERIOD_DATE DATE not null,
LOAD_DATE DATE,
LEASE_CONTRACT_PERIOD_STATUS NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( STATUS_PERIOD_DATE , LEASE_CONTRACT_VEHICLE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_LEASE_CONTRACT_STATUS_HIST ( -- Number of


Columns = 5
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
STATUS_PERIOD_DATE DATE not null,
LOAD_DATE DATE,
LEASE_CONTRACT_PERIOD_STATUS NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( STATUS_PERIOD_DATE , LEASE_CONTRACT_VEHICLE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_LEASE_CONTRACT_STATUS_HIST" ( -- Number of


Columns = 5
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"STATUS_PERIOD_DATE" DATE not null,
"LOAD_DATE" DATE,
"LEASE_CONTRACT_PERIOD_STATUS" NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( "STATUS_PERIOD_DATE" , "LEASE_CONTRACT_VEHICLE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_LEASE_CONTRACT_STATUS_HIST" ( -- Number of


Columns = 5
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"STATUS_PERIOD_DATE" DATE not null,
"LOAD_DATE" DATE,
"LEASE_CONTRACT_PERIOD_STATUS" NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( "STATUS_PERIOD_DATE" , "LEASE_CONTRACT_VEHICLE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_LEASE_CONTRACT_STATUS_HIST" ( -- Number of


Columns = 5
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"STATUS_PERIOD_DATE" DATE not null,
"LOAD_DATE" DATE,
"LEASE_CONTRACT_PERIOD_STATUS" NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( "STATUS_PERIOD_DATE" , "LEASE_CONTRACT_VEHICLE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_LEASE_CONTRACT_STATUS_HIST" ( -- Number of


Columns = 5
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"STATUS_PERIOD_DATE" DATE not null,
"LOAD_DATE" DATE,
"LEASE_CONTRACT_PERIOD_STATUS" NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( "STATUS_PERIOD_DATE" , "LEASE_CONTRACT_VEHICLE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_LP_ENTITY_LC_STATUS_HIST" ( -- Number of


Columns = 5
"PERIOD_DATE" DATE,
"LOAD_DATE" DATE,
"LEASE_CONTRACT_STATUS" NATIONAL CHARACTER VARYING(125),
"LP_ENTITY_LC_STATUS_HIST_KEY" NATIONAL CHARACTER VARYING(125) not null,
"NUMBER_OF_LEASE_CONTRACTS" BIGINT,
PRIMARY KEY ( "LP_ENTITY_LC_STATUS_HIST_KEY" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_LP_ENTITY_LC_STATUS_HIST ( -- Number of


Columns = 5
PERIOD_DATE DATE,
LOAD_DATE DATE,
LEASE_CONTRACT_STATUS NATIONAL CHARACTER VARYING(125),
LP_ENTITY_LC_STATUS_HIST_KEY NATIONAL CHARACTER VARYING(125) not null,
NUMBER_OF_LEASE_CONTRACTS BIGINT,
PRIMARY KEY ( LP_ENTITY_LC_STATUS_HIST_KEY )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_LP_ENTITY_LC_STATUS_HIST ( -- Number of


Columns = 5
PERIOD_DATE DATE,
LOAD_DATE DATE,
LEASE_CONTRACT_STATUS NATIONAL CHARACTER VARYING(125),
LP_ENTITY_LC_STATUS_HIST_KEY NATIONAL CHARACTER VARYING(125) not null,
NUMBER_OF_LEASE_CONTRACTS BIGINT
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_LP_ENTITY_LC_STATUS_HIST" ( -- Number of


Columns = 5
"PERIOD_DATE" DATE,
"LOAD_DATE" DATE,
"LEASE_CONTRACT_STATUS" NATIONAL CHARACTER VARYING(125),
"LP_ENTITY_LC_STATUS_HIST_KEY" NATIONAL CHARACTER VARYING(125) not null,
"NUMBER_OF_LEASE_CONTRACTS" BIGINT,
PRIMARY KEY ( "LP_ENTITY_LC_STATUS_HIST_KEY" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_LP_ENTITY_LC_STATUS_HIST ( -- Number of


Columns = 5
PERIOD_DATE DATE,
LOAD_DATE DATE,
LEASE_CONTRACT_STATUS NATIONAL CHARACTER VARYING(125),
LP_ENTITY_LC_STATUS_HIST_KEY NATIONAL CHARACTER VARYING(125) not null,
NUMBER_OF_LEASE_CONTRACTS BIGINT,
PRIMARY KEY ( LP_ENTITY_LC_STATUS_HIST_KEY )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_LP_ENTITY_LC_STATUS_HIST ( -- Number of


Columns = 5
PERIOD_DATE DATE,
LOAD_DATE DATE,
LEASE_CONTRACT_STATUS NATIONAL CHARACTER VARYING(125),
LP_ENTITY_LC_STATUS_HIST_KEY NATIONAL CHARACTER VARYING(125) not null,
NUMBER_OF_LEASE_CONTRACTS BIGINT,
PRIMARY KEY ( LP_ENTITY_LC_STATUS_HIST_KEY )
) DISTRIBUTE ON RANDOM;
\echo -n .
CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_LP_ENTITY_LC_STATUS_HIST ( -- Number of
Columns = 5
PERIOD_DATE DATE,
LOAD_DATE DATE,
LEASE_CONTRACT_STATUS NATIONAL CHARACTER VARYING(125),
LP_ENTITY_LC_STATUS_HIST_KEY NATIONAL CHARACTER VARYING(125) not null,
NUMBER_OF_LEASE_CONTRACTS BIGINT,
PRIMARY KEY ( LP_ENTITY_LC_STATUS_HIST_KEY )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_LP_ENTITY_LC_STATUS_HIST" ( -- Number of


Columns = 5
"PERIOD_DATE" DATE,
"LOAD_DATE" DATE,
"LEASE_CONTRACT_STATUS" NATIONAL CHARACTER VARYING(125),
"LP_ENTITY_LC_STATUS_HIST_KEY" NATIONAL CHARACTER VARYING(125) not null,
"NUMBER_OF_LEASE_CONTRACTS" BIGINT,
PRIMARY KEY ( "LP_ENTITY_LC_STATUS_HIST_KEY" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_LP_ENTITY_LC_STATUS_HIST" ( -- Number of


Columns = 5
"PERIOD_DATE" DATE,
"LOAD_DATE" DATE,
"LEASE_CONTRACT_STATUS" NATIONAL CHARACTER VARYING(125),
"LP_ENTITY_LC_STATUS_HIST_KEY" NATIONAL CHARACTER VARYING(125) not null,
"NUMBER_OF_LEASE_CONTRACTS" BIGINT,
PRIMARY KEY ( "LP_ENTITY_LC_STATUS_HIST_KEY" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_LP_ENTITY_LC_STATUS_HIST" ( -- Number of


Columns = 5
"PERIOD_DATE" DATE,
"LOAD_DATE" DATE,
"LEASE_CONTRACT_STATUS" NATIONAL CHARACTER VARYING(125),
"LP_ENTITY_LC_STATUS_HIST_KEY" NATIONAL CHARACTER VARYING(125) not null,
"NUMBER_OF_LEASE_CONTRACTS" BIGINT,
PRIMARY KEY ( "LP_ENTITY_LC_STATUS_HIST_KEY" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_LP_ENTITY_LC_STATUS_HIST" ( -- Number of


Columns = 5
"PERIOD_DATE" DATE,
"LOAD_DATE" DATE,
"LEASE_CONTRACT_STATUS" NATIONAL CHARACTER VARYING(125),
"LP_ENTITY_LC_STATUS_HIST_KEY" NATIONAL CHARACTER VARYING(125) not null,
"NUMBER_OF_LEASE_CONTRACTS" BIGINT,
PRIMARY KEY ( "LP_ENTITY_LC_STATUS_HIST_KEY" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_LP_INVOICE_DETAIL" ( -- Number of Columns =


14
"LEASE_SERVICE_ID" INTEGER not null,
"BOOK_PERIOD_DATE" DATE not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LP_INVOICE_ID" BIGINT not null,
"AMOUNT_TYPE" CHARACTER(1),
"INVOICE_AMOUNT" NUMERIC(11,2),
"INVOICE_AMOUNT_EUR" NUMERIC(11,2),
"INVOICED_MILEAGE" NUMERIC(7,0),
"INVOICED_MILEAGE_KM" NUMERIC(7,0),
"LOAD_DATE" DATE,
"LP_INVOICE_LINE_ID" BIGINT not null,
"LOCAL_KEY_LP_INVOICE_LINE" NATIONAL CHARACTER VARYING(125),
"VEHICLE_AGE" INTEGER,
"DAMAGE_ID" BIGINT,
PRIMARY KEY ( "LP_INVOICE_LINE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_LP_INVOICE_DETAIL ( -- Number of Columns =


14
LEASE_SERVICE_ID INTEGER not null,
BOOK_PERIOD_DATE DATE not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
LP_INVOICE_ID BIGINT not null,
AMOUNT_TYPE CHARACTER(1),
INVOICE_AMOUNT NUMERIC(11,2),
INVOICE_AMOUNT_EUR NUMERIC(11,2),
INVOICED_MILEAGE NUMERIC(7,0),
INVOICED_MILEAGE_KM NUMERIC(7,0),
LOAD_DATE DATE,
LP_INVOICE_LINE_ID BIGINT not null,
VEHICLE_AGE INTEGER,
DAMAGE_ID BIGINT,
LOCAL_KEY_LP_INVOICE_LINE NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( LP_INVOICE_LINE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_LP_INVOICE_DETAIL ( -- Number of Columns =


14
LEASE_SERVICE_ID INTEGER not null,
BOOK_PERIOD_DATE DATE not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
LP_INVOICE_ID BIGINT not null,
AMOUNT_TYPE CHARACTER(1),
INVOICE_AMOUNT NUMERIC(11,2),
INVOICE_AMOUNT_EUR NUMERIC(11,2),
INVOICED_MILEAGE NUMERIC(7,0),
INVOICED_MILEAGE_KM NUMERIC(7,0),
LOAD_DATE DATE,
LP_INVOICE_LINE_ID BIGINT not null,
VEHICLE_AGE INTEGER,
DAMAGE_ID BIGINT,
LOCAL_KEY_LP_INVOICE_LINE NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( LP_INVOICE_LINE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_LP_INVOICE_DETAIL ( -- Number of Columns =


14
LEASE_SERVICE_ID INTEGER not null,
BOOK_PERIOD_DATE DATE not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
LP_INVOICE_ID BIGINT not null,
AMOUNT_TYPE CHARACTER(1),
INVOICE_AMOUNT NUMERIC(11,2),
INVOICE_AMOUNT_EUR NUMERIC(11,2),
INVOICED_MILEAGE NUMERIC(7,0),
INVOICED_MILEAGE_KM NUMERIC(7,0),
LOAD_DATE DATE,
LP_INVOICE_LINE_ID BIGINT not null,
VEHICLE_AGE INTEGER,
DAMAGE_ID BIGINT,
LOCAL_KEY_LP_INVOICE_LINE NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( LP_INVOICE_LINE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2.F_LP_INVOICE_DETAIL ( -- Number of Columns =


14
"LEASE_SERVICE_ID" INTEGER not null,
"BOOK_PERIOD_DATE" DATE not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LP_INVOICE_ID" BIGINT not null,
"AMOUNT_TYPE" CHARACTER(1),
"INVOICE_AMOUNT" NUMERIC(11,2),
"INVOICE_AMOUNT_EUR" NUMERIC(11,2),
"INVOICED_MILEAGE" NUMERIC(7,0),
"INVOICED_MILEAGE_KM" NUMERIC(7,0),
"LOAD_DATE" DATE,
"LP_INVOICE_LINE_ID" BIGINT not null,
"VEHICLE_AGE" INTEGER,
"DAMAGE_ID" BIGINT,
LOCAL_KEY_LP_INVOICE_LINE NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( "LP_INVOICE_LINE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT.F_LP_INVOICE_DETAIL ( -- Number of Columns =


14
"LEASE_SERVICE_ID" INTEGER not null,
"BOOK_PERIOD_DATE" DATE not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LP_INVOICE_ID" BIGINT not null,
"AMOUNT_TYPE" CHARACTER(1),
"INVOICE_AMOUNT" NUMERIC(11,2),
"INVOICE_AMOUNT_EUR" NUMERIC(11,2),
"INVOICED_MILEAGE" NUMERIC(7,0),
"INVOICED_MILEAGE_KM" NUMERIC(7,0),
"LOAD_DATE" DATE,
"LP_INVOICE_LINE_ID" BIGINT not null,
"VEHICLE_AGE" INTEGER,
"DAMAGE_ID" BIGINT,
LOCAL_KEY_LP_INVOICE_LINE NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( "LP_INVOICE_LINE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2.F_LP_INVOICE_DETAIL ( -- Number of Columns =


14
"LEASE_SERVICE_ID" INTEGER not null,
"BOOK_PERIOD_DATE" DATE not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LP_INVOICE_ID" BIGINT not null,
"AMOUNT_TYPE" CHARACTER(1),
"INVOICE_AMOUNT" NUMERIC(11,2),
"INVOICE_AMOUNT_EUR" NUMERIC(11,2),
"INVOICED_MILEAGE" NUMERIC(7,0),
"INVOICED_MILEAGE_KM" NUMERIC(7,0),
"LOAD_DATE" DATE,
"LP_INVOICE_LINE_ID" BIGINT not null,
"VEHICLE_AGE" INTEGER,
"DAMAGE_ID" BIGINT,
LOCAL_KEY_LP_INVOICE_LINE NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( "LP_INVOICE_LINE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT.F_LP_INVOICE_DETAIL ( -- Number of Columns =


14
"LEASE_SERVICE_ID" INTEGER not null,
"BOOK_PERIOD_DATE" DATE not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LP_INVOICE_ID" BIGINT not null,
"AMOUNT_TYPE" CHARACTER(1),
"INVOICE_AMOUNT" NUMERIC(11,2),
"INVOICE_AMOUNT_EUR" NUMERIC(11,2),
"INVOICED_MILEAGE" NUMERIC(7,0),
"INVOICED_MILEAGE_KM" NUMERIC(7,0),
"LOAD_DATE" DATE,
"LP_INVOICE_LINE_ID" BIGINT not null,
"VEHICLE_AGE" INTEGER,
"DAMAGE_ID" BIGINT,
LOCAL_KEY_LP_INVOICE_LINE NATIONAL CHARACTER VARYING(125),
PRIMARY KEY ( "LP_INVOICE_LINE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_LP_INVOICE_DETAIL ( -- Number of Columns =


14
LEASE_SERVICE_ID INTEGER not null,
BOOK_PERIOD_DATE DATE not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
LP_INVOICE_ID BIGINT not null,
AMOUNT_TYPE CHARACTER(1),
INVOICE_AMOUNT NUMERIC(11,2),
INVOICE_AMOUNT_EUR NUMERIC(11,2),
INVOICED_MILEAGE NUMERIC(7,0),
INVOICED_MILEAGE_KM NUMERIC(7,0),
LOAD_DATE DATE,
LP_INVOICE_LINE_ID BIGINT not null,
LOCAL_KEY_LP_INVOICE_LINE CHARACTER(50),
VEHICLE_AGE INTEGER,
DAMAGE_ID BIGINT
) DISTRIBUTE ON RANDOM;

-- Table F_LP_INVOICE_DETAIL version 2;


SET collapse_empty_table_version = false;
ALTER TABLE LPGR_DMA_ENTITY_REPORT.F_LP_INVOICE_DETAIL ADD COLUMN
LOCAL_KEY_LP_INVOICE_LINE NATIONAL CHARACTER VARYING(125);
SET collapse_empty_table_version = true;
ALTER TABLE LPGR_DMA_ENTITY_REPORT.F_LP_INVOICE_DETAIL DROP COLUMN
LOCAL_KEY_LP_INVOICE_LINE CASCADE;

ALTER TABLE LPGR_DMA_ENTITY_REPORT.F_LP_INVOICE_DETAIL ADD CONSTRAINT


F_LP_INVOICE_DETAIL_PK PRIMARY KEY ( LP_INVOICE_LINE_ID );
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_LP_INVOICE_DETAIL ( -- Number of Columns =


14
"LEASE_SERVICE_ID" INTEGER not null,
"BOOK_PERIOD_DATE" DATE not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LP_INVOICE_ID" BIGINT not null,
"AMOUNT_TYPE" CHARACTER(1),
"INVOICE_AMOUNT" NUMERIC(11,2),
"INVOICE_AMOUNT_EUR" NUMERIC(11,2),
"INVOICED_MILEAGE" NUMERIC(7,0),
"INVOICED_MILEAGE_KM" NUMERIC(7,0),
"LOAD_DATE" DATE,
"LP_INVOICE_LINE_ID" BIGINT not null,
"LOCAL_KEY_LP_INVOICE_LINE" NATIONAL CHARACTER VARYING(125),
"VEHICLE_AGE" INTEGER,
"DAMAGE_ID" BIGINT
) DISTRIBUTE ON RANDOM;

-- Table F_LP_INVOICE_DETAIL version 2;


SET collapse_empty_table_version = false;
ALTER TABLE LPGR_DMA_ENTITY_REPORT2.F_LP_INVOICE_DETAIL ADD COLUMN
LOCAL_KEY_LP_INVOICE_LINE NATIONAL CHARACTER VARYING(125);
SET collapse_empty_table_version = true;
ALTER TABLE LPGR_DMA_ENTITY_REPORT2.F_LP_INVOICE_DETAIL DROP COLUMN
"LOCAL_KEY_LP_INVOICE_LINE" CASCADE;

ALTER TABLE LPGR_DMA_ENTITY_REPORT2.F_LP_INVOICE_DETAIL ADD CONSTRAINT


"F_LP_INVOICE_DETAIL_PK" PRIMARY KEY ( "LP_INVOICE_LINE_ID" );
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT.F_LP_INVOICE_DETAIL ( -- Number of Columns =


14
"LEASE_SERVICE_ID" INTEGER not null,
"BOOK_PERIOD_DATE" DATE not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LP_INVOICE_ID" BIGINT not null,
"AMOUNT_TYPE" CHARACTER(1),
"INVOICE_AMOUNT" NUMERIC(11,2),
"INVOICE_AMOUNT_EUR" NUMERIC(11,2),
"INVOICED_MILEAGE" NUMERIC(7,0),
"INVOICED_MILEAGE_KM" NUMERIC(7,0),
"LOAD_DATE" DATE,
"LP_INVOICE_LINE_ID" BIGINT not null,
"LOCAL_KEY_LP_INVOICE_LINE" CHARACTER(50),
"VEHICLE_AGE" INTEGER,
"DAMAGE_ID" BIGINT
) DISTRIBUTE ON RANDOM;

-- Table F_LP_INVOICE_DETAIL version 2;


SET collapse_empty_table_version = false;
ALTER TABLE LPUK_DMA_ENTITY_REPORT.F_LP_INVOICE_DETAIL ADD COLUMN
LOCAL_KEY_LP_INVOICE_LINE NATIONAL CHARACTER VARYING(125);
SET collapse_empty_table_version = true;
ALTER TABLE LPUK_DMA_ENTITY_REPORT.F_LP_INVOICE_DETAIL DROP COLUMN
"LOCAL_KEY_LP_INVOICE_LINE" CASCADE;

ALTER TABLE LPUK_DMA_ENTITY_REPORT.F_LP_INVOICE_DETAIL ADD CONSTRAINT


"F_LP_INVOICE_DETAIL_PK" PRIMARY KEY ( "LP_INVOICE_LINE_ID" );
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_MANAGED_SERVICE" ( -- Number of Columns =


38
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LEASE_SERVICE_ID" INTEGER not null,
"START_DATE_MANAGED_SERVICE" DATE,
"END_DATE_MANAGED_SERVICE" DATE,
"SERVICE_CHARGE" NUMERIC(11,2),
"SERVICE_CHARGE_EUR" NUMERIC(11,2),
"SERVICE_CHARGE_SLA_MARGIN" NUMERIC(11,2),
"SERVICE_CHARGE_SLA_MARGIN_EUR" NUMERIC(11,2),
"SERVICE_CHARGE_LC_MARGIN" NUMERIC(11,2),
"SERVICE_CHARGE_LC_MARGIN_EUR" NUMERIC(11,2),
"SERV_CHARGE_MVA_OVER_MIL" NUMERIC(17,7),
"SERV_CHARGE_MVA_OVER_MIL_EUR" NUMERIC(17,7),
"SERVICE_REPAY_MVA_UNDER_MIL" NUMERIC(17,7),
"SERV_REPAY_MVA_UNDER_MIL_EUR" NUMERIC(17,7),
"RESIDUAL_VALUE" NUMERIC(11,2),
"RESIDUAL_VALUE_EUR" NUMERIC(11,2),
"RESIDUAL_VALUE_SLA_MARGIN" NUMERIC(11,2),
"RESIDUAL_VALUE_SLA_MARGIN_EUR" NUMERIC(11,2),
"RESIDUAL_VALUE_LC_MARGIN" NUMERIC(11,2),
"RESIDUAL_VALUE_LC_MARGIN_EUR" NUMERIC(11,2),
"INTEREST_PERCENTAGE" NUMERIC(6,3),
"INTEREST_PERCENTAGE_SLA_MARGIN" NUMERIC(6,3),
"INTEREST_PERCENTAGE_LC_MARGIN" NUMERIC(6,3),
"INTEREST_FIXING_DATE" DATE,
"LOAD_DATE" DATE,
"MANAGED_SERVICE_ID" BIGINT not null,
"LOCAL_KEY_MANAGED_SERVICE" NATIONAL CHARACTER VARYING(125),
"CH_SERVICE_CHARGE_METHOD_ID" INTEGER not null,
"SERV_CHARGE_FORMAL_EXT" NUMERIC(11,2),
"SERV_CHARGE_FORMAL_EXT_EUR" NUMERIC(11,2),
"CALCULATION_VERSION" CHARACTER(1),
"LOCAL_KEY_SERVICE_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"SERVICE_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"SERVICE_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"POLICY_NUMBER" NATIONAL CHARACTER VARYING(125),
"POLICY_START_DATE" DATE,
"POLICY_END_DATE" DATE,
"CH_INSURED_PARTY_TYPE_ID" INTEGER,
PRIMARY KEY ( "MANAGED_SERVICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE ( -- Number of Columns = 38


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
LEASE_SERVICE_ID INTEGER not null,
START_DATE_MANAGED_SERVICE DATE,
END_DATE_MANAGED_SERVICE DATE,
SERVICE_CHARGE NUMERIC(11,2),
SERVICE_CHARGE_EUR NUMERIC(11,2),
SERVICE_CHARGE_SLA_MARGIN NUMERIC(11,2),
SERVICE_CHARGE_SLA_MARGIN_EUR NUMERIC(11,2),
SERVICE_CHARGE_LC_MARGIN NUMERIC(11,2),
SERVICE_CHARGE_LC_MARGIN_EUR NUMERIC(11,2),
SERV_CHARGE_MVA_OVER_MIL NUMERIC(17,7),
SERV_CHARGE_MVA_OVER_MIL_EUR NUMERIC(17,7),
SERVICE_REPAY_MVA_UNDER_MIL NUMERIC(17,7),
SERV_REPAY_MVA_UNDER_MIL_EUR NUMERIC(17,7),
RESIDUAL_VALUE NUMERIC(11,2),
RESIDUAL_VALUE_EUR NUMERIC(11,2),
RESIDUAL_VALUE_SLA_MARGIN NUMERIC(11,2),
RESIDUAL_VALUE_SLA_MARGIN_EUR NUMERIC(11,2),
RESIDUAL_VALUE_LC_MARGIN NUMERIC(11,2),
RESIDUAL_VALUE_LC_MARGIN_EUR NUMERIC(11,2),
INTEREST_PERCENTAGE NUMERIC(6,3),
INTEREST_PERCENTAGE_SLA_MARGIN NUMERIC(6,3),
INTEREST_PERCENTAGE_LC_MARGIN NUMERIC(6,3),
INTEREST_FIXING_DATE DATE,
LOAD_DATE DATE,
MANAGED_SERVICE_ID BIGINT not null,
LOCAL_KEY_MANAGED_SERVICE NATIONAL CHARACTER VARYING(125),
CH_SERVICE_CHARGE_METHOD_ID INTEGER not null,
SERV_CHARGE_FORMAL_EXT NUMERIC(11,2),
SERV_CHARGE_FORMAL_EXT_EUR NUMERIC(11,2),
CALCULATION_VERSION CHARACTER(1),
LOCAL_KEY_SERVICE_SUPPLIER NATIONAL CHARACTER VARYING(125),
SERVICE_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125),
SERVICE_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125),
POLICY_NUMBER NATIONAL CHARACTER VARYING(125),
POLICY_START_DATE DATE,
POLICY_END_DATE DATE,
CH_INSURED_PARTY_TYPE_ID INTEGER,
PRIMARY KEY ( MANAGED_SERVICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE ( -- Number of Columns = 38


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
LEASE_SERVICE_ID INTEGER not null,
START_DATE_MANAGED_SERVICE DATE,
END_DATE_MANAGED_SERVICE DATE,
SERVICE_CHARGE NUMERIC(11,2),
SERVICE_CHARGE_EUR NUMERIC(11,2),
SERVICE_CHARGE_SLA_MARGIN NUMERIC(11,2),
SERVICE_CHARGE_SLA_MARGIN_EUR NUMERIC(11,2),
SERVICE_CHARGE_LC_MARGIN NUMERIC(11,2),
SERVICE_CHARGE_LC_MARGIN_EUR NUMERIC(11,2),
SERV_CHARGE_MVA_OVER_MIL NUMERIC(17,7),
SERV_CHARGE_MVA_OVER_MIL_EUR NUMERIC(17,7),
SERVICE_REPAY_MVA_UNDER_MIL NUMERIC(17,7),
SERV_REPAY_MVA_UNDER_MIL_EUR NUMERIC(17,7),
RESIDUAL_VALUE NUMERIC(11,2),
RESIDUAL_VALUE_EUR NUMERIC(11,2),
RESIDUAL_VALUE_SLA_MARGIN NUMERIC(11,2),
RESIDUAL_VALUE_SLA_MARGIN_EUR NUMERIC(11,2),
RESIDUAL_VALUE_LC_MARGIN NUMERIC(11,2),
RESIDUAL_VALUE_LC_MARGIN_EUR NUMERIC(11,2),
INTEREST_PERCENTAGE NUMERIC(6,3),
INTEREST_PERCENTAGE_SLA_MARGIN NUMERIC(6,3),
INTEREST_PERCENTAGE_LC_MARGIN NUMERIC(6,3),
INTEREST_FIXING_DATE DATE,
LOAD_DATE DATE,
MANAGED_SERVICE_ID BIGINT not null,
LOCAL_KEY_MANAGED_SERVICE NATIONAL CHARACTER VARYING(125),
CH_SERVICE_CHARGE_METHOD_ID INTEGER not null,
SERV_CHARGE_FORMAL_EXT NUMERIC(11,2),
SERV_CHARGE_FORMAL_EXT_EUR NUMERIC(11,2),
CALCULATION_VERSION CHARACTER(1),
LOCAL_KEY_SERVICE_SUPPLIER NATIONAL CHARACTER VARYING(125),
SERVICE_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125),
SERVICE_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125),
POLICY_NUMBER NATIONAL CHARACTER VARYING(125),
POLICY_START_DATE DATE,
POLICY_END_DATE DATE,
CH_INSURED_PARTY_TYPE_ID INTEGER
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_MANAGED_SERVICE" ( -- Number of Columns =


38
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LEASE_SERVICE_ID" INTEGER not null,
"START_DATE_MANAGED_SERVICE" DATE,
"END_DATE_MANAGED_SERVICE" DATE,
"SERVICE_CHARGE" NUMERIC(11,2),
"SERVICE_CHARGE_EUR" NUMERIC(11,2),
"SERVICE_CHARGE_SLA_MARGIN" NUMERIC(11,2),
"SERVICE_CHARGE_SLA_MARGIN_EUR" NUMERIC(11,2),
"SERVICE_CHARGE_LC_MARGIN" NUMERIC(11,2),
"SERVICE_CHARGE_LC_MARGIN_EUR" NUMERIC(11,2),
"SERV_CHARGE_MVA_OVER_MIL" NUMERIC(17,7),
"SERV_CHARGE_MVA_OVER_MIL_EUR" NUMERIC(17,7),
"SERVICE_REPAY_MVA_UNDER_MIL" NUMERIC(17,7),
"SERV_REPAY_MVA_UNDER_MIL_EUR" NUMERIC(17,7),
"RESIDUAL_VALUE" NUMERIC(11,2),
"RESIDUAL_VALUE_EUR" NUMERIC(11,2),
"RESIDUAL_VALUE_SLA_MARGIN" NUMERIC(11,2),
"RESIDUAL_VALUE_SLA_MARGIN_EUR" NUMERIC(11,2),
"RESIDUAL_VALUE_LC_MARGIN" NUMERIC(11,2),
"RESIDUAL_VALUE_LC_MARGIN_EUR" NUMERIC(11,2),
"INTEREST_PERCENTAGE" NUMERIC(6,3),
"INTEREST_PERCENTAGE_SLA_MARGIN" NUMERIC(6,3),
"INTEREST_PERCENTAGE_LC_MARGIN" NUMERIC(6,3),
"INTEREST_FIXING_DATE" DATE,
"LOAD_DATE" DATE,
"MANAGED_SERVICE_ID" BIGINT not null,
"LOCAL_KEY_MANAGED_SERVICE" NATIONAL CHARACTER VARYING(125),
"CH_SERVICE_CHARGE_METHOD_ID" INTEGER not null,
"SERV_CHARGE_FORMAL_EXT" NUMERIC(11,2),
"SERV_CHARGE_FORMAL_EXT_EUR" NUMERIC(11,2),
"CALCULATION_VERSION" CHARACTER(1),
"LOCAL_KEY_SERVICE_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"SERVICE_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"SERVICE_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"POLICY_NUMBER" NATIONAL CHARACTER VARYING(125),
"POLICY_START_DATE" DATE,
"POLICY_END_DATE" DATE,
"CH_INSURED_PARTY_TYPE_ID" INTEGER,
PRIMARY KEY ( "MANAGED_SERVICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_MANAGED_SERVICE ( -- Number of Columns = 38


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
LEASE_SERVICE_ID INTEGER not null,
START_DATE_MANAGED_SERVICE DATE,
END_DATE_MANAGED_SERVICE DATE,
SERVICE_CHARGE NUMERIC(11,2),
SERVICE_CHARGE_EUR NUMERIC(11,2),
SERVICE_CHARGE_SLA_MARGIN NUMERIC(11,2),
SERVICE_CHARGE_SLA_MARGIN_EUR NUMERIC(11,2),
SERVICE_CHARGE_LC_MARGIN NUMERIC(11,2),
SERVICE_CHARGE_LC_MARGIN_EUR NUMERIC(11,2),
SERV_CHARGE_MVA_OVER_MIL NUMERIC(17,7),
SERV_CHARGE_MVA_OVER_MIL_EUR NUMERIC(17,7),
SERVICE_REPAY_MVA_UNDER_MIL NUMERIC(17,7),
SERV_REPAY_MVA_UNDER_MIL_EUR NUMERIC(17,7),
RESIDUAL_VALUE NUMERIC(11,2),
RESIDUAL_VALUE_EUR NUMERIC(11,2),
RESIDUAL_VALUE_SLA_MARGIN NUMERIC(11,2),
RESIDUAL_VALUE_SLA_MARGIN_EUR NUMERIC(11,2),
RESIDUAL_VALUE_LC_MARGIN NUMERIC(11,2),
RESIDUAL_VALUE_LC_MARGIN_EUR NUMERIC(11,2),
INTEREST_PERCENTAGE NUMERIC(6,3),
INTEREST_PERCENTAGE_SLA_MARGIN NUMERIC(6,3),
INTEREST_PERCENTAGE_LC_MARGIN NUMERIC(6,3),
INTEREST_FIXING_DATE DATE,
LOAD_DATE DATE,
MANAGED_SERVICE_ID BIGINT not null,
LOCAL_KEY_MANAGED_SERVICE NATIONAL CHARACTER VARYING(125),
CH_SERVICE_CHARGE_METHOD_ID INTEGER not null,
SERV_CHARGE_FORMAL_EXT NUMERIC(11,2),
SERV_CHARGE_FORMAL_EXT_EUR NUMERIC(11,2),
CALCULATION_VERSION CHARACTER(1),
LOCAL_KEY_SERVICE_SUPPLIER NATIONAL CHARACTER VARYING(125),
SERVICE_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125),
SERVICE_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125),
POLICY_NUMBER NATIONAL CHARACTER VARYING(125),
POLICY_START_DATE DATE,
POLICY_END_DATE DATE,
CH_INSURED_PARTY_TYPE_ID INTEGER,
PRIMARY KEY ( MANAGED_SERVICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE ( -- Number of Columns = 38


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
LEASE_SERVICE_ID INTEGER not null,
START_DATE_MANAGED_SERVICE DATE,
END_DATE_MANAGED_SERVICE DATE,
SERVICE_CHARGE NUMERIC(11,2),
SERVICE_CHARGE_EUR NUMERIC(11,2),
SERVICE_CHARGE_SLA_MARGIN NUMERIC(11,2),
SERVICE_CHARGE_SLA_MARGIN_EUR NUMERIC(11,2),
SERVICE_CHARGE_LC_MARGIN NUMERIC(11,2),
SERVICE_CHARGE_LC_MARGIN_EUR NUMERIC(11,2),
SERV_CHARGE_MVA_OVER_MIL NUMERIC(17,7),
SERV_CHARGE_MVA_OVER_MIL_EUR NUMERIC(17,7),
SERVICE_REPAY_MVA_UNDER_MIL NUMERIC(17,7),
SERV_REPAY_MVA_UNDER_MIL_EUR NUMERIC(17,7),
RESIDUAL_VALUE NUMERIC(11,2),
RESIDUAL_VALUE_EUR NUMERIC(11,2),
RESIDUAL_VALUE_SLA_MARGIN NUMERIC(11,2),
RESIDUAL_VALUE_SLA_MARGIN_EUR NUMERIC(11,2),
RESIDUAL_VALUE_LC_MARGIN NUMERIC(11,2),
RESIDUAL_VALUE_LC_MARGIN_EUR NUMERIC(11,2),
INTEREST_PERCENTAGE NUMERIC(6,3),
INTEREST_PERCENTAGE_SLA_MARGIN NUMERIC(6,3),
INTEREST_PERCENTAGE_LC_MARGIN NUMERIC(6,3),
INTEREST_FIXING_DATE DATE,
LOAD_DATE DATE,
MANAGED_SERVICE_ID BIGINT not null,
LOCAL_KEY_MANAGED_SERVICE NATIONAL CHARACTER VARYING(125),
CH_SERVICE_CHARGE_METHOD_ID INTEGER not null,
SERV_CHARGE_FORMAL_EXT NUMERIC(11,2),
SERV_CHARGE_FORMAL_EXT_EUR NUMERIC(11,2),
CALCULATION_VERSION CHARACTER(1),
LOCAL_KEY_SERVICE_SUPPLIER NATIONAL CHARACTER VARYING(125),
SERVICE_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125),
SERVICE_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125),
POLICY_NUMBER NATIONAL CHARACTER VARYING(125),
POLICY_START_DATE DATE,
POLICY_END_DATE DATE,
CH_INSURED_PARTY_TYPE_ID INTEGER,
PRIMARY KEY ( MANAGED_SERVICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_MANAGED_SERVICE ( -- Number of Columns = 38


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
LEASE_SERVICE_ID INTEGER not null,
START_DATE_MANAGED_SERVICE DATE,
END_DATE_MANAGED_SERVICE DATE,
SERVICE_CHARGE NUMERIC(11,2),
SERVICE_CHARGE_EUR NUMERIC(11,2),
SERVICE_CHARGE_SLA_MARGIN NUMERIC(11,2),
SERVICE_CHARGE_SLA_MARGIN_EUR NUMERIC(11,2),
SERVICE_CHARGE_LC_MARGIN NUMERIC(11,2),
SERVICE_CHARGE_LC_MARGIN_EUR NUMERIC(11,2),
SERV_CHARGE_MVA_OVER_MIL NUMERIC(17,7),
SERV_CHARGE_MVA_OVER_MIL_EUR NUMERIC(17,7),
SERVICE_REPAY_MVA_UNDER_MIL NUMERIC(17,7),
SERV_REPAY_MVA_UNDER_MIL_EUR NUMERIC(17,7),
RESIDUAL_VALUE NUMERIC(11,2),
RESIDUAL_VALUE_EUR NUMERIC(11,2),
RESIDUAL_VALUE_SLA_MARGIN NUMERIC(11,2),
RESIDUAL_VALUE_SLA_MARGIN_EUR NUMERIC(11,2),
RESIDUAL_VALUE_LC_MARGIN NUMERIC(11,2),
RESIDUAL_VALUE_LC_MARGIN_EUR NUMERIC(11,2),
INTEREST_PERCENTAGE NUMERIC(6,3),
INTEREST_PERCENTAGE_SLA_MARGIN NUMERIC(6,3),
INTEREST_PERCENTAGE_LC_MARGIN NUMERIC(6,3),
INTEREST_FIXING_DATE DATE,
LOAD_DATE DATE,
MANAGED_SERVICE_ID BIGINT not null,
LOCAL_KEY_MANAGED_SERVICE NATIONAL CHARACTER VARYING(125),
CH_SERVICE_CHARGE_METHOD_ID INTEGER not null,
SERV_CHARGE_FORMAL_EXT NUMERIC(11,2),
SERV_CHARGE_FORMAL_EXT_EUR NUMERIC(11,2),
CALCULATION_VERSION CHARACTER(1),
LOCAL_KEY_SERVICE_SUPPLIER NATIONAL CHARACTER VARYING(125),
SERVICE_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125),
SERVICE_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125),
POLICY_NUMBER NATIONAL CHARACTER VARYING(125),
POLICY_START_DATE DATE,
POLICY_END_DATE DATE,
CH_INSURED_PARTY_TYPE_ID INTEGER,
PRIMARY KEY ( MANAGED_SERVICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_MANAGED_SERVICE" ( -- Number of Columns =


38
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LEASE_SERVICE_ID" INTEGER not null,
"START_DATE_MANAGED_SERVICE" DATE,
"END_DATE_MANAGED_SERVICE" DATE,
"SERVICE_CHARGE" NUMERIC(11,2),
"SERVICE_CHARGE_EUR" NUMERIC(11,2),
"SERVICE_CHARGE_SLA_MARGIN" NUMERIC(11,2),
"SERVICE_CHARGE_SLA_MARGIN_EUR" NUMERIC(11,2),
"SERVICE_CHARGE_LC_MARGIN" NUMERIC(11,2),
"SERVICE_CHARGE_LC_MARGIN_EUR" NUMERIC(11,2),
"SERV_CHARGE_MVA_OVER_MIL" NUMERIC(17,7),
"SERV_CHARGE_MVA_OVER_MIL_EUR" NUMERIC(17,7),
"SERVICE_REPAY_MVA_UNDER_MIL" NUMERIC(17,7),
"SERV_REPAY_MVA_UNDER_MIL_EUR" NUMERIC(17,7),
"RESIDUAL_VALUE" NUMERIC(11,2),
"RESIDUAL_VALUE_EUR" NUMERIC(11,2),
"RESIDUAL_VALUE_SLA_MARGIN" NUMERIC(11,2),
"RESIDUAL_VALUE_SLA_MARGIN_EUR" NUMERIC(11,2),
"RESIDUAL_VALUE_LC_MARGIN" NUMERIC(11,2),
"RESIDUAL_VALUE_LC_MARGIN_EUR" NUMERIC(11,2),
"INTEREST_PERCENTAGE" NUMERIC(6,3),
"INTEREST_PERCENTAGE_SLA_MARGIN" NUMERIC(6,3),
"INTEREST_PERCENTAGE_LC_MARGIN" NUMERIC(6,3),
"INTEREST_FIXING_DATE" DATE,
"LOAD_DATE" DATE,
"MANAGED_SERVICE_ID" BIGINT not null,
"LOCAL_KEY_MANAGED_SERVICE" NATIONAL CHARACTER VARYING(125),
"CH_SERVICE_CHARGE_METHOD_ID" INTEGER not null,
"SERV_CHARGE_FORMAL_EXT" NUMERIC(11,2),
"SERV_CHARGE_FORMAL_EXT_EUR" NUMERIC(11,2),
"CALCULATION_VERSION" CHARACTER(1),
"LOCAL_KEY_SERVICE_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"SERVICE_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"SERVICE_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"POLICY_NUMBER" NATIONAL CHARACTER VARYING(125),
"POLICY_START_DATE" DATE,
"POLICY_END_DATE" DATE,
"CH_INSURED_PARTY_TYPE_ID" INTEGER,
PRIMARY KEY ( "MANAGED_SERVICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_MANAGED_SERVICE" ( -- Number of Columns =


38
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LEASE_SERVICE_ID" INTEGER not null,
"START_DATE_MANAGED_SERVICE" DATE,
"END_DATE_MANAGED_SERVICE" DATE,
"SERVICE_CHARGE" NUMERIC(11,2),
"SERVICE_CHARGE_EUR" NUMERIC(11,2),
"SERVICE_CHARGE_SLA_MARGIN" NUMERIC(11,2),
"SERVICE_CHARGE_SLA_MARGIN_EUR" NUMERIC(11,2),
"SERVICE_CHARGE_LC_MARGIN" NUMERIC(11,2),
"SERVICE_CHARGE_LC_MARGIN_EUR" NUMERIC(11,2),
"SERV_CHARGE_MVA_OVER_MIL" NUMERIC(17,7),
"SERV_CHARGE_MVA_OVER_MIL_EUR" NUMERIC(17,7),
"SERVICE_REPAY_MVA_UNDER_MIL" NUMERIC(17,7),
"SERV_REPAY_MVA_UNDER_MIL_EUR" NUMERIC(17,7),
"RESIDUAL_VALUE" NUMERIC(11,2),
"RESIDUAL_VALUE_EUR" NUMERIC(11,2),
"RESIDUAL_VALUE_SLA_MARGIN" NUMERIC(11,2),
"RESIDUAL_VALUE_SLA_MARGIN_EUR" NUMERIC(11,2),
"RESIDUAL_VALUE_LC_MARGIN" NUMERIC(11,2),
"RESIDUAL_VALUE_LC_MARGIN_EUR" NUMERIC(11,2),
"INTEREST_PERCENTAGE" NUMERIC(6,3),
"INTEREST_PERCENTAGE_SLA_MARGIN" NUMERIC(6,3),
"INTEREST_PERCENTAGE_LC_MARGIN" NUMERIC(6,3),
"INTEREST_FIXING_DATE" DATE,
"LOAD_DATE" DATE,
"MANAGED_SERVICE_ID" BIGINT not null,
"LOCAL_KEY_MANAGED_SERVICE" NATIONAL CHARACTER VARYING(125),
"CH_SERVICE_CHARGE_METHOD_ID" INTEGER not null,
"SERV_CHARGE_FORMAL_EXT" NUMERIC(11,2),
"SERV_CHARGE_FORMAL_EXT_EUR" NUMERIC(11,2),
"CALCULATION_VERSION" CHARACTER(1),
"LOCAL_KEY_SERVICE_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"SERVICE_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"SERVICE_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"POLICY_NUMBER" NATIONAL CHARACTER VARYING(125),
"POLICY_START_DATE" DATE,
"POLICY_END_DATE" DATE,
"CH_INSURED_PARTY_TYPE_ID" INTEGER,
PRIMARY KEY ( "MANAGED_SERVICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_MANAGED_SERVICE" ( -- Number of Columns =


38
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LEASE_SERVICE_ID" INTEGER not null,
"START_DATE_MANAGED_SERVICE" DATE,
"END_DATE_MANAGED_SERVICE" DATE,
"SERVICE_CHARGE" NUMERIC(11,2),
"SERVICE_CHARGE_EUR" NUMERIC(11,2),
"SERVICE_CHARGE_SLA_MARGIN" NUMERIC(11,2),
"SERVICE_CHARGE_SLA_MARGIN_EUR" NUMERIC(11,2),
"SERVICE_CHARGE_LC_MARGIN" NUMERIC(11,2),
"SERVICE_CHARGE_LC_MARGIN_EUR" NUMERIC(11,2),
"SERV_CHARGE_MVA_OVER_MIL" NUMERIC(17,7),
"SERV_CHARGE_MVA_OVER_MIL_EUR" NUMERIC(17,7),
"SERVICE_REPAY_MVA_UNDER_MIL" NUMERIC(17,7),
"SERV_REPAY_MVA_UNDER_MIL_EUR" NUMERIC(17,7),
"RESIDUAL_VALUE" NUMERIC(11,2),
"RESIDUAL_VALUE_EUR" NUMERIC(11,2),
"RESIDUAL_VALUE_SLA_MARGIN" NUMERIC(11,2),
"RESIDUAL_VALUE_SLA_MARGIN_EUR" NUMERIC(11,2),
"RESIDUAL_VALUE_LC_MARGIN" NUMERIC(11,2),
"RESIDUAL_VALUE_LC_MARGIN_EUR" NUMERIC(11,2),
"INTEREST_PERCENTAGE" NUMERIC(6,3),
"INTEREST_PERCENTAGE_SLA_MARGIN" NUMERIC(6,3),
"INTEREST_PERCENTAGE_LC_MARGIN" NUMERIC(6,3),
"INTEREST_FIXING_DATE" DATE,
"LOAD_DATE" DATE,
"MANAGED_SERVICE_ID" BIGINT not null,
"LOCAL_KEY_MANAGED_SERVICE" NATIONAL CHARACTER VARYING(125),
"CH_SERVICE_CHARGE_METHOD_ID" INTEGER not null,
"SERV_CHARGE_FORMAL_EXT" NUMERIC(11,2),
"SERV_CHARGE_FORMAL_EXT_EUR" NUMERIC(11,2),
"CALCULATION_VERSION" CHARACTER(1),
"LOCAL_KEY_SERVICE_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"SERVICE_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"SERVICE_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"POLICY_NUMBER" NATIONAL CHARACTER VARYING(125),
"POLICY_START_DATE" DATE,
"POLICY_END_DATE" DATE,
"CH_INSURED_PARTY_TYPE_ID" INTEGER,
PRIMARY KEY ( "MANAGED_SERVICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_MANAGED_SERVICE" ( -- Number of Columns =


38
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"LEASE_SERVICE_ID" INTEGER not null,
"START_DATE_MANAGED_SERVICE" DATE,
"END_DATE_MANAGED_SERVICE" DATE,
"SERVICE_CHARGE" NUMERIC(11,2),
"SERVICE_CHARGE_EUR" NUMERIC(11,2),
"SERVICE_CHARGE_SLA_MARGIN" NUMERIC(11,2),
"SERVICE_CHARGE_SLA_MARGIN_EUR" NUMERIC(11,2),
"SERVICE_CHARGE_LC_MARGIN" NUMERIC(11,2),
"SERVICE_CHARGE_LC_MARGIN_EUR" NUMERIC(11,2),
"SERV_CHARGE_MVA_OVER_MIL" NUMERIC(17,7),
"SERV_CHARGE_MVA_OVER_MIL_EUR" NUMERIC(17,7),
"SERVICE_REPAY_MVA_UNDER_MIL" NUMERIC(17,7),
"SERV_REPAY_MVA_UNDER_MIL_EUR" NUMERIC(17,7),
"RESIDUAL_VALUE" NUMERIC(11,2),
"RESIDUAL_VALUE_EUR" NUMERIC(11,2),
"RESIDUAL_VALUE_SLA_MARGIN" NUMERIC(11,2),
"RESIDUAL_VALUE_SLA_MARGIN_EUR" NUMERIC(11,2),
"RESIDUAL_VALUE_LC_MARGIN" NUMERIC(11,2),
"RESIDUAL_VALUE_LC_MARGIN_EUR" NUMERIC(11,2),
"INTEREST_PERCENTAGE" NUMERIC(6,3),
"INTEREST_PERCENTAGE_SLA_MARGIN" NUMERIC(6,3),
"INTEREST_PERCENTAGE_LC_MARGIN" NUMERIC(6,3),
"INTEREST_FIXING_DATE" DATE,
"LOAD_DATE" DATE,
"MANAGED_SERVICE_ID" BIGINT not null,
"LOCAL_KEY_MANAGED_SERVICE" NATIONAL CHARACTER VARYING(125),
"CH_SERVICE_CHARGE_METHOD_ID" INTEGER not null,
"SERV_CHARGE_FORMAL_EXT" NUMERIC(11,2),
"SERV_CHARGE_FORMAL_EXT_EUR" NUMERIC(11,2),
"CALCULATION_VERSION" CHARACTER(1),
"LOCAL_KEY_SERVICE_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"SERVICE_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"SERVICE_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"POLICY_NUMBER" NATIONAL CHARACTER VARYING(125),
"POLICY_START_DATE" DATE,
"POLICY_END_DATE" DATE,
"CH_INSURED_PARTY_TYPE_ID" INTEGER,
PRIMARY KEY ( "MANAGED_SERVICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_OUTSTANDING_INVOICE_AMOUNT" ( -- Number of


Columns = 25
"CUSTOMER_ID" BIGINT not null,
"DEBTOR_ID" BIGINT not null,
"BOOK_PERIOD_DATE" DATE not null,
"TOTAL_DEBTOR_AMOUNT" NUMERIC(11,2),
"TOTAL_DEBTOR_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET0_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET0_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET1_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET1_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET2_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET2_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET3_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET3_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET4_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET4_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET5_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET5_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET6_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET6_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET7_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET7_AMOUNT_EUR" NUMERIC(11,2),
"OUTSTANDING_INVOICE_AMOUNT_ID" BIGINT not null,
"LOCAL_KEY_OUTSTANDING_INV_AMNT" NATIONAL CHARACTER VARYING(125),
"DEBTOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "DEBTOR_ID" , "CUSTOMER_ID" , "BOOK_PERIOD_DATE" ,
"OUTSTANDING_INVOICE_AMOUNT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT ( -- Number of


Columns = 25
CUSTOMER_ID BIGINT not null,
DEBTOR_ID BIGINT not null,
BOOK_PERIOD_DATE DATE not null,
TOTAL_DEBTOR_AMOUNT NUMERIC(11,2),
TOTAL_DEBTOR_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET0_AMOUNT NUMERIC(11,2),
AGEING_BUCKET0_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET1_AMOUNT NUMERIC(11,2),
AGEING_BUCKET1_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET2_AMOUNT NUMERIC(11,2),
AGEING_BUCKET2_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET3_AMOUNT NUMERIC(11,2),
AGEING_BUCKET3_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET4_AMOUNT NUMERIC(11,2),
AGEING_BUCKET4_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET5_AMOUNT NUMERIC(11,2),
AGEING_BUCKET5_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET6_AMOUNT NUMERIC(11,2),
AGEING_BUCKET6_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET7_AMOUNT NUMERIC(11,2),
AGEING_BUCKET7_AMOUNT_EUR NUMERIC(11,2),
OUTSTANDING_INVOICE_AMOUNT_ID BIGINT not null,
LOCAL_KEY_OUTSTANDING_INV_AMNT NATIONAL CHARACTER VARYING(125),
DEBTOR_NUMBER NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PRIMARY KEY ( DEBTOR_ID , CUSTOMER_ID , BOOK_PERIOD_DATE ,
OUTSTANDING_INVOICE_AMOUNT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT ( -- Number of


Columns = 25
CUSTOMER_ID BIGINT not null,
DEBTOR_ID BIGINT not null,
BOOK_PERIOD_DATE DATE not null,
TOTAL_DEBTOR_AMOUNT NUMERIC(11,2),
TOTAL_DEBTOR_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET0_AMOUNT NUMERIC(11,2),
AGEING_BUCKET0_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET1_AMOUNT NUMERIC(11,2),
AGEING_BUCKET1_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET2_AMOUNT NUMERIC(11,2),
AGEING_BUCKET2_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET3_AMOUNT NUMERIC(11,2),
AGEING_BUCKET3_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET4_AMOUNT NUMERIC(11,2),
AGEING_BUCKET4_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET5_AMOUNT NUMERIC(11,2),
AGEING_BUCKET5_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET6_AMOUNT NUMERIC(11,2),
AGEING_BUCKET6_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET7_AMOUNT NUMERIC(11,2),
AGEING_BUCKET7_AMOUNT_EUR NUMERIC(11,2),
OUTSTANDING_INVOICE_AMOUNT_ID BIGINT not null,
LOCAL_KEY_OUTSTANDING_INV_AMNT NATIONAL CHARACTER VARYING(125),
DEBTOR_NUMBER NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_OUTSTANDING_INVOICE_AMOUNT" ( -- Number of


Columns = 25
"CUSTOMER_ID" BIGINT not null,
"DEBTOR_ID" BIGINT not null,
"BOOK_PERIOD_DATE" DATE not null,
"TOTAL_DEBTOR_AMOUNT" NUMERIC(11,2),
"TOTAL_DEBTOR_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET0_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET0_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET1_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET1_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET2_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET2_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET3_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET3_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET4_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET4_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET5_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET5_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET6_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET6_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET7_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET7_AMOUNT_EUR" NUMERIC(11,2),
"OUTSTANDING_INVOICE_AMOUNT_ID" BIGINT not null,
"LOCAL_KEY_OUTSTANDING_INV_AMNT" NATIONAL CHARACTER VARYING(125),
"DEBTOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "DEBTOR_ID" , "CUSTOMER_ID" , "BOOK_PERIOD_DATE" ,
"OUTSTANDING_INVOICE_AMOUNT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT ( -- Number of


Columns = 25
CUSTOMER_ID BIGINT not null,
DEBTOR_ID BIGINT not null,
BOOK_PERIOD_DATE DATE not null,
TOTAL_DEBTOR_AMOUNT NUMERIC(11,2),
TOTAL_DEBTOR_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET0_AMOUNT NUMERIC(11,2),
AGEING_BUCKET0_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET1_AMOUNT NUMERIC(11,2),
AGEING_BUCKET1_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET2_AMOUNT NUMERIC(11,2),
AGEING_BUCKET2_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET3_AMOUNT NUMERIC(11,2),
AGEING_BUCKET3_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET4_AMOUNT NUMERIC(11,2),
AGEING_BUCKET4_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET5_AMOUNT NUMERIC(11,2),
AGEING_BUCKET5_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET6_AMOUNT NUMERIC(11,2),
AGEING_BUCKET6_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET7_AMOUNT NUMERIC(11,2),
AGEING_BUCKET7_AMOUNT_EUR NUMERIC(11,2),
OUTSTANDING_INVOICE_AMOUNT_ID BIGINT not null,
LOCAL_KEY_OUTSTANDING_INV_AMNT NATIONAL CHARACTER VARYING(125),
DEBTOR_NUMBER NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PRIMARY KEY ( DEBTOR_ID , CUSTOMER_ID , BOOK_PERIOD_DATE ,
OUTSTANDING_INVOICE_AMOUNT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT ( -- Number of


Columns = 25
CUSTOMER_ID BIGINT not null,
DEBTOR_ID BIGINT not null,
BOOK_PERIOD_DATE DATE not null,
TOTAL_DEBTOR_AMOUNT NUMERIC(11,2),
TOTAL_DEBTOR_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET0_AMOUNT NUMERIC(11,2),
AGEING_BUCKET0_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET1_AMOUNT NUMERIC(11,2),
AGEING_BUCKET1_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET2_AMOUNT NUMERIC(11,2),
AGEING_BUCKET2_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET3_AMOUNT NUMERIC(11,2),
AGEING_BUCKET3_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET4_AMOUNT NUMERIC(11,2),
AGEING_BUCKET4_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET5_AMOUNT NUMERIC(11,2),
AGEING_BUCKET5_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET6_AMOUNT NUMERIC(11,2),
AGEING_BUCKET6_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET7_AMOUNT NUMERIC(11,2),
AGEING_BUCKET7_AMOUNT_EUR NUMERIC(11,2),
OUTSTANDING_INVOICE_AMOUNT_ID BIGINT not null,
LOCAL_KEY_OUTSTANDING_INV_AMNT NATIONAL CHARACTER VARYING(125),
DEBTOR_NUMBER NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PRIMARY KEY ( DEBTOR_ID , CUSTOMER_ID , BOOK_PERIOD_DATE ,
OUTSTANDING_INVOICE_AMOUNT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT ( -- Number of


Columns = 25
CUSTOMER_ID BIGINT not null,
DEBTOR_ID BIGINT not null,
BOOK_PERIOD_DATE DATE not null,
TOTAL_DEBTOR_AMOUNT NUMERIC(11,2),
TOTAL_DEBTOR_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET0_AMOUNT NUMERIC(11,2),
AGEING_BUCKET0_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET1_AMOUNT NUMERIC(11,2),
AGEING_BUCKET1_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET2_AMOUNT NUMERIC(11,2),
AGEING_BUCKET2_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET3_AMOUNT NUMERIC(11,2),
AGEING_BUCKET3_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET4_AMOUNT NUMERIC(11,2),
AGEING_BUCKET4_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET5_AMOUNT NUMERIC(11,2),
AGEING_BUCKET5_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET6_AMOUNT NUMERIC(11,2),
AGEING_BUCKET6_AMOUNT_EUR NUMERIC(11,2),
AGEING_BUCKET7_AMOUNT NUMERIC(11,2),
AGEING_BUCKET7_AMOUNT_EUR NUMERIC(11,2),
OUTSTANDING_INVOICE_AMOUNT_ID BIGINT not null,
LOCAL_KEY_OUTSTANDING_INV_AMNT NATIONAL CHARACTER VARYING(125),
DEBTOR_NUMBER NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PRIMARY KEY ( DEBTOR_ID , CUSTOMER_ID , BOOK_PERIOD_DATE ,
OUTSTANDING_INVOICE_AMOUNT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_OUTSTANDING_INVOICE_AMOUNT" ( -- Number of


Columns = 25
"CUSTOMER_ID" BIGINT not null,
"DEBTOR_ID" BIGINT not null,
"BOOK_PERIOD_DATE" DATE not null,
"TOTAL_DEBTOR_AMOUNT" NUMERIC(11,2),
"TOTAL_DEBTOR_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET0_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET0_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET1_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET1_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET2_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET2_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET3_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET3_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET4_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET4_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET5_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET5_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET6_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET6_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET7_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET7_AMOUNT_EUR" NUMERIC(11,2),
"OUTSTANDING_INVOICE_AMOUNT_ID" BIGINT not null,
"LOCAL_KEY_OUTSTANDING_INV_AMNT" NATIONAL CHARACTER VARYING(125),
"DEBTOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "DEBTOR_ID" , "CUSTOMER_ID" , "BOOK_PERIOD_DATE" ,
"OUTSTANDING_INVOICE_AMOUNT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_OUTSTANDING_INVOICE_AMOUNT" ( -- Number of


Columns = 25
"CUSTOMER_ID" BIGINT not null,
"DEBTOR_ID" BIGINT not null,
"BOOK_PERIOD_DATE" DATE not null,
"TOTAL_DEBTOR_AMOUNT" NUMERIC(11,2),
"TOTAL_DEBTOR_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET0_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET0_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET1_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET1_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET2_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET2_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET3_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET3_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET4_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET4_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET5_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET5_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET6_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET6_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET7_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET7_AMOUNT_EUR" NUMERIC(11,2),
"OUTSTANDING_INVOICE_AMOUNT_ID" BIGINT not null,
"LOCAL_KEY_OUTSTANDING_INV_AMNT" NATIONAL CHARACTER VARYING(125),
"DEBTOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "DEBTOR_ID" , "CUSTOMER_ID" , "BOOK_PERIOD_DATE" ,
"OUTSTANDING_INVOICE_AMOUNT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_OUTSTANDING_INVOICE_AMOUNT" ( -- Number of


Columns = 25
"CUSTOMER_ID" BIGINT not null,
"DEBTOR_ID" BIGINT not null,
"BOOK_PERIOD_DATE" DATE not null,
"TOTAL_DEBTOR_AMOUNT" NUMERIC(11,2),
"TOTAL_DEBTOR_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET0_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET0_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET1_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET1_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET2_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET2_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET3_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET3_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET4_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET4_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET5_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET5_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET6_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET6_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET7_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET7_AMOUNT_EUR" NUMERIC(11,2),
"OUTSTANDING_INVOICE_AMOUNT_ID" BIGINT not null,
"LOCAL_KEY_OUTSTANDING_INV_AMNT" NATIONAL CHARACTER VARYING(125),
"DEBTOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "DEBTOR_ID" , "CUSTOMER_ID" , "BOOK_PERIOD_DATE" ,
"OUTSTANDING_INVOICE_AMOUNT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_OUTSTANDING_INVOICE_AMOUNT" ( -- Number of


Columns = 25
"CUSTOMER_ID" BIGINT not null,
"DEBTOR_ID" BIGINT not null,
"BOOK_PERIOD_DATE" DATE not null,
"TOTAL_DEBTOR_AMOUNT" NUMERIC(11,2),
"TOTAL_DEBTOR_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET0_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET0_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET1_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET1_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET2_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET2_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET3_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET3_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET4_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET4_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET5_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET5_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET6_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET6_AMOUNT_EUR" NUMERIC(11,2),
"AGEING_BUCKET7_AMOUNT" NUMERIC(11,2),
"AGEING_BUCKET7_AMOUNT_EUR" NUMERIC(11,2),
"OUTSTANDING_INVOICE_AMOUNT_ID" BIGINT not null,
"LOCAL_KEY_OUTSTANDING_INV_AMNT" NATIONAL CHARACTER VARYING(125),
"DEBTOR_NUMBER" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "DEBTOR_ID" , "CUSTOMER_ID" , "BOOK_PERIOD_DATE" ,
"OUTSTANDING_INVOICE_AMOUNT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_SALE" ( -- Number of Columns = 12


"BUYER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SALE_DATE" DATE not null,
"SALE_ID" BIGINT not null,
"SALE_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALE_AMOUNT" NUMERIC(11,2),
"SALE_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"LOCAL_KEY_SALE" NATIONAL CHARACTER VARYING(125),
"CH_PURCHASE_BY_ID" INTEGER not null,
"EFFECTIVE_START_DATE" DATE,
"CREATION_DATE_SALE" DATE,
PRIMARY KEY ( "SALE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_SALE ( -- Number of Columns = 12


BUYER_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
SALE_DATE DATE not null,
SALE_ID BIGINT not null,
SALE_NUMBER NATIONAL CHARACTER VARYING(125),
SALE_AMOUNT NUMERIC(11,2),
SALE_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
LOCAL_KEY_SALE NATIONAL CHARACTER VARYING(125),
CH_PURCHASE_BY_ID INTEGER not null,
EFFECTIVE_START_DATE DATE,
CREATION_DATE_SALE DATE,
PRIMARY KEY ( SALE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_SALE ( -- Number of Columns = 12


BUYER_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
SALE_DATE DATE not null,
SALE_ID BIGINT not null,
SALE_NUMBER NATIONAL CHARACTER VARYING(125),
SALE_AMOUNT NUMERIC(11,2),
SALE_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
LOCAL_KEY_SALE NATIONAL CHARACTER VARYING(125),
CH_PURCHASE_BY_ID INTEGER not null,
EFFECTIVE_START_DATE DATE,
CREATION_DATE_SALE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_SALE" ( -- Number of Columns = 12


"BUYER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SALE_DATE" DATE not null,
"SALE_ID" BIGINT not null,
"SALE_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALE_AMOUNT" NUMERIC(11,2),
"SALE_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"LOCAL_KEY_SALE" NATIONAL CHARACTER VARYING(125),
"CH_PURCHASE_BY_ID" INTEGER not null,
"EFFECTIVE_START_DATE" DATE,
"CREATION_DATE_SALE" DATE,
PRIMARY KEY ( "SALE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_SALE ( -- Number of Columns = 12


BUYER_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
SALE_DATE DATE not null,
SALE_ID BIGINT not null,
SALE_NUMBER NATIONAL CHARACTER VARYING(125),
SALE_AMOUNT NUMERIC(11,2),
SALE_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
LOCAL_KEY_SALE NATIONAL CHARACTER VARYING(125),
CH_PURCHASE_BY_ID INTEGER not null,
EFFECTIVE_START_DATE DATE,
CREATION_DATE_SALE DATE,
PRIMARY KEY ( SALE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_SALE ( -- Number of Columns = 12


BUYER_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
SALE_DATE DATE not null,
SALE_ID BIGINT not null,
SALE_NUMBER NATIONAL CHARACTER VARYING(125),
SALE_AMOUNT NUMERIC(11,2),
SALE_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
LOCAL_KEY_SALE NATIONAL CHARACTER VARYING(125),
CH_PURCHASE_BY_ID INTEGER not null,
EFFECTIVE_START_DATE DATE,
CREATION_DATE_SALE DATE,
PRIMARY KEY ( SALE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_SALE ( -- Number of Columns = 12


BUYER_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
SALE_DATE DATE not null,
SALE_ID BIGINT not null,
SALE_NUMBER NATIONAL CHARACTER VARYING(125),
SALE_AMOUNT NUMERIC(11,2),
SALE_AMOUNT_EUR NUMERIC(11,2),
LOAD_DATE DATE,
LOCAL_KEY_SALE NATIONAL CHARACTER VARYING(125),
CH_PURCHASE_BY_ID INTEGER not null,
EFFECTIVE_START_DATE DATE,
CREATION_DATE_SALE DATE,
PRIMARY KEY ( SALE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_SALE" ( -- Number of Columns = 12


"BUYER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SALE_DATE" DATE not null,
"SALE_ID" BIGINT not null,
"SALE_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALE_AMOUNT" NUMERIC(11,2),
"SALE_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"LOCAL_KEY_SALE" NATIONAL CHARACTER VARYING(125),
"CH_PURCHASE_BY_ID" INTEGER not null,
"EFFECTIVE_START_DATE" DATE,
"CREATION_DATE_SALE" DATE,
PRIMARY KEY ( "SALE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_SALE" ( -- Number of Columns = 12


"BUYER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SALE_DATE" DATE not null,
"SALE_ID" BIGINT not null,
"SALE_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALE_AMOUNT" NUMERIC(11,2),
"SALE_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"LOCAL_KEY_SALE" NATIONAL CHARACTER VARYING(125),
"CH_PURCHASE_BY_ID" INTEGER not null,
"EFFECTIVE_START_DATE" DATE,
"CREATION_DATE_SALE" DATE,
PRIMARY KEY ( "SALE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_SALE" ( -- Number of Columns = 12


"BUYER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SALE_DATE" DATE not null,
"SALE_ID" BIGINT not null,
"SALE_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALE_AMOUNT" NUMERIC(11,2),
"SALE_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"LOCAL_KEY_SALE" NATIONAL CHARACTER VARYING(125),
"CH_PURCHASE_BY_ID" INTEGER not null,
"EFFECTIVE_START_DATE" DATE,
"CREATION_DATE_SALE" DATE,
PRIMARY KEY ( "SALE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_SALE" ( -- Number of Columns = 12


"BUYER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"SALE_DATE" DATE not null,
"SALE_ID" BIGINT not null,
"SALE_NUMBER" NATIONAL CHARACTER VARYING(125),
"SALE_AMOUNT" NUMERIC(11,2),
"SALE_AMOUNT_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"LOCAL_KEY_SALE" NATIONAL CHARACTER VARYING(125),
"CH_PURCHASE_BY_ID" INTEGER not null,
"EFFECTIVE_START_DATE" DATE,
"CREATION_DATE_SALE" DATE,
PRIMARY KEY ( "SALE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."F_SERVICE_AUTHORISATION" ( -- Number of


Columns = 18
"SERVICE_AUTORISATION_ID" BIGINT not null,
"LOCAL_KEY_SERV_AUTHORISATION" NATIONAL CHARACTER VARYING(125) not null,
"CH_AUTHORISAT_TYPE_ID" INTEGER not null,
"CH_AUTHORISAT_REPAIR_STATUS_ID" INTEGER not null,
"CH_PROCESS_STATUS_ID" INTEGER not null,
"SERVICE_AUTHORISATION_SEQUENCE" NUMERIC(3,0),
"USER_CREATION" NATIONAL CHARACTER VARYING(125),
"ESTIMATED_DELIVERY_DATE" DATE,
"AUTHORISATION_FOLLOW_UP" NATIONAL CHARACTER VARYING(125),
"AUTHORISATION_REPAIR_DESC" NATIONAL CHARACTER VARYING(250),
"AUTHORISATION_REPAIR_MILEAGE" NUMERIC(7,0),
"APPROVAL_DATE_TIME" TIMESTAMP,
"APPROVAL_AMOUNT" NUMERIC(11,2),
"IND_EMAIL_SEND_REPLACEMENT_CAR" CHARACTER(4),
"IND_NOTIFICATION_SMS_SEND" CHARACTER(4),
"LOAD_DATE" DATE not null,
"SUPPLIER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
PRIMARY KEY ( "SERVICE_AUTORISATION_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION ( -- Number of Columns


= 18
SERVICE_AUTORISATION_ID BIGINT not null,
LOCAL_KEY_SERV_AUTHORISATION NATIONAL CHARACTER VARYING(125) not null,
CH_AUTHORISAT_TYPE_ID INTEGER not null,
CH_AUTHORISAT_REPAIR_STATUS_ID INTEGER not null,
CH_PROCESS_STATUS_ID INTEGER not null,
SERVICE_AUTHORISATION_SEQUENCE NUMERIC(3,0),
USER_CREATION NATIONAL CHARACTER VARYING(125),
ESTIMATED_DELIVERY_DATE DATE,
AUTHORISATION_FOLLOW_UP NATIONAL CHARACTER VARYING(125),
AUTHORISATION_REPAIR_DESC NATIONAL CHARACTER VARYING(250),
AUTHORISATION_REPAIR_MILEAGE NUMERIC(7,0),
APPROVAL_DATE_TIME TIMESTAMP,
APPROVAL_AMOUNT NUMERIC(11,2),
IND_EMAIL_SEND_REPLACEMENT_CAR CHARACTER(4),
IND_NOTIFICATION_SMS_SEND CHARACTER(4),
LOAD_DATE DATE not null,
SUPPLIER_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
PRIMARY KEY ( SERVICE_AUTORISATION_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION ( -- Number of


Columns = 18
SERVICE_AUTORISATION_ID BIGINT not null,
LOCAL_KEY_SERV_AUTHORISATION NATIONAL CHARACTER VARYING(125) not null,
CH_AUTHORISAT_TYPE_ID INTEGER not null,
CH_AUTHORISAT_REPAIR_STATUS_ID INTEGER not null,
CH_PROCESS_STATUS_ID INTEGER not null,
SERVICE_AUTHORISATION_SEQUENCE NUMERIC(3,0),
USER_CREATION NATIONAL CHARACTER VARYING(125),
ESTIMATED_DELIVERY_DATE DATE,
AUTHORISATION_FOLLOW_UP NATIONAL CHARACTER VARYING(125),
AUTHORISATION_REPAIR_DESC NATIONAL CHARACTER VARYING(250),
AUTHORISATION_REPAIR_MILEAGE NUMERIC(7,0),
APPROVAL_DATE_TIME TIMESTAMP,
APPROVAL_AMOUNT NUMERIC(11,2),
IND_EMAIL_SEND_REPLACEMENT_CAR CHARACTER(4),
IND_NOTIFICATION_SMS_SEND CHARACTER(4),
LOAD_DATE DATE not null,
SUPPLIER_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."F_SERVICE_AUTHORISATION" ( -- Number of


Columns = 18
"SERVICE_AUTORISATION_ID" BIGINT not null,
"LOCAL_KEY_SERV_AUTHORISATION" NATIONAL CHARACTER VARYING(125) not null,
"CH_AUTHORISAT_TYPE_ID" INTEGER not null,
"CH_AUTHORISAT_REPAIR_STATUS_ID" INTEGER not null,
"CH_PROCESS_STATUS_ID" INTEGER not null,
"SERVICE_AUTHORISATION_SEQUENCE" NUMERIC(3,0),
"USER_CREATION" NATIONAL CHARACTER VARYING(125),
"ESTIMATED_DELIVERY_DATE" DATE,
"AUTHORISATION_FOLLOW_UP" NATIONAL CHARACTER VARYING(125),
"AUTHORISATION_REPAIR_DESC" NATIONAL CHARACTER VARYING(250),
"AUTHORISATION_REPAIR_MILEAGE" NUMERIC(7,0),
"APPROVAL_DATE_TIME" TIMESTAMP,
"APPROVAL_AMOUNT" NUMERIC(11,2),
"IND_EMAIL_SEND_REPLACEMENT_CAR" CHARACTER(4),
"IND_NOTIFICATION_SMS_SEND" CHARACTER(4),
"LOAD_DATE" DATE not null,
"SUPPLIER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
PRIMARY KEY ( "SERVICE_AUTORISATION_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION ( -- Number of Columns


= 18
SERVICE_AUTORISATION_ID BIGINT not null,
LOCAL_KEY_SERV_AUTHORISATION NATIONAL CHARACTER VARYING(125) not null,
CH_AUTHORISAT_TYPE_ID INTEGER not null,
CH_AUTHORISAT_REPAIR_STATUS_ID INTEGER not null,
CH_PROCESS_STATUS_ID INTEGER not null,
SERVICE_AUTHORISATION_SEQUENCE NUMERIC(3,0),
USER_CREATION NATIONAL CHARACTER VARYING(125),
ESTIMATED_DELIVERY_DATE DATE,
AUTHORISATION_FOLLOW_UP NATIONAL CHARACTER VARYING(125),
AUTHORISATION_REPAIR_DESC NATIONAL CHARACTER VARYING(250),
AUTHORISATION_REPAIR_MILEAGE NUMERIC(7,0),
APPROVAL_DATE_TIME TIMESTAMP,
APPROVAL_AMOUNT NUMERIC(11,2),
IND_EMAIL_SEND_REPLACEMENT_CAR CHARACTER(4),
IND_NOTIFICATION_SMS_SEND CHARACTER(4),
LOAD_DATE DATE not null,
SUPPLIER_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
PRIMARY KEY ( SERVICE_AUTORISATION_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION ( -- Number of


Columns = 18
SERVICE_AUTORISATION_ID BIGINT not null,
LOCAL_KEY_SERV_AUTHORISATION NATIONAL CHARACTER VARYING(125) not null,
CH_AUTHORISAT_TYPE_ID INTEGER not null,
CH_AUTHORISAT_REPAIR_STATUS_ID INTEGER not null,
CH_PROCESS_STATUS_ID INTEGER not null,
SERVICE_AUTHORISATION_SEQUENCE NUMERIC(3,0),
USER_CREATION NATIONAL CHARACTER VARYING(125),
ESTIMATED_DELIVERY_DATE DATE,
AUTHORISATION_FOLLOW_UP NATIONAL CHARACTER VARYING(125),
AUTHORISATION_REPAIR_DESC NATIONAL CHARACTER VARYING(250),
AUTHORISATION_REPAIR_MILEAGE NUMERIC(7,0),
APPROVAL_DATE_TIME TIMESTAMP,
APPROVAL_AMOUNT NUMERIC(11,2),
IND_EMAIL_SEND_REPLACEMENT_CAR CHARACTER(4),
IND_NOTIFICATION_SMS_SEND CHARACTER(4),
LOAD_DATE DATE not null,
SUPPLIER_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
PRIMARY KEY ( SERVICE_AUTORISATION_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION ( -- Number of Columns


= 18
SERVICE_AUTORISATION_ID BIGINT not null,
LOCAL_KEY_SERV_AUTHORISATION NATIONAL CHARACTER VARYING(125) not null,
CH_AUTHORISAT_TYPE_ID INTEGER not null,
CH_AUTHORISAT_REPAIR_STATUS_ID INTEGER not null,
CH_PROCESS_STATUS_ID INTEGER not null,
SERVICE_AUTHORISATION_SEQUENCE NUMERIC(3,0),
USER_CREATION NATIONAL CHARACTER VARYING(125),
ESTIMATED_DELIVERY_DATE DATE,
AUTHORISATION_FOLLOW_UP NATIONAL CHARACTER VARYING(125),
AUTHORISATION_REPAIR_DESC NATIONAL CHARACTER VARYING(250),
AUTHORISATION_REPAIR_MILEAGE NUMERIC(7,0),
APPROVAL_DATE_TIME TIMESTAMP,
APPROVAL_AMOUNT NUMERIC(11,2),
IND_EMAIL_SEND_REPLACEMENT_CAR CHARACTER(4),
IND_NOTIFICATION_SMS_SEND CHARACTER(4),
LOAD_DATE DATE not null,
SUPPLIER_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
PRIMARY KEY ( SERVICE_AUTORISATION_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."F_SERVICE_AUTHORISATION" ( -- Number of


Columns = 18
"SERVICE_AUTORISATION_ID" BIGINT not null,
"LOCAL_KEY_SERV_AUTHORISATION" NATIONAL CHARACTER VARYING(125) not null,
"CH_AUTHORISAT_TYPE_ID" INTEGER not null,
"CH_AUTHORISAT_REPAIR_STATUS_ID" INTEGER not null,
"CH_PROCESS_STATUS_ID" INTEGER not null,
"SERVICE_AUTHORISATION_SEQUENCE" NUMERIC(3,0),
"USER_CREATION" NATIONAL CHARACTER VARYING(125),
"ESTIMATED_DELIVERY_DATE" DATE,
"AUTHORISATION_FOLLOW_UP" NATIONAL CHARACTER VARYING(125),
"AUTHORISATION_REPAIR_DESC" NATIONAL CHARACTER VARYING(250),
"AUTHORISATION_REPAIR_MILEAGE" NUMERIC(7,0),
"APPROVAL_DATE_TIME" TIMESTAMP,
"APPROVAL_AMOUNT" NUMERIC(11,2),
"IND_EMAIL_SEND_REPLACEMENT_CAR" CHARACTER(4),
"IND_NOTIFICATION_SMS_SEND" CHARACTER(4),
"LOAD_DATE" DATE not null,
"SUPPLIER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
PRIMARY KEY ( "SERVICE_AUTORISATION_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."F_SERVICE_AUTHORISATION" ( -- Number of


Columns = 18
"SERVICE_AUTORISATION_ID" BIGINT not null,
"LOCAL_KEY_SERV_AUTHORISATION" NATIONAL CHARACTER VARYING(125) not null,
"CH_AUTHORISAT_TYPE_ID" INTEGER not null,
"CH_AUTHORISAT_REPAIR_STATUS_ID" INTEGER not null,
"CH_PROCESS_STATUS_ID" INTEGER not null,
"SERVICE_AUTHORISATION_SEQUENCE" NUMERIC(3,0),
"USER_CREATION" NATIONAL CHARACTER VARYING(125),
"ESTIMATED_DELIVERY_DATE" DATE,
"AUTHORISATION_FOLLOW_UP" NATIONAL CHARACTER VARYING(125),
"AUTHORISATION_REPAIR_DESC" NATIONAL CHARACTER VARYING(250),
"AUTHORISATION_REPAIR_MILEAGE" NUMERIC(7,0),
"APPROVAL_DATE_TIME" TIMESTAMP,
"APPROVAL_AMOUNT" NUMERIC(11,2),
"IND_EMAIL_SEND_REPLACEMENT_CAR" CHARACTER(4),
"IND_NOTIFICATION_SMS_SEND" CHARACTER(4),
"LOAD_DATE" DATE not null,
"SUPPLIER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
PRIMARY KEY ( "SERVICE_AUTORISATION_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .
CREATE TABLE LPFR_DMA_ENTITY_REPORT2."F_SERVICE_AUTHORISATION" ( -- Number of
Columns = 18
"SERVICE_AUTORISATION_ID" BIGINT not null,
"LOCAL_KEY_SERV_AUTHORISATION" NATIONAL CHARACTER VARYING(125) not null,
"CH_AUTHORISAT_TYPE_ID" INTEGER not null,
"CH_AUTHORISAT_REPAIR_STATUS_ID" INTEGER not null,
"CH_PROCESS_STATUS_ID" INTEGER not null,
"SERVICE_AUTHORISATION_SEQUENCE" NUMERIC(3,0),
"USER_CREATION" NATIONAL CHARACTER VARYING(125),
"ESTIMATED_DELIVERY_DATE" DATE,
"AUTHORISATION_FOLLOW_UP" NATIONAL CHARACTER VARYING(125),
"AUTHORISATION_REPAIR_DESC" NATIONAL CHARACTER VARYING(250),
"AUTHORISATION_REPAIR_MILEAGE" NUMERIC(7,0),
"APPROVAL_DATE_TIME" TIMESTAMP,
"APPROVAL_AMOUNT" NUMERIC(11,2),
"IND_EMAIL_SEND_REPLACEMENT_CAR" CHARACTER(4),
"IND_NOTIFICATION_SMS_SEND" CHARACTER(4),
"LOAD_DATE" DATE not null,
"SUPPLIER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
PRIMARY KEY ( "SERVICE_AUTORISATION_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."F_SERVICE_AUTHORISATION" ( -- Number of


Columns = 18
"SERVICE_AUTORISATION_ID" BIGINT not null,
"LOCAL_KEY_SERV_AUTHORISATION" NATIONAL CHARACTER VARYING(125) not null,
"CH_AUTHORISAT_TYPE_ID" INTEGER not null,
"CH_AUTHORISAT_REPAIR_STATUS_ID" INTEGER not null,
"CH_PROCESS_STATUS_ID" INTEGER not null,
"SERVICE_AUTHORISATION_SEQUENCE" NUMERIC(3,0),
"USER_CREATION" NATIONAL CHARACTER VARYING(125),
"ESTIMATED_DELIVERY_DATE" DATE,
"AUTHORISATION_FOLLOW_UP" NATIONAL CHARACTER VARYING(125),
"AUTHORISATION_REPAIR_DESC" NATIONAL CHARACTER VARYING(250),
"AUTHORISATION_REPAIR_MILEAGE" NUMERIC(7,0),
"APPROVAL_DATE_TIME" TIMESTAMP,
"APPROVAL_AMOUNT" NUMERIC(11,2),
"IND_EMAIL_SEND_REPLACEMENT_CAR" CHARACTER(4),
"IND_NOTIFICATION_SMS_SEND" CHARACTER(4),
"LOAD_DATE" DATE not null,
"SUPPLIER_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
PRIMARY KEY ( "SERVICE_AUTORISATION_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."INSURANCE_AGREEMENT" ( -- Number of Columns =


7
"INSURANCE_AGREEMENT_ID" BIGINT not null,
"LOCAL_KEY_INSURANCE_AGREEMENT" NATIONAL CHARACTER VARYING(125),
"INSURED_PARTY_ID" BIGINT not null,
"CH_AGREEMENT_PERIOD_TYPE_ID" INTEGER not null,
"INSURANCE_AGREEMENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"AGREEMENT_RENEWAL_DAY" INTEGER,
"LOAD_DATE" DATE,
PRIMARY KEY ( "INSURANCE_AGREEMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.INSURANCE_AGREEMENT ( -- Number of Columns = 7


INSURANCE_AGREEMENT_ID BIGINT not null,
LOCAL_KEY_INSURANCE_AGREEMENT NATIONAL CHARACTER VARYING(125),
INSURED_PARTY_ID BIGINT not null,
CH_AGREEMENT_PERIOD_TYPE_ID INTEGER not null,
INSURANCE_AGREEMENT_NUMBER NATIONAL CHARACTER VARYING(125),
AGREEMENT_RENEWAL_DAY INTEGER,
LOAD_DATE DATE,
PRIMARY KEY ( INSURANCE_AGREEMENT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.INSURANCE_AGREEMENT ( -- Number of Columns =


7
INSURANCE_AGREEMENT_ID BIGINT not null,
LOCAL_KEY_INSURANCE_AGREEMENT NATIONAL CHARACTER VARYING(125),
INSURED_PARTY_ID BIGINT not null,
CH_AGREEMENT_PERIOD_TYPE_ID INTEGER not null,
INSURANCE_AGREEMENT_NUMBER NATIONAL CHARACTER VARYING(125),
AGREEMENT_RENEWAL_DAY INTEGER,
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."INSURANCE_AGREEMENT" ( -- Number of Columns =


7
"INSURANCE_AGREEMENT_ID" BIGINT not null,
"LOCAL_KEY_INSURANCE_AGREEMENT" NATIONAL CHARACTER VARYING(125),
"INSURED_PARTY_ID" BIGINT not null,
"CH_AGREEMENT_PERIOD_TYPE_ID" INTEGER not null,
"INSURANCE_AGREEMENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"AGREEMENT_RENEWAL_DAY" INTEGER,
"LOAD_DATE" DATE,
PRIMARY KEY ( "INSURANCE_AGREEMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.INSURANCE_AGREEMENT ( -- Number of Columns = 7


INSURANCE_AGREEMENT_ID BIGINT not null,
LOCAL_KEY_INSURANCE_AGREEMENT NATIONAL CHARACTER VARYING(125),
INSURED_PARTY_ID BIGINT not null,
CH_AGREEMENT_PERIOD_TYPE_ID INTEGER not null,
INSURANCE_AGREEMENT_NUMBER NATIONAL CHARACTER VARYING(125),
AGREEMENT_RENEWAL_DAY INTEGER,
LOAD_DATE DATE,
PRIMARY KEY ( INSURANCE_AGREEMENT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.INSURANCE_AGREEMENT ( -- Number of Columns =


7
INSURANCE_AGREEMENT_ID BIGINT not null,
LOCAL_KEY_INSURANCE_AGREEMENT NATIONAL CHARACTER VARYING(125),
INSURED_PARTY_ID BIGINT not null,
CH_AGREEMENT_PERIOD_TYPE_ID INTEGER not null,
INSURANCE_AGREEMENT_NUMBER NATIONAL CHARACTER VARYING(125),
AGREEMENT_RENEWAL_DAY INTEGER,
LOAD_DATE DATE,
PRIMARY KEY ( INSURANCE_AGREEMENT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.INSURANCE_AGREEMENT ( -- Number of Columns = 7


INSURANCE_AGREEMENT_ID BIGINT not null,
LOCAL_KEY_INSURANCE_AGREEMENT NATIONAL CHARACTER VARYING(125),
INSURED_PARTY_ID BIGINT not null,
CH_AGREEMENT_PERIOD_TYPE_ID INTEGER not null,
INSURANCE_AGREEMENT_NUMBER NATIONAL CHARACTER VARYING(125),
AGREEMENT_RENEWAL_DAY INTEGER,
LOAD_DATE DATE,
PRIMARY KEY ( INSURANCE_AGREEMENT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."INSURANCE_AGREEMENT" ( -- Number of Columns


= 7
"INSURANCE_AGREEMENT_ID" BIGINT not null,
"LOCAL_KEY_INSURANCE_AGREEMENT" NATIONAL CHARACTER VARYING(125),
"INSURED_PARTY_ID" BIGINT not null,
"CH_AGREEMENT_PERIOD_TYPE_ID" INTEGER not null,
"INSURANCE_AGREEMENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"AGREEMENT_RENEWAL_DAY" INTEGER,
"LOAD_DATE" DATE,
PRIMARY KEY ( "INSURANCE_AGREEMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."INSURANCE_AGREEMENT" ( -- Number of Columns =


7
"INSURANCE_AGREEMENT_ID" BIGINT not null,
"LOCAL_KEY_INSURANCE_AGREEMENT" NATIONAL CHARACTER VARYING(125),
"INSURED_PARTY_ID" BIGINT not null,
"CH_AGREEMENT_PERIOD_TYPE_ID" INTEGER not null,
"INSURANCE_AGREEMENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"AGREEMENT_RENEWAL_DAY" INTEGER,
"LOAD_DATE" DATE,
PRIMARY KEY ( "INSURANCE_AGREEMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."INSURANCE_AGREEMENT" ( -- Number of Columns


= 7
"INSURANCE_AGREEMENT_ID" BIGINT not null,
"LOCAL_KEY_INSURANCE_AGREEMENT" NATIONAL CHARACTER VARYING(125),
"INSURED_PARTY_ID" BIGINT not null,
"CH_AGREEMENT_PERIOD_TYPE_ID" INTEGER not null,
"INSURANCE_AGREEMENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"AGREEMENT_RENEWAL_DAY" INTEGER,
"LOAD_DATE" DATE,
PRIMARY KEY ( "INSURANCE_AGREEMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."INSURANCE_AGREEMENT" ( -- Number of Columns =


7
"INSURANCE_AGREEMENT_ID" BIGINT not null,
"LOCAL_KEY_INSURANCE_AGREEMENT" NATIONAL CHARACTER VARYING(125),
"INSURED_PARTY_ID" BIGINT not null,
"CH_AGREEMENT_PERIOD_TYPE_ID" INTEGER not null,
"INSURANCE_AGREEMENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"AGREEMENT_RENEWAL_DAY" INTEGER,
"LOAD_DATE" DATE,
PRIMARY KEY ( "INSURANCE_AGREEMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."INVOLVED_PARTY" ( -- Number of Columns = 58


"INVOLVED_PARTY_ID" BIGINT not null,
"INVOLVED_PARTY_TYPE" INTEGER,
"IS_A_BUYER" CHARACTER(1),
"IS_A_CUSTOMER" CHARACTER(1),
"IS_A_LP_INVOICE_RECEIVER" CHARACTER(1),
"IS_A_SUPPLIER_INVOICE_SENDER" CHARACTER(1),
"LP_ORGANISATION_CODE" CHARACTER(4),
"ORGANISATION_TYPE_ID" INTEGER,
"ORGANISATION_TYPE_LOCAL" NATIONAL CHARACTER VARYING(125),
"LP_COMPANY_CODE" NATIONAL CHARACTER VARYING(125),
"IP_NUMBER" NATIONAL CHARACTER VARYING(125),
"IP_NAME" NATIONAL CHARACTER VARYING(125),
"IP_SHORT_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L1_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L2_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L3_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L4_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L5_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_REGION_NAME" NATIONAL CHARACTER VARYING(125),
"PRIMARY_CONTACT" NATIONAL CHARACTER VARYING(125),
"PRIMARY_TELEPHONE_NUMBER" NATIONAL CHARACTER VARYING(125),
"PRIMARY_FAX_NUMBER" NATIONAL CHARACTER VARYING(125),
"DUNS_NUMBER" NATIONAL CHARACTER VARYING(125),
"VAT_NUMBER" NATIONAL CHARACTER VARYING(125),
"RISK_WEIGHTING" NATIONAL CHARACTER VARYING(125),
"STREET_NAME_AND_NUMBER" NATIONAL CHARACTER VARYING(125),
"POSTAL_CODE" NATIONAL CHARACTER VARYING(125),
"CITY" NATIONAL CHARACTER VARYING(125),
"PROVINCE" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"IS_A_SERVICE_SUPPLIER" CHARACTER(1),
"IS_A_DEBTOR" CHARACTER(1),
"LOCAL_KEY_INVOLVED_PARTY" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_ADDRESS" NATIONAL CHARACTER VARYING(125),
"LOCAL_SOURCE" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_ULTIMATE_PARENT" NATIONAL CHARACTER VARYING(125),
"ULTIMATE_PARENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"ULTIMATE_PARENT_NAME" NATIONAL CHARACTER VARYING(125),
"CH_BASEL2_BUSINESS_CLASS_ID" INTEGER not null,
"CH_BRANCH_CODE_ID" INTEGER not null,
"CH_CUSTOMER_SEGMENT_ID" INTEGER not null,
"CH_CUSTOMER_REGION_ID" INTEGER not null,
"LPI_MANAGING_ORGANISATION" CHARACTER(4),
"CH_COUNTRY_ID" INTEGER,
"CH_CUSTOMER_TYPE_ID" INTEGER,
"CH_LP_RATING_LOCAL_ID" INTEGER,
"CUST_FINANCIAL_GROUP_NUMBER" NATIONAL CHARACTER VARYING(125),
"CUST_FINANCIAL_GROUP_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_CUST_FINANCIAL_GROUP" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_REPORTS_TO" NATIONAL CHARACTER VARYING(125),
"REPORTS_TO_NUMBER" NATIONAL CHARACTER VARYING(125),
"REPORTS_TO_NAME" NATIONAL CHARACTER VARYING(125),
"IS_A_INSURER" CHARACTER(1),
"RELATIONSHIP_SINCE_DATE" DATE,
"IP_NAME_LOCAL" NATIONAL CHARACTER VARYING(125),
"IP_FIRST_NAME" NATIONAL CHARACTER VARYING(125),
"IP_LAST_NAME" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_INDICATOR" CHARACTER(1),
PRIMARY KEY ( "INVOLVED_PARTY_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY ( -- Number of Columns = 58


INVOLVED_PARTY_ID BIGINT not null,
INVOLVED_PARTY_TYPE INTEGER,
IS_A_BUYER CHARACTER(1),
IS_A_CUSTOMER CHARACTER(1),
IS_A_LP_INVOICE_RECEIVER CHARACTER(1),
IS_A_SUPPLIER_INVOICE_SENDER CHARACTER(1),
LP_ORGANISATION_CODE CHARACTER(4),
ORGANISATION_TYPE_ID INTEGER,
ORGANISATION_TYPE_LOCAL NATIONAL CHARACTER VARYING(125),
LP_COMPANY_CODE NATIONAL CHARACTER VARYING(125),
IP_NUMBER NATIONAL CHARACTER VARYING(125),
IP_NAME NATIONAL CHARACTER VARYING(125),
IP_SHORT_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L1_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L2_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L3_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L4_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L5_NAME NATIONAL CHARACTER VARYING(125),
LPI_REGION_NAME NATIONAL CHARACTER VARYING(125),
PRIMARY_CONTACT NATIONAL CHARACTER VARYING(125),
PRIMARY_TELEPHONE_NUMBER NATIONAL CHARACTER VARYING(125),
PRIMARY_FAX_NUMBER NATIONAL CHARACTER VARYING(125),
DUNS_NUMBER NATIONAL CHARACTER VARYING(125),
VAT_NUMBER NATIONAL CHARACTER VARYING(125),
RISK_WEIGHTING NATIONAL CHARACTER VARYING(125),
STREET_NAME_AND_NUMBER NATIONAL CHARACTER VARYING(125),
POSTAL_CODE NATIONAL CHARACTER VARYING(125),
CITY NATIONAL CHARACTER VARYING(125),
PROVINCE NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
IS_A_SERVICE_SUPPLIER CHARACTER(1),
IS_A_DEBTOR CHARACTER(1),
LOCAL_KEY_INVOLVED_PARTY NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_ADDRESS NATIONAL CHARACTER VARYING(125),
LOCAL_SOURCE NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_ULTIMATE_PARENT NATIONAL CHARACTER VARYING(125),
ULTIMATE_PARENT_NUMBER NATIONAL CHARACTER VARYING(125),
ULTIMATE_PARENT_NAME NATIONAL CHARACTER VARYING(125),
CH_BASEL2_BUSINESS_CLASS_ID INTEGER not null,
CH_BRANCH_CODE_ID INTEGER not null,
CH_CUSTOMER_SEGMENT_ID INTEGER not null,
CH_CUSTOMER_REGION_ID INTEGER not null,
LPI_MANAGING_ORGANISATION CHARACTER(4),
CH_COUNTRY_ID INTEGER,
CH_CUSTOMER_TYPE_ID INTEGER,
CH_LP_RATING_LOCAL_ID INTEGER,
CUST_FINANCIAL_GROUP_NUMBER NATIONAL CHARACTER VARYING(125),
CUST_FINANCIAL_GROUP_NAME NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_CUST_FINANCIAL_GROUP NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_REPORTS_TO NATIONAL CHARACTER VARYING(125),
REPORTS_TO_NUMBER NATIONAL CHARACTER VARYING(125),
REPORTS_TO_NAME NATIONAL CHARACTER VARYING(125),
IS_A_INSURER CHARACTER(1),
RELATIONSHIP_SINCE_DATE DATE,
IP_NAME_LOCAL NATIONAL CHARACTER VARYING(125),
IP_FIRST_NAME NATIONAL CHARACTER VARYING(125),
IP_LAST_NAME NATIONAL CHARACTER VARYING(125),
PREFERRED_SUPPLIER_INDICATOR CHARACTER(1),
PRIMARY KEY ( INVOLVED_PARTY_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY ( -- Number of Columns = 58


INVOLVED_PARTY_ID BIGINT not null,
INVOLVED_PARTY_TYPE INTEGER,
IS_A_BUYER CHARACTER(1),
IS_A_CUSTOMER CHARACTER(1),
IS_A_LP_INVOICE_RECEIVER CHARACTER(1),
IS_A_SUPPLIER_INVOICE_SENDER CHARACTER(1),
LP_ORGANISATION_CODE CHARACTER(4),
ORGANISATION_TYPE_ID INTEGER,
ORGANISATION_TYPE_LOCAL NATIONAL CHARACTER VARYING(125),
LP_COMPANY_CODE NATIONAL CHARACTER VARYING(125),
IP_NUMBER NATIONAL CHARACTER VARYING(125),
IP_NAME NATIONAL CHARACTER VARYING(125),
IP_SHORT_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L1_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L2_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L3_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L4_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L5_NAME NATIONAL CHARACTER VARYING(125),
LPI_REGION_NAME NATIONAL CHARACTER VARYING(125),
PRIMARY_CONTACT NATIONAL CHARACTER VARYING(125),
PRIMARY_TELEPHONE_NUMBER NATIONAL CHARACTER VARYING(125),
PRIMARY_FAX_NUMBER NATIONAL CHARACTER VARYING(125),
DUNS_NUMBER NATIONAL CHARACTER VARYING(125),
VAT_NUMBER NATIONAL CHARACTER VARYING(125),
RISK_WEIGHTING NATIONAL CHARACTER VARYING(125),
STREET_NAME_AND_NUMBER NATIONAL CHARACTER VARYING(125),
POSTAL_CODE NATIONAL CHARACTER VARYING(125),
CITY NATIONAL CHARACTER VARYING(125),
PROVINCE NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
IS_A_SERVICE_SUPPLIER CHARACTER(1),
IS_A_DEBTOR CHARACTER(1),
LOCAL_KEY_INVOLVED_PARTY NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_ADDRESS NATIONAL CHARACTER VARYING(125),
LOCAL_SOURCE NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_ULTIMATE_PARENT NATIONAL CHARACTER VARYING(125),
ULTIMATE_PARENT_NUMBER NATIONAL CHARACTER VARYING(125),
ULTIMATE_PARENT_NAME NATIONAL CHARACTER VARYING(125),
CH_BASEL2_BUSINESS_CLASS_ID INTEGER not null,
CH_BRANCH_CODE_ID INTEGER not null,
CH_CUSTOMER_SEGMENT_ID INTEGER not null,
CH_CUSTOMER_REGION_ID INTEGER not null,
LPI_MANAGING_ORGANISATION CHARACTER(4),
CH_COUNTRY_ID INTEGER,
CH_CUSTOMER_TYPE_ID INTEGER,
CH_LP_RATING_LOCAL_ID INTEGER,
CUST_FINANCIAL_GROUP_NUMBER NATIONAL CHARACTER VARYING(125),
CUST_FINANCIAL_GROUP_NAME NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_CUST_FINANCIAL_GROUP NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_REPORTS_TO NATIONAL CHARACTER VARYING(125),
REPORTS_TO_NUMBER NATIONAL CHARACTER VARYING(125),
REPORTS_TO_NAME NATIONAL CHARACTER VARYING(125),
IS_A_INSURER CHARACTER(1),
RELATIONSHIP_SINCE_DATE DATE,
IP_NAME_LOCAL NATIONAL CHARACTER VARYING(125),
IP_FIRST_NAME NATIONAL CHARACTER VARYING(125),
IP_LAST_NAME NATIONAL CHARACTER VARYING(125),
PREFERRED_SUPPLIER_INDICATOR CHARACTER(1)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."INVOLVED_PARTY" ( -- Number of Columns = 58


"INVOLVED_PARTY_ID" BIGINT not null,
"INVOLVED_PARTY_TYPE" INTEGER,
"IS_A_BUYER" CHARACTER(1),
"IS_A_CUSTOMER" CHARACTER(1),
"IS_A_LP_INVOICE_RECEIVER" CHARACTER(1),
"IS_A_SUPPLIER_INVOICE_SENDER" CHARACTER(1),
"LP_ORGANISATION_CODE" CHARACTER(4),
"ORGANISATION_TYPE_ID" INTEGER,
"ORGANISATION_TYPE_LOCAL" NATIONAL CHARACTER VARYING(125),
"LP_COMPANY_CODE" NATIONAL CHARACTER VARYING(125),
"IP_NUMBER" NATIONAL CHARACTER VARYING(125),
"IP_NAME" NATIONAL CHARACTER VARYING(125),
"IP_SHORT_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L1_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L2_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L3_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L4_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L5_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_REGION_NAME" NATIONAL CHARACTER VARYING(125),
"PRIMARY_CONTACT" NATIONAL CHARACTER VARYING(125),
"PRIMARY_TELEPHONE_NUMBER" NATIONAL CHARACTER VARYING(125),
"PRIMARY_FAX_NUMBER" NATIONAL CHARACTER VARYING(125),
"DUNS_NUMBER" NATIONAL CHARACTER VARYING(125),
"VAT_NUMBER" NATIONAL CHARACTER VARYING(125),
"RISK_WEIGHTING" NATIONAL CHARACTER VARYING(125),
"STREET_NAME_AND_NUMBER" NATIONAL CHARACTER VARYING(125),
"POSTAL_CODE" NATIONAL CHARACTER VARYING(125),
"CITY" NATIONAL CHARACTER VARYING(125),
"PROVINCE" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"IS_A_SERVICE_SUPPLIER" CHARACTER(1),
"IS_A_DEBTOR" CHARACTER(1),
"LOCAL_KEY_INVOLVED_PARTY" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_ADDRESS" NATIONAL CHARACTER VARYING(125),
"LOCAL_SOURCE" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_ULTIMATE_PARENT" NATIONAL CHARACTER VARYING(125),
"ULTIMATE_PARENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"ULTIMATE_PARENT_NAME" NATIONAL CHARACTER VARYING(125),
"CH_BASEL2_BUSINESS_CLASS_ID" INTEGER not null,
"CH_BRANCH_CODE_ID" INTEGER not null,
"CH_CUSTOMER_SEGMENT_ID" INTEGER not null,
"CH_CUSTOMER_REGION_ID" INTEGER not null,
"LPI_MANAGING_ORGANISATION" CHARACTER(4),
"CH_COUNTRY_ID" INTEGER,
"CH_CUSTOMER_TYPE_ID" INTEGER,
"CH_LP_RATING_LOCAL_ID" INTEGER,
"CUST_FINANCIAL_GROUP_NUMBER" NATIONAL CHARACTER VARYING(125),
"CUST_FINANCIAL_GROUP_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_CUST_FINANCIAL_GROUP" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_REPORTS_TO" NATIONAL CHARACTER VARYING(125),
"REPORTS_TO_NUMBER" NATIONAL CHARACTER VARYING(125),
"REPORTS_TO_NAME" NATIONAL CHARACTER VARYING(125),
"IS_A_INSURER" CHARACTER(1),
"RELATIONSHIP_SINCE_DATE" DATE,
"IP_NAME_LOCAL" NATIONAL CHARACTER VARYING(125),
"IP_FIRST_NAME" NATIONAL CHARACTER VARYING(125),
"IP_LAST_NAME" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_INDICATOR" CHARACTER(1),
PRIMARY KEY ( "INVOLVED_PARTY_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.INVOLVED_PARTY ( -- Number of Columns = 58


INVOLVED_PARTY_ID BIGINT not null,
INVOLVED_PARTY_TYPE INTEGER,
IS_A_BUYER CHARACTER(1),
IS_A_CUSTOMER CHARACTER(1),
IS_A_LP_INVOICE_RECEIVER CHARACTER(1),
IS_A_SUPPLIER_INVOICE_SENDER CHARACTER(1),
LP_ORGANISATION_CODE CHARACTER(4),
ORGANISATION_TYPE_ID INTEGER,
ORGANISATION_TYPE_LOCAL NATIONAL CHARACTER VARYING(125),
LP_COMPANY_CODE NATIONAL CHARACTER VARYING(125),
IP_NUMBER NATIONAL CHARACTER VARYING(125),
IP_NAME NATIONAL CHARACTER VARYING(125),
IP_SHORT_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L1_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L2_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L3_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L4_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L5_NAME NATIONAL CHARACTER VARYING(125),
LPI_REGION_NAME NATIONAL CHARACTER VARYING(125),
PRIMARY_CONTACT NATIONAL CHARACTER VARYING(125),
PRIMARY_TELEPHONE_NUMBER NATIONAL CHARACTER VARYING(125),
PRIMARY_FAX_NUMBER NATIONAL CHARACTER VARYING(125),
DUNS_NUMBER NATIONAL CHARACTER VARYING(125),
VAT_NUMBER NATIONAL CHARACTER VARYING(125),
RISK_WEIGHTING NATIONAL CHARACTER VARYING(125),
STREET_NAME_AND_NUMBER NATIONAL CHARACTER VARYING(125),
POSTAL_CODE NATIONAL CHARACTER VARYING(125),
CITY NATIONAL CHARACTER VARYING(125),
PROVINCE NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
IS_A_SERVICE_SUPPLIER CHARACTER(1),
IS_A_DEBTOR CHARACTER(1),
LOCAL_KEY_INVOLVED_PARTY NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_ADDRESS NATIONAL CHARACTER VARYING(125),
LOCAL_SOURCE NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_ULTIMATE_PARENT NATIONAL CHARACTER VARYING(125),
ULTIMATE_PARENT_NUMBER NATIONAL CHARACTER VARYING(125),
ULTIMATE_PARENT_NAME NATIONAL CHARACTER VARYING(125),
CH_BASEL2_BUSINESS_CLASS_ID INTEGER not null,
CH_BRANCH_CODE_ID INTEGER not null,
CH_CUSTOMER_SEGMENT_ID INTEGER not null,
CH_CUSTOMER_REGION_ID INTEGER not null,
LPI_MANAGING_ORGANISATION CHARACTER(4),
CH_COUNTRY_ID INTEGER,
CH_CUSTOMER_TYPE_ID INTEGER,
CH_LP_RATING_LOCAL_ID INTEGER,
CUST_FINANCIAL_GROUP_NUMBER NATIONAL CHARACTER VARYING(125),
CUST_FINANCIAL_GROUP_NAME NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_CUST_FINANCIAL_GROUP NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_REPORTS_TO NATIONAL CHARACTER VARYING(125),
REPORTS_TO_NUMBER NATIONAL CHARACTER VARYING(125),
REPORTS_TO_NAME NATIONAL CHARACTER VARYING(125),
IS_A_INSURER CHARACTER(1),
RELATIONSHIP_SINCE_DATE DATE,
IP_NAME_LOCAL NATIONAL CHARACTER VARYING(125),
IP_FIRST_NAME NATIONAL CHARACTER VARYING(125),
IP_LAST_NAME NATIONAL CHARACTER VARYING(125),
PREFERRED_SUPPLIER_INDICATOR CHARACTER(1),
PRIMARY KEY ( INVOLVED_PARTY_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.INVOLVED_PARTY ( -- Number of Columns = 58


INVOLVED_PARTY_ID BIGINT not null,
INVOLVED_PARTY_TYPE INTEGER,
IS_A_BUYER CHARACTER(1),
IS_A_CUSTOMER CHARACTER(1),
IS_A_LP_INVOICE_RECEIVER CHARACTER(1),
IS_A_SUPPLIER_INVOICE_SENDER CHARACTER(1),
LP_ORGANISATION_CODE CHARACTER(4),
ORGANISATION_TYPE_ID INTEGER,
ORGANISATION_TYPE_LOCAL NATIONAL CHARACTER VARYING(125),
LP_COMPANY_CODE NATIONAL CHARACTER VARYING(125),
IP_NUMBER NATIONAL CHARACTER VARYING(125),
IP_NAME NATIONAL CHARACTER VARYING(125),
IP_SHORT_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L1_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L2_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L3_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L4_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L5_NAME NATIONAL CHARACTER VARYING(125),
LPI_REGION_NAME NATIONAL CHARACTER VARYING(125),
PRIMARY_CONTACT NATIONAL CHARACTER VARYING(125),
PRIMARY_TELEPHONE_NUMBER NATIONAL CHARACTER VARYING(125),
PRIMARY_FAX_NUMBER NATIONAL CHARACTER VARYING(125),
DUNS_NUMBER NATIONAL CHARACTER VARYING(125),
VAT_NUMBER NATIONAL CHARACTER VARYING(125),
RISK_WEIGHTING NATIONAL CHARACTER VARYING(125),
STREET_NAME_AND_NUMBER NATIONAL CHARACTER VARYING(125),
POSTAL_CODE NATIONAL CHARACTER VARYING(125),
CITY NATIONAL CHARACTER VARYING(125),
PROVINCE NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
IS_A_SERVICE_SUPPLIER CHARACTER(1),
IS_A_DEBTOR CHARACTER(1),
LOCAL_KEY_INVOLVED_PARTY NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_ADDRESS NATIONAL CHARACTER VARYING(125),
LOCAL_SOURCE NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_ULTIMATE_PARENT NATIONAL CHARACTER VARYING(125),
ULTIMATE_PARENT_NUMBER NATIONAL CHARACTER VARYING(125),
ULTIMATE_PARENT_NAME NATIONAL CHARACTER VARYING(125),
CH_BASEL2_BUSINESS_CLASS_ID INTEGER not null,
CH_BRANCH_CODE_ID INTEGER not null,
CH_CUSTOMER_SEGMENT_ID INTEGER not null,
CH_CUSTOMER_REGION_ID INTEGER not null,
LPI_MANAGING_ORGANISATION CHARACTER(4),
CH_COUNTRY_ID INTEGER,
CH_CUSTOMER_TYPE_ID INTEGER,
CH_LP_RATING_LOCAL_ID INTEGER,
CUST_FINANCIAL_GROUP_NUMBER NATIONAL CHARACTER VARYING(125),
CUST_FINANCIAL_GROUP_NAME NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_CUST_FINANCIAL_GROUP NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_REPORTS_TO NATIONAL CHARACTER VARYING(125),
REPORTS_TO_NUMBER NATIONAL CHARACTER VARYING(125),
REPORTS_TO_NAME NATIONAL CHARACTER VARYING(125),
IS_A_INSURER CHARACTER(1),
RELATIONSHIP_SINCE_DATE DATE,
IP_NAME_LOCAL NATIONAL CHARACTER VARYING(125),
IP_FIRST_NAME NATIONAL CHARACTER VARYING(125),
IP_LAST_NAME NATIONAL CHARACTER VARYING(125),
PREFERRED_SUPPLIER_INDICATOR CHARACTER(1),
PRIMARY KEY ( INVOLVED_PARTY_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.INVOLVED_PARTY ( -- Number of Columns = 58


INVOLVED_PARTY_ID BIGINT not null,
INVOLVED_PARTY_TYPE INTEGER,
IS_A_BUYER CHARACTER(1),
IS_A_CUSTOMER CHARACTER(1),
IS_A_LP_INVOICE_RECEIVER CHARACTER(1),
IS_A_SUPPLIER_INVOICE_SENDER CHARACTER(1),
LP_ORGANISATION_CODE CHARACTER(4),
ORGANISATION_TYPE_ID INTEGER,
ORGANISATION_TYPE_LOCAL NATIONAL CHARACTER VARYING(125),
LP_COMPANY_CODE NATIONAL CHARACTER VARYING(125),
IP_NUMBER NATIONAL CHARACTER VARYING(125),
IP_NAME NATIONAL CHARACTER VARYING(125),
IP_SHORT_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L1_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L2_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L3_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L4_NAME NATIONAL CHARACTER VARYING(125),
LPI_CUST_L5_NAME NATIONAL CHARACTER VARYING(125),
LPI_REGION_NAME NATIONAL CHARACTER VARYING(125),
PRIMARY_CONTACT NATIONAL CHARACTER VARYING(125),
PRIMARY_TELEPHONE_NUMBER NATIONAL CHARACTER VARYING(125),
PRIMARY_FAX_NUMBER NATIONAL CHARACTER VARYING(125),
DUNS_NUMBER NATIONAL CHARACTER VARYING(125),
VAT_NUMBER NATIONAL CHARACTER VARYING(125),
RISK_WEIGHTING NATIONAL CHARACTER VARYING(125),
STREET_NAME_AND_NUMBER NATIONAL CHARACTER VARYING(125),
POSTAL_CODE NATIONAL CHARACTER VARYING(125),
CITY NATIONAL CHARACTER VARYING(125),
PROVINCE NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
IS_A_SERVICE_SUPPLIER CHARACTER(1),
IS_A_DEBTOR CHARACTER(1),
LOCAL_KEY_INVOLVED_PARTY NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_ADDRESS NATIONAL CHARACTER VARYING(125),
LOCAL_SOURCE NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_ULTIMATE_PARENT NATIONAL CHARACTER VARYING(125),
ULTIMATE_PARENT_NUMBER NATIONAL CHARACTER VARYING(125),
ULTIMATE_PARENT_NAME NATIONAL CHARACTER VARYING(125),
CH_BASEL2_BUSINESS_CLASS_ID INTEGER not null,
CH_BRANCH_CODE_ID INTEGER not null,
CH_CUSTOMER_SEGMENT_ID INTEGER not null,
CH_CUSTOMER_REGION_ID INTEGER not null,
LPI_MANAGING_ORGANISATION CHARACTER(4),
CH_COUNTRY_ID INTEGER,
CH_CUSTOMER_TYPE_ID INTEGER,
CH_LP_RATING_LOCAL_ID INTEGER,
CUST_FINANCIAL_GROUP_NUMBER NATIONAL CHARACTER VARYING(125),
CUST_FINANCIAL_GROUP_NAME NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_CUST_FINANCIAL_GROUP NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_REPORTS_TO NATIONAL CHARACTER VARYING(125),
REPORTS_TO_NUMBER NATIONAL CHARACTER VARYING(125),
REPORTS_TO_NAME NATIONAL CHARACTER VARYING(125),
IS_A_INSURER CHARACTER(1),
RELATIONSHIP_SINCE_DATE DATE,
IP_NAME_LOCAL NATIONAL CHARACTER VARYING(125),
IP_FIRST_NAME NATIONAL CHARACTER VARYING(125),
IP_LAST_NAME NATIONAL CHARACTER VARYING(125),
PREFERRED_SUPPLIER_INDICATOR CHARACTER(1),
PRIMARY KEY ( INVOLVED_PARTY_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."INVOLVED_PARTY" ( -- Number of Columns = 58


"INVOLVED_PARTY_ID" BIGINT not null,
"INVOLVED_PARTY_TYPE" INTEGER,
"IS_A_BUYER" CHARACTER(1),
"IS_A_CUSTOMER" CHARACTER(1),
"IS_A_LP_INVOICE_RECEIVER" CHARACTER(1),
"IS_A_SUPPLIER_INVOICE_SENDER" CHARACTER(1),
"LP_ORGANISATION_CODE" CHARACTER(4),
"ORGANISATION_TYPE_ID" INTEGER,
"ORGANISATION_TYPE_LOCAL" NATIONAL CHARACTER VARYING(125),
"LP_COMPANY_CODE" NATIONAL CHARACTER VARYING(125),
"IP_NUMBER" NATIONAL CHARACTER VARYING(125),
"IP_NAME" NATIONAL CHARACTER VARYING(125),
"IP_SHORT_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L1_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L2_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L3_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L4_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L5_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_REGION_NAME" NATIONAL CHARACTER VARYING(125),
"PRIMARY_CONTACT" NATIONAL CHARACTER VARYING(125),
"PRIMARY_TELEPHONE_NUMBER" NATIONAL CHARACTER VARYING(125),
"PRIMARY_FAX_NUMBER" NATIONAL CHARACTER VARYING(125),
"DUNS_NUMBER" NATIONAL CHARACTER VARYING(125),
"VAT_NUMBER" NATIONAL CHARACTER VARYING(125),
"RISK_WEIGHTING" NATIONAL CHARACTER VARYING(125),
"STREET_NAME_AND_NUMBER" NATIONAL CHARACTER VARYING(125),
"POSTAL_CODE" NATIONAL CHARACTER VARYING(125),
"CITY" NATIONAL CHARACTER VARYING(125),
"PROVINCE" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"IS_A_SERVICE_SUPPLIER" CHARACTER(1),
"IS_A_DEBTOR" CHARACTER(1),
"LOCAL_KEY_INVOLVED_PARTY" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_ADDRESS" NATIONAL CHARACTER VARYING(125),
"LOCAL_SOURCE" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_ULTIMATE_PARENT" NATIONAL CHARACTER VARYING(125),
"ULTIMATE_PARENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"ULTIMATE_PARENT_NAME" NATIONAL CHARACTER VARYING(125),
"CH_BASEL2_BUSINESS_CLASS_ID" INTEGER not null,
"CH_BRANCH_CODE_ID" INTEGER not null,
"CH_CUSTOMER_SEGMENT_ID" INTEGER not null,
"CH_CUSTOMER_REGION_ID" INTEGER not null,
"LPI_MANAGING_ORGANISATION" CHARACTER(4),
"CH_COUNTRY_ID" INTEGER,
"CH_CUSTOMER_TYPE_ID" INTEGER,
"CH_LP_RATING_LOCAL_ID" INTEGER,
"CUST_FINANCIAL_GROUP_NUMBER" NATIONAL CHARACTER VARYING(125),
"CUST_FINANCIAL_GROUP_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_CUST_FINANCIAL_GROUP" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_REPORTS_TO" NATIONAL CHARACTER VARYING(125),
"REPORTS_TO_NUMBER" NATIONAL CHARACTER VARYING(125),
"REPORTS_TO_NAME" NATIONAL CHARACTER VARYING(125),
"IS_A_INSURER" CHARACTER(1),
"RELATIONSHIP_SINCE_DATE" DATE,
"IP_NAME_LOCAL" NATIONAL CHARACTER VARYING(125),
"IP_FIRST_NAME" NATIONAL CHARACTER VARYING(125),
"IP_LAST_NAME" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_INDICATOR" CHARACTER(1),
PRIMARY KEY ( "INVOLVED_PARTY_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."INVOLVED_PARTY" ( -- Number of Columns = 58


"INVOLVED_PARTY_ID" BIGINT not null,
"INVOLVED_PARTY_TYPE" INTEGER,
"IS_A_BUYER" CHARACTER(1),
"IS_A_CUSTOMER" CHARACTER(1),
"IS_A_LP_INVOICE_RECEIVER" CHARACTER(1),
"IS_A_SUPPLIER_INVOICE_SENDER" CHARACTER(1),
"LP_ORGANISATION_CODE" CHARACTER(4),
"ORGANISATION_TYPE_ID" INTEGER,
"ORGANISATION_TYPE_LOCAL" NATIONAL CHARACTER VARYING(125),
"LP_COMPANY_CODE" NATIONAL CHARACTER VARYING(125),
"IP_NUMBER" NATIONAL CHARACTER VARYING(125),
"IP_NAME" NATIONAL CHARACTER VARYING(125),
"IP_SHORT_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L1_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L2_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L3_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L4_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L5_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_REGION_NAME" NATIONAL CHARACTER VARYING(125),
"PRIMARY_CONTACT" NATIONAL CHARACTER VARYING(125),
"PRIMARY_TELEPHONE_NUMBER" NATIONAL CHARACTER VARYING(125),
"PRIMARY_FAX_NUMBER" NATIONAL CHARACTER VARYING(125),
"DUNS_NUMBER" NATIONAL CHARACTER VARYING(125),
"VAT_NUMBER" NATIONAL CHARACTER VARYING(125),
"RISK_WEIGHTING" NATIONAL CHARACTER VARYING(125),
"STREET_NAME_AND_NUMBER" NATIONAL CHARACTER VARYING(125),
"POSTAL_CODE" NATIONAL CHARACTER VARYING(125),
"CITY" NATIONAL CHARACTER VARYING(125),
"PROVINCE" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"IS_A_SERVICE_SUPPLIER" CHARACTER(1),
"IS_A_DEBTOR" CHARACTER(1),
"LOCAL_KEY_INVOLVED_PARTY" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_ADDRESS" NATIONAL CHARACTER VARYING(125),
"LOCAL_SOURCE" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_ULTIMATE_PARENT" NATIONAL CHARACTER VARYING(125),
"ULTIMATE_PARENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"ULTIMATE_PARENT_NAME" NATIONAL CHARACTER VARYING(125),
"CH_BASEL2_BUSINESS_CLASS_ID" INTEGER not null,
"CH_BRANCH_CODE_ID" INTEGER not null,
"CH_CUSTOMER_SEGMENT_ID" INTEGER not null,
"CH_CUSTOMER_REGION_ID" INTEGER not null,
"LPI_MANAGING_ORGANISATION" CHARACTER(4),
"CH_COUNTRY_ID" INTEGER,
"CH_CUSTOMER_TYPE_ID" INTEGER,
"CH_LP_RATING_LOCAL_ID" INTEGER,
"CUST_FINANCIAL_GROUP_NUMBER" NATIONAL CHARACTER VARYING(125),
"CUST_FINANCIAL_GROUP_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_CUST_FINANCIAL_GROUP" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_REPORTS_TO" NATIONAL CHARACTER VARYING(125),
"REPORTS_TO_NUMBER" NATIONAL CHARACTER VARYING(125),
"REPORTS_TO_NAME" NATIONAL CHARACTER VARYING(125),
"IS_A_INSURER" CHARACTER(1),
"RELATIONSHIP_SINCE_DATE" DATE,
"IP_NAME_LOCAL" NATIONAL CHARACTER VARYING(125),
"IP_FIRST_NAME" NATIONAL CHARACTER VARYING(125),
"IP_LAST_NAME" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_INDICATOR" CHARACTER(1),
PRIMARY KEY ( "INVOLVED_PARTY_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."INVOLVED_PARTY" ( -- Number of Columns = 58


"INVOLVED_PARTY_ID" BIGINT not null,
"INVOLVED_PARTY_TYPE" INTEGER,
"IS_A_BUYER" CHARACTER(1),
"IS_A_CUSTOMER" CHARACTER(1),
"IS_A_LP_INVOICE_RECEIVER" CHARACTER(1),
"IS_A_SUPPLIER_INVOICE_SENDER" CHARACTER(1),
"LP_ORGANISATION_CODE" CHARACTER(4),
"ORGANISATION_TYPE_ID" INTEGER,
"ORGANISATION_TYPE_LOCAL" NATIONAL CHARACTER VARYING(125),
"LP_COMPANY_CODE" NATIONAL CHARACTER VARYING(125),
"IP_NUMBER" NATIONAL CHARACTER VARYING(125),
"IP_NAME" NATIONAL CHARACTER VARYING(125),
"IP_SHORT_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L1_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L2_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L3_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L4_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L5_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_REGION_NAME" NATIONAL CHARACTER VARYING(125),
"PRIMARY_CONTACT" NATIONAL CHARACTER VARYING(125),
"PRIMARY_TELEPHONE_NUMBER" NATIONAL CHARACTER VARYING(125),
"PRIMARY_FAX_NUMBER" NATIONAL CHARACTER VARYING(125),
"DUNS_NUMBER" NATIONAL CHARACTER VARYING(125),
"VAT_NUMBER" NATIONAL CHARACTER VARYING(125),
"RISK_WEIGHTING" NATIONAL CHARACTER VARYING(125),
"STREET_NAME_AND_NUMBER" NATIONAL CHARACTER VARYING(125),
"POSTAL_CODE" NATIONAL CHARACTER VARYING(125),
"CITY" NATIONAL CHARACTER VARYING(125),
"PROVINCE" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"IS_A_SERVICE_SUPPLIER" CHARACTER(1),
"IS_A_DEBTOR" CHARACTER(1),
"LOCAL_KEY_INVOLVED_PARTY" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_ADDRESS" NATIONAL CHARACTER VARYING(125),
"LOCAL_SOURCE" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_ULTIMATE_PARENT" NATIONAL CHARACTER VARYING(125),
"ULTIMATE_PARENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"ULTIMATE_PARENT_NAME" NATIONAL CHARACTER VARYING(125),
"CH_BASEL2_BUSINESS_CLASS_ID" INTEGER not null,
"CH_BRANCH_CODE_ID" INTEGER not null,
"CH_CUSTOMER_SEGMENT_ID" INTEGER not null,
"CH_CUSTOMER_REGION_ID" INTEGER not null,
"LPI_MANAGING_ORGANISATION" CHARACTER(4),
"CH_COUNTRY_ID" INTEGER,
"CH_CUSTOMER_TYPE_ID" INTEGER,
"CH_LP_RATING_LOCAL_ID" INTEGER,
"CUST_FINANCIAL_GROUP_NUMBER" NATIONAL CHARACTER VARYING(125),
"CUST_FINANCIAL_GROUP_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_CUST_FINANCIAL_GROUP" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_REPORTS_TO" NATIONAL CHARACTER VARYING(125),
"REPORTS_TO_NUMBER" NATIONAL CHARACTER VARYING(125),
"REPORTS_TO_NAME" NATIONAL CHARACTER VARYING(125),
"IS_A_INSURER" CHARACTER(1),
"RELATIONSHIP_SINCE_DATE" DATE,
"IP_NAME_LOCAL" NATIONAL CHARACTER VARYING(125),
"IP_FIRST_NAME" NATIONAL CHARACTER VARYING(125),
"IP_LAST_NAME" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_INDICATOR" CHARACTER(1),
PRIMARY KEY ( "INVOLVED_PARTY_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."INVOLVED_PARTY" ( -- Number of Columns = 58


"INVOLVED_PARTY_ID" BIGINT not null,
"INVOLVED_PARTY_TYPE" INTEGER,
"IS_A_BUYER" CHARACTER(1),
"IS_A_CUSTOMER" CHARACTER(1),
"IS_A_LP_INVOICE_RECEIVER" CHARACTER(1),
"IS_A_SUPPLIER_INVOICE_SENDER" CHARACTER(1),
"LP_ORGANISATION_CODE" CHARACTER(4),
"ORGANISATION_TYPE_ID" INTEGER,
"ORGANISATION_TYPE_LOCAL" NATIONAL CHARACTER VARYING(125),
"LP_COMPANY_CODE" NATIONAL CHARACTER VARYING(125),
"IP_NUMBER" NATIONAL CHARACTER VARYING(125),
"IP_NAME" NATIONAL CHARACTER VARYING(125),
"IP_SHORT_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L1_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L2_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L3_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L4_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_CUST_L5_NAME" NATIONAL CHARACTER VARYING(125),
"LPI_REGION_NAME" NATIONAL CHARACTER VARYING(125),
"PRIMARY_CONTACT" NATIONAL CHARACTER VARYING(125),
"PRIMARY_TELEPHONE_NUMBER" NATIONAL CHARACTER VARYING(125),
"PRIMARY_FAX_NUMBER" NATIONAL CHARACTER VARYING(125),
"DUNS_NUMBER" NATIONAL CHARACTER VARYING(125),
"VAT_NUMBER" NATIONAL CHARACTER VARYING(125),
"RISK_WEIGHTING" NATIONAL CHARACTER VARYING(125),
"STREET_NAME_AND_NUMBER" NATIONAL CHARACTER VARYING(125),
"POSTAL_CODE" NATIONAL CHARACTER VARYING(125),
"CITY" NATIONAL CHARACTER VARYING(125),
"PROVINCE" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"IS_A_SERVICE_SUPPLIER" CHARACTER(1),
"IS_A_DEBTOR" CHARACTER(1),
"LOCAL_KEY_INVOLVED_PARTY" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_ADDRESS" NATIONAL CHARACTER VARYING(125),
"LOCAL_SOURCE" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_ULTIMATE_PARENT" NATIONAL CHARACTER VARYING(125),
"ULTIMATE_PARENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"ULTIMATE_PARENT_NAME" NATIONAL CHARACTER VARYING(125),
"CH_BASEL2_BUSINESS_CLASS_ID" INTEGER not null,
"CH_BRANCH_CODE_ID" INTEGER not null,
"CH_CUSTOMER_SEGMENT_ID" INTEGER not null,
"CH_CUSTOMER_REGION_ID" INTEGER not null,
"LPI_MANAGING_ORGANISATION" CHARACTER(4),
"CH_COUNTRY_ID" INTEGER,
"CH_CUSTOMER_TYPE_ID" INTEGER,
"CH_LP_RATING_LOCAL_ID" INTEGER,
"CUST_FINANCIAL_GROUP_NUMBER" NATIONAL CHARACTER VARYING(125),
"CUST_FINANCIAL_GROUP_NAME" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_CUST_FINANCIAL_GROUP" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_REPORTS_TO" NATIONAL CHARACTER VARYING(125),
"REPORTS_TO_NUMBER" NATIONAL CHARACTER VARYING(125),
"REPORTS_TO_NAME" NATIONAL CHARACTER VARYING(125),
"IS_A_INSURER" CHARACTER(1),
"RELATIONSHIP_SINCE_DATE" DATE,
"IP_NAME_LOCAL" NATIONAL CHARACTER VARYING(125),
"IP_FIRST_NAME" NATIONAL CHARACTER VARYING(125),
"IP_LAST_NAME" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_INDICATOR" CHARACTER(1),
PRIMARY KEY ( "INVOLVED_PARTY_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."LC_FREE_ATTRIBUTES" ( -- Number of Columns =


29
"LOCAL_KEY_LC_FREE_ATTRIBUTES" NATIONAL CHARACTER VARYING(125),
"LC_FREE_DATE_1" DATE,
"LC_FREE_DATE_2" DATE,
"LC_FREE_DATE_3" DATE,
"LC_FREE_DATE_4" DATE,
"LC_FREE_DATE_5" DATE,
"LC_FREE_AMOUNT_1" NUMERIC(11,2),
"LC_FREE_AMOUNT_2" NUMERIC(11,2),
"LC_FREE_AMOUNT_3" NUMERIC(11,2),
"LC_FREE_AMOUNT_4" NUMERIC(11,2),
"LC_FREE_AMOUNT_5" NUMERIC(11,2),
"LC_FREE_FLAG_1" CHARACTER(1),
"LC_FREE_FLAG_2" CHARACTER(1),
"LC_FREE_FLAG_3" CHARACTER(1),
"LC_FREE_FLAG_4" CHARACTER(1),
"LC_FREE_FLAG_5" CHARACTER(1),
"LC_FREE_TEXT_1" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_2" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_3" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_4" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_5" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"LC_FREE_NUMERIC_1" NUMERIC(11,2),
"LC_FREE_NUMERIC_2" NUMERIC(11,2),
"LC_FREE_NUMERIC_3" NUMERIC(11,2),
"LC_FREE_NUMERIC_4" NUMERIC(11,2),
"LC_FREE_NUMERIC_5" NUMERIC(11,2),
"LC_FREE_ATTRIBUTES_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
PRIMARY KEY ( "LEASE_CONTRACT_VEHICLE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES ( -- Number of Columns = 29


LOCAL_KEY_LC_FREE_ATTRIBUTES NATIONAL CHARACTER VARYING(125),
LC_FREE_DATE_1 DATE,
LC_FREE_DATE_2 DATE,
LC_FREE_DATE_3 DATE,
LC_FREE_DATE_4 DATE,
LC_FREE_DATE_5 DATE,
LC_FREE_AMOUNT_1 NUMERIC(11,2),
LC_FREE_AMOUNT_2 NUMERIC(11,2),
LC_FREE_AMOUNT_3 NUMERIC(11,2),
LC_FREE_AMOUNT_4 NUMERIC(11,2),
LC_FREE_AMOUNT_5 NUMERIC(11,2),
LC_FREE_FLAG_1 CHARACTER(1),
LC_FREE_FLAG_2 CHARACTER(1),
LC_FREE_FLAG_3 CHARACTER(1),
LC_FREE_FLAG_4 CHARACTER(1),
LC_FREE_FLAG_5 CHARACTER(1),
LC_FREE_TEXT_1 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_2 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_3 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_4 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_5 NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
LC_FREE_NUMERIC_1 NUMERIC(11,2),
LC_FREE_NUMERIC_2 NUMERIC(11,2),
LC_FREE_NUMERIC_3 NUMERIC(11,2),
LC_FREE_NUMERIC_4 NUMERIC(11,2),
LC_FREE_NUMERIC_5 NUMERIC(11,2),
LC_FREE_ATTRIBUTES_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
PRIMARY KEY ( LEASE_CONTRACT_VEHICLE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES ( -- Number of Columns =


29
LOCAL_KEY_LC_FREE_ATTRIBUTES NATIONAL CHARACTER VARYING(125),
LC_FREE_DATE_1 DATE,
LC_FREE_DATE_2 DATE,
LC_FREE_DATE_3 DATE,
LC_FREE_DATE_4 DATE,
LC_FREE_DATE_5 DATE,
LC_FREE_AMOUNT_1 NUMERIC(11,2),
LC_FREE_AMOUNT_2 NUMERIC(11,2),
LC_FREE_AMOUNT_3 NUMERIC(11,2),
LC_FREE_AMOUNT_4 NUMERIC(11,2),
LC_FREE_AMOUNT_5 NUMERIC(11,2),
LC_FREE_FLAG_1 CHARACTER(1),
LC_FREE_FLAG_2 CHARACTER(1),
LC_FREE_FLAG_3 CHARACTER(1),
LC_FREE_FLAG_4 CHARACTER(1),
LC_FREE_FLAG_5 CHARACTER(1),
LC_FREE_TEXT_1 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_2 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_3 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_4 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_5 NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
LC_FREE_NUMERIC_1 NUMERIC(11,2),
LC_FREE_NUMERIC_2 NUMERIC(11,2),
LC_FREE_NUMERIC_3 NUMERIC(11,2),
LC_FREE_NUMERIC_4 NUMERIC(11,2),
LC_FREE_NUMERIC_5 NUMERIC(11,2),
LC_FREE_ATTRIBUTES_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."LC_FREE_ATTRIBUTES" ( -- Number of Columns =


29
"LOCAL_KEY_LC_FREE_ATTRIBUTES" NATIONAL CHARACTER VARYING(125),
"LC_FREE_DATE_1" DATE,
"LC_FREE_DATE_2" DATE,
"LC_FREE_DATE_3" DATE,
"LC_FREE_DATE_4" DATE,
"LC_FREE_DATE_5" DATE,
"LC_FREE_AMOUNT_1" NUMERIC(11,2),
"LC_FREE_AMOUNT_2" NUMERIC(11,2),
"LC_FREE_AMOUNT_3" NUMERIC(11,2),
"LC_FREE_AMOUNT_4" NUMERIC(11,2),
"LC_FREE_AMOUNT_5" NUMERIC(11,2),
"LC_FREE_FLAG_1" CHARACTER(1),
"LC_FREE_FLAG_2" CHARACTER(1),
"LC_FREE_FLAG_3" CHARACTER(1),
"LC_FREE_FLAG_4" CHARACTER(1),
"LC_FREE_FLAG_5" CHARACTER(1),
"LC_FREE_TEXT_1" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_2" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_3" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_4" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_5" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"LC_FREE_NUMERIC_1" NUMERIC(11,2),
"LC_FREE_NUMERIC_2" NUMERIC(11,2),
"LC_FREE_NUMERIC_3" NUMERIC(11,2),
"LC_FREE_NUMERIC_4" NUMERIC(11,2),
"LC_FREE_NUMERIC_5" NUMERIC(11,2),
"LC_FREE_ATTRIBUTES_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
PRIMARY KEY ( "LEASE_CONTRACT_VEHICLE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES ( -- Number of Columns = 29


LOCAL_KEY_LC_FREE_ATTRIBUTES NATIONAL CHARACTER VARYING(125),
LC_FREE_DATE_1 DATE,
LC_FREE_DATE_2 DATE,
LC_FREE_DATE_3 DATE,
LC_FREE_DATE_4 DATE,
LC_FREE_DATE_5 DATE,
LC_FREE_AMOUNT_1 NUMERIC(11,2),
LC_FREE_AMOUNT_2 NUMERIC(11,2),
LC_FREE_AMOUNT_3 NUMERIC(11,2),
LC_FREE_AMOUNT_4 NUMERIC(11,2),
LC_FREE_AMOUNT_5 NUMERIC(11,2),
LC_FREE_FLAG_1 CHARACTER(1),
LC_FREE_FLAG_2 CHARACTER(1),
LC_FREE_FLAG_3 CHARACTER(1),
LC_FREE_FLAG_4 CHARACTER(1),
LC_FREE_FLAG_5 CHARACTER(1),
LC_FREE_TEXT_1 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_2 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_3 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_4 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_5 NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
LC_FREE_NUMERIC_1 NUMERIC(11,2),
LC_FREE_NUMERIC_2 NUMERIC(11,2),
LC_FREE_NUMERIC_3 NUMERIC(11,2),
LC_FREE_NUMERIC_4 NUMERIC(11,2),
LC_FREE_NUMERIC_5 NUMERIC(11,2),
LC_FREE_ATTRIBUTES_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
PRIMARY KEY ( LEASE_CONTRACT_VEHICLE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES ( -- Number of Columns =


29
LOCAL_KEY_LC_FREE_ATTRIBUTES NATIONAL CHARACTER VARYING(125),
LC_FREE_DATE_1 DATE,
LC_FREE_DATE_2 DATE,
LC_FREE_DATE_3 DATE,
LC_FREE_DATE_4 DATE,
LC_FREE_DATE_5 DATE,
LC_FREE_AMOUNT_1 NUMERIC(11,2),
LC_FREE_AMOUNT_2 NUMERIC(11,2),
LC_FREE_AMOUNT_3 NUMERIC(11,2),
LC_FREE_AMOUNT_4 NUMERIC(11,2),
LC_FREE_AMOUNT_5 NUMERIC(11,2),
LC_FREE_FLAG_1 CHARACTER(1),
LC_FREE_FLAG_2 CHARACTER(1),
LC_FREE_FLAG_3 CHARACTER(1),
LC_FREE_FLAG_4 CHARACTER(1),
LC_FREE_FLAG_5 CHARACTER(1),
LC_FREE_TEXT_1 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_2 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_3 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_4 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_5 NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
LC_FREE_NUMERIC_1 NUMERIC(11,2),
LC_FREE_NUMERIC_2 NUMERIC(11,2),
LC_FREE_NUMERIC_3 NUMERIC(11,2),
LC_FREE_NUMERIC_4 NUMERIC(11,2),
LC_FREE_NUMERIC_5 NUMERIC(11,2),
LC_FREE_ATTRIBUTES_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
PRIMARY KEY ( LEASE_CONTRACT_VEHICLE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES ( -- Number of Columns = 29


LOCAL_KEY_LC_FREE_ATTRIBUTES NATIONAL CHARACTER VARYING(125),
LC_FREE_DATE_1 DATE,
LC_FREE_DATE_2 DATE,
LC_FREE_DATE_3 DATE,
LC_FREE_DATE_4 DATE,
LC_FREE_DATE_5 DATE,
LC_FREE_AMOUNT_1 NUMERIC(11,2),
LC_FREE_AMOUNT_2 NUMERIC(11,2),
LC_FREE_AMOUNT_3 NUMERIC(11,2),
LC_FREE_AMOUNT_4 NUMERIC(11,2),
LC_FREE_AMOUNT_5 NUMERIC(11,2),
LC_FREE_FLAG_1 CHARACTER(1),
LC_FREE_FLAG_2 CHARACTER(1),
LC_FREE_FLAG_3 CHARACTER(1),
LC_FREE_FLAG_4 CHARACTER(1),
LC_FREE_FLAG_5 CHARACTER(1),
LC_FREE_TEXT_1 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_2 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_3 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_4 NATIONAL CHARACTER VARYING(125),
LC_FREE_TEXT_5 NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
LC_FREE_NUMERIC_1 NUMERIC(11,2),
LC_FREE_NUMERIC_2 NUMERIC(11,2),
LC_FREE_NUMERIC_3 NUMERIC(11,2),
LC_FREE_NUMERIC_4 NUMERIC(11,2),
LC_FREE_NUMERIC_5 NUMERIC(11,2),
LC_FREE_ATTRIBUTES_ID BIGINT not null,
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
PRIMARY KEY ( LEASE_CONTRACT_VEHICLE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."LC_FREE_ATTRIBUTES" ( -- Number of Columns =


29
"LOCAL_KEY_LC_FREE_ATTRIBUTES" NATIONAL CHARACTER VARYING(125),
"LC_FREE_DATE_1" DATE,
"LC_FREE_DATE_2" DATE,
"LC_FREE_DATE_3" DATE,
"LC_FREE_DATE_4" DATE,
"LC_FREE_DATE_5" DATE,
"LC_FREE_AMOUNT_1" NUMERIC(11,2),
"LC_FREE_AMOUNT_2" NUMERIC(11,2),
"LC_FREE_AMOUNT_3" NUMERIC(11,2),
"LC_FREE_AMOUNT_4" NUMERIC(11,2),
"LC_FREE_AMOUNT_5" NUMERIC(11,2),
"LC_FREE_FLAG_1" CHARACTER(1),
"LC_FREE_FLAG_2" CHARACTER(1),
"LC_FREE_FLAG_3" CHARACTER(1),
"LC_FREE_FLAG_4" CHARACTER(1),
"LC_FREE_FLAG_5" CHARACTER(1),
"LC_FREE_TEXT_1" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_2" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_3" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_4" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_5" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"LC_FREE_NUMERIC_1" NUMERIC(11,2),
"LC_FREE_NUMERIC_2" NUMERIC(11,2),
"LC_FREE_NUMERIC_3" NUMERIC(11,2),
"LC_FREE_NUMERIC_4" NUMERIC(11,2),
"LC_FREE_NUMERIC_5" NUMERIC(11,2),
"LC_FREE_ATTRIBUTES_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
PRIMARY KEY ( "LEASE_CONTRACT_VEHICLE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."LC_FREE_ATTRIBUTES" ( -- Number of Columns =


29
"LOCAL_KEY_LC_FREE_ATTRIBUTES" NATIONAL CHARACTER VARYING(125),
"LC_FREE_DATE_1" DATE,
"LC_FREE_DATE_2" DATE,
"LC_FREE_DATE_3" DATE,
"LC_FREE_DATE_4" DATE,
"LC_FREE_DATE_5" DATE,
"LC_FREE_AMOUNT_1" NUMERIC(11,2),
"LC_FREE_AMOUNT_2" NUMERIC(11,2),
"LC_FREE_AMOUNT_3" NUMERIC(11,2),
"LC_FREE_AMOUNT_4" NUMERIC(11,2),
"LC_FREE_AMOUNT_5" NUMERIC(11,2),
"LC_FREE_FLAG_1" CHARACTER(1),
"LC_FREE_FLAG_2" CHARACTER(1),
"LC_FREE_FLAG_3" CHARACTER(1),
"LC_FREE_FLAG_4" CHARACTER(1),
"LC_FREE_FLAG_5" CHARACTER(1),
"LC_FREE_TEXT_1" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_2" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_3" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_4" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_5" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"LC_FREE_NUMERIC_1" NUMERIC(11,2),
"LC_FREE_NUMERIC_2" NUMERIC(11,2),
"LC_FREE_NUMERIC_3" NUMERIC(11,2),
"LC_FREE_NUMERIC_4" NUMERIC(11,2),
"LC_FREE_NUMERIC_5" NUMERIC(11,2),
"LC_FREE_ATTRIBUTES_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
PRIMARY KEY ( "LEASE_CONTRACT_VEHICLE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."LC_FREE_ATTRIBUTES" ( -- Number of Columns =


29
"LOCAL_KEY_LC_FREE_ATTRIBUTES" NATIONAL CHARACTER VARYING(125),
"LC_FREE_DATE_1" DATE,
"LC_FREE_DATE_2" DATE,
"LC_FREE_DATE_3" DATE,
"LC_FREE_DATE_4" DATE,
"LC_FREE_DATE_5" DATE,
"LC_FREE_AMOUNT_1" NUMERIC(11,2),
"LC_FREE_AMOUNT_2" NUMERIC(11,2),
"LC_FREE_AMOUNT_3" NUMERIC(11,2),
"LC_FREE_AMOUNT_4" NUMERIC(11,2),
"LC_FREE_AMOUNT_5" NUMERIC(11,2),
"LC_FREE_FLAG_1" CHARACTER(1),
"LC_FREE_FLAG_2" CHARACTER(1),
"LC_FREE_FLAG_3" CHARACTER(1),
"LC_FREE_FLAG_4" CHARACTER(1),
"LC_FREE_FLAG_5" CHARACTER(1),
"LC_FREE_TEXT_1" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_2" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_3" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_4" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_5" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"LC_FREE_NUMERIC_1" NUMERIC(11,2),
"LC_FREE_NUMERIC_2" NUMERIC(11,2),
"LC_FREE_NUMERIC_3" NUMERIC(11,2),
"LC_FREE_NUMERIC_4" NUMERIC(11,2),
"LC_FREE_NUMERIC_5" NUMERIC(11,2),
"LC_FREE_ATTRIBUTES_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
PRIMARY KEY ( "LEASE_CONTRACT_VEHICLE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."LC_FREE_ATTRIBUTES" ( -- Number of Columns =


29
"LOCAL_KEY_LC_FREE_ATTRIBUTES" NATIONAL CHARACTER VARYING(125),
"LC_FREE_DATE_1" DATE,
"LC_FREE_DATE_2" DATE,
"LC_FREE_DATE_3" DATE,
"LC_FREE_DATE_4" DATE,
"LC_FREE_DATE_5" DATE,
"LC_FREE_AMOUNT_1" NUMERIC(11,2),
"LC_FREE_AMOUNT_2" NUMERIC(11,2),
"LC_FREE_AMOUNT_3" NUMERIC(11,2),
"LC_FREE_AMOUNT_4" NUMERIC(11,2),
"LC_FREE_AMOUNT_5" NUMERIC(11,2),
"LC_FREE_FLAG_1" CHARACTER(1),
"LC_FREE_FLAG_2" CHARACTER(1),
"LC_FREE_FLAG_3" CHARACTER(1),
"LC_FREE_FLAG_4" CHARACTER(1),
"LC_FREE_FLAG_5" CHARACTER(1),
"LC_FREE_TEXT_1" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_2" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_3" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_4" NATIONAL CHARACTER VARYING(125),
"LC_FREE_TEXT_5" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"LC_FREE_NUMERIC_1" NUMERIC(11,2),
"LC_FREE_NUMERIC_2" NUMERIC(11,2),
"LC_FREE_NUMERIC_3" NUMERIC(11,2),
"LC_FREE_NUMERIC_4" NUMERIC(11,2),
"LC_FREE_NUMERIC_5" NUMERIC(11,2),
"LC_FREE_ATTRIBUTES_ID" BIGINT not null,
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
PRIMARY KEY ( "LEASE_CONTRACT_VEHICLE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."LEASE_CONTRACT_INITIAL_AMOUNTS" ( -- Number


of Columns = 42
"LOCAL_KEY_LEASE_CONTRACT" NATIONAL CHARACTER VARYING(125),
"INC_DURATION" INTEGER,
"INC_MILEAGE" INTEGER,
"INC_COBF" NUMERIC(6,3),
"INC_BUDG_INVESTMENT_VALUE" NUMERIC(11,2),
"INC_STANDARD_RV_AMOUNT" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT" NUMERIC(11,2),
"INC_BUDG_MAINTENANCE_AMOUNT" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_MAINT_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_MAINT_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_MILEAGEKM" INTEGER,
"INC_BUDG_INVESTMENT_VALUE_EUR" NUMERIC(11,2),
"INC_STANDARD_RV_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_SLA_MRG_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_LC_MRG_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_MAINTENANCE_AMNT_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_SLA_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_MAINT_SLA_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_LC_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_MAINT_LC_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_LC_MRGN_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"INC_STANDARD_MAINT_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_TYRE_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_REPAIR_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_MAINT_AMOUNT_EUR" NUMERIC(11,2),
"INC_STANDARD_TYRE_AMOUNT_EUR" NUMERIC(11,2),
"INC_STANDARD_REPAIR_AMOUNT_EUR" NUMERIC(11,2),
"LEASE_CONTRACT_ID" BIGINT,
"LEASE_CONTRACT_INITIALS_ID" BIGINT not null,
PRIMARY KEY ( "LEASE_CONTRACT_INITIALS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS ( -- Number of


Columns = 42
LOCAL_KEY_LEASE_CONTRACT NATIONAL CHARACTER VARYING(125),
INC_DURATION INTEGER,
INC_MILEAGE INTEGER,
INC_COBF NUMERIC(6,3),
INC_BUDG_INVESTMENT_VALUE NUMERIC(11,2),
INC_STANDARD_RV_AMOUNT NUMERIC(11,2),
INC_BUDG_RV_AMOUNT NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT NUMERIC(11,2),
INC_BUDG_MAINTENANCE_AMOUNT NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_MAINT_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_BUDG_MAINT_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_MILEAGEKM INTEGER,
INC_BUDG_INVESTMENT_VALUE_EUR NUMERIC(11,2),
INC_STANDARD_RV_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_SLA_MRG_EUR NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_LC_MRG_EUR NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_MAINTENANCE_AMNT_EUR NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_REPAIR_SLA_MRGN_EUR NUMERIC(11,2),
INC_BUDG_MAINT_SLA_MRGN_EUR NUMERIC(11,2),
INC_BUDG_TYRE_MRGN_EUR NUMERIC(11,2),
INC_BUDG_REPAIR_LC_MRGN_EUR NUMERIC(11,2),
INC_BUDG_MAINT_LC_MRGN_EUR NUMERIC(11,2),
INC_BUDG_TYRE_LC_MRGN_EUR NUMERIC(11,2),
LOAD_DATE DATE,
INC_STANDARD_MAINT_AMOUNT NUMERIC(11,2),
INC_STANDARD_TYRE_AMOUNT NUMERIC(11,2),
INC_STANDARD_REPAIR_AMOUNT NUMERIC(11,2),
INC_STANDARD_MAINT_AMOUNT_EUR NUMERIC(11,2),
INC_STANDARD_TYRE_AMOUNT_EUR NUMERIC(11,2),
INC_STANDARD_REPAIR_AMOUNT_EUR NUMERIC(11,2),
LEASE_CONTRACT_ID BIGINT,
LEASE_CONTRACT_INITIALS_ID BIGINT not null,
PRIMARY KEY ( LEASE_CONTRACT_INITIALS_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS ( -- Number of


Columns = 42
LOCAL_KEY_LEASE_CONTRACT NATIONAL CHARACTER VARYING(125),
INC_DURATION INTEGER,
INC_MILEAGE INTEGER,
INC_COBF NUMERIC(6,3),
INC_BUDG_INVESTMENT_VALUE NUMERIC(11,2),
INC_STANDARD_RV_AMOUNT NUMERIC(11,2),
INC_BUDG_RV_AMOUNT NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT NUMERIC(11,2),
INC_BUDG_MAINTENANCE_AMOUNT NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_MAINT_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_BUDG_MAINT_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_MILEAGEKM INTEGER,
INC_BUDG_INVESTMENT_VALUE_EUR NUMERIC(11,2),
INC_STANDARD_RV_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_SLA_MRG_EUR NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_LC_MRG_EUR NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_MAINTENANCE_AMNT_EUR NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_REPAIR_SLA_MRGN_EUR NUMERIC(11,2),
INC_BUDG_MAINT_SLA_MRGN_EUR NUMERIC(11,2),
INC_BUDG_TYRE_MRGN_EUR NUMERIC(11,2),
INC_BUDG_REPAIR_LC_MRGN_EUR NUMERIC(11,2),
INC_BUDG_MAINT_LC_MRGN_EUR NUMERIC(11,2),
INC_BUDG_TYRE_LC_MRGN_EUR NUMERIC(11,2),
LOAD_DATE DATE,
INC_STANDARD_MAINT_AMOUNT NUMERIC(11,2),
INC_STANDARD_TYRE_AMOUNT NUMERIC(11,2),
INC_STANDARD_REPAIR_AMOUNT NUMERIC(11,2),
INC_STANDARD_MAINT_AMOUNT_EUR NUMERIC(11,2),
INC_STANDARD_TYRE_AMOUNT_EUR NUMERIC(11,2),
INC_STANDARD_REPAIR_AMOUNT_EUR NUMERIC(11,2),
LEASE_CONTRACT_ID BIGINT,
LEASE_CONTRACT_INITIALS_ID BIGINT not null
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."LEASE_CONTRACT_INITIAL_AMOUNTS" ( -- Number


of Columns = 42
"LOCAL_KEY_LEASE_CONTRACT" NATIONAL CHARACTER VARYING(125),
"INC_DURATION" INTEGER,
"INC_MILEAGE" INTEGER,
"INC_COBF" NUMERIC(6,3),
"INC_BUDG_INVESTMENT_VALUE" NUMERIC(11,2),
"INC_STANDARD_RV_AMOUNT" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT" NUMERIC(11,2),
"INC_BUDG_MAINTENANCE_AMOUNT" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_MAINT_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_MAINT_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_MILEAGEKM" INTEGER,
"INC_BUDG_INVESTMENT_VALUE_EUR" NUMERIC(11,2),
"INC_STANDARD_RV_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_SLA_MRG_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_LC_MRG_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_MAINTENANCE_AMNT_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_SLA_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_MAINT_SLA_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_LC_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_MAINT_LC_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_LC_MRGN_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"INC_STANDARD_MAINT_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_TYRE_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_REPAIR_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_MAINT_AMOUNT_EUR" NUMERIC(11,2),
"INC_STANDARD_TYRE_AMOUNT_EUR" NUMERIC(11,2),
"INC_STANDARD_REPAIR_AMOUNT_EUR" NUMERIC(11,2),
"LEASE_CONTRACT_ID" BIGINT,
"LEASE_CONTRACT_INITIALS_ID" BIGINT not null,
PRIMARY KEY ( "LEASE_CONTRACT_INITIALS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS ( -- Number of


Columns = 42
LOCAL_KEY_LEASE_CONTRACT NATIONAL CHARACTER VARYING(125),
INC_DURATION INTEGER,
INC_MILEAGE INTEGER,
INC_COBF NUMERIC(6,3),
INC_BUDG_INVESTMENT_VALUE NUMERIC(11,2),
INC_STANDARD_RV_AMOUNT NUMERIC(11,2),
INC_BUDG_RV_AMOUNT NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT NUMERIC(11,2),
INC_BUDG_MAINTENANCE_AMOUNT NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_MAINT_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_BUDG_MAINT_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_MILEAGEKM INTEGER,
INC_BUDG_INVESTMENT_VALUE_EUR NUMERIC(11,2),
INC_STANDARD_RV_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_SLA_MRG_EUR NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_LC_MRG_EUR NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_MAINTENANCE_AMNT_EUR NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_REPAIR_SLA_MRGN_EUR NUMERIC(11,2),
INC_BUDG_MAINT_SLA_MRGN_EUR NUMERIC(11,2),
INC_BUDG_TYRE_MRGN_EUR NUMERIC(11,2),
INC_BUDG_REPAIR_LC_MRGN_EUR NUMERIC(11,2),
INC_BUDG_MAINT_LC_MRGN_EUR NUMERIC(11,2),
INC_BUDG_TYRE_LC_MRGN_EUR NUMERIC(11,2),
LOAD_DATE DATE,
INC_STANDARD_MAINT_AMOUNT NUMERIC(11,2),
INC_STANDARD_TYRE_AMOUNT NUMERIC(11,2),
INC_STANDARD_REPAIR_AMOUNT NUMERIC(11,2),
INC_STANDARD_MAINT_AMOUNT_EUR NUMERIC(11,2),
INC_STANDARD_TYRE_AMOUNT_EUR NUMERIC(11,2),
INC_STANDARD_REPAIR_AMOUNT_EUR NUMERIC(11,2),
LEASE_CONTRACT_ID BIGINT,
LEASE_CONTRACT_INITIALS_ID BIGINT not null,
PRIMARY KEY ( LEASE_CONTRACT_INITIALS_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS ( -- Number of


Columns = 42
LOCAL_KEY_LEASE_CONTRACT NATIONAL CHARACTER VARYING(125),
INC_DURATION INTEGER,
INC_MILEAGE INTEGER,
INC_COBF NUMERIC(6,3),
INC_BUDG_INVESTMENT_VALUE NUMERIC(11,2),
INC_STANDARD_RV_AMOUNT NUMERIC(11,2),
INC_BUDG_RV_AMOUNT NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT NUMERIC(11,2),
INC_BUDG_MAINTENANCE_AMOUNT NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_MAINT_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_BUDG_MAINT_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_MILEAGEKM INTEGER,
INC_BUDG_INVESTMENT_VALUE_EUR NUMERIC(11,2),
INC_STANDARD_RV_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_SLA_MRG_EUR NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_LC_MRG_EUR NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_MAINTENANCE_AMNT_EUR NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_REPAIR_SLA_MRGN_EUR NUMERIC(11,2),
INC_BUDG_MAINT_SLA_MRGN_EUR NUMERIC(11,2),
INC_BUDG_TYRE_MRGN_EUR NUMERIC(11,2),
INC_BUDG_REPAIR_LC_MRGN_EUR NUMERIC(11,2),
INC_BUDG_MAINT_LC_MRGN_EUR NUMERIC(11,2),
INC_BUDG_TYRE_LC_MRGN_EUR NUMERIC(11,2),
LOAD_DATE DATE,
INC_STANDARD_MAINT_AMOUNT NUMERIC(11,2),
INC_STANDARD_TYRE_AMOUNT NUMERIC(11,2),
INC_STANDARD_REPAIR_AMOUNT NUMERIC(11,2),
INC_STANDARD_MAINT_AMOUNT_EUR NUMERIC(11,2),
INC_STANDARD_TYRE_AMOUNT_EUR NUMERIC(11,2),
INC_STANDARD_REPAIR_AMOUNT_EUR NUMERIC(11,2),
LEASE_CONTRACT_ID BIGINT,
LEASE_CONTRACT_INITIALS_ID BIGINT not null,
PRIMARY KEY ( LEASE_CONTRACT_INITIALS_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS ( -- Number of


Columns = 42
LOCAL_KEY_LEASE_CONTRACT NATIONAL CHARACTER VARYING(125),
INC_DURATION INTEGER,
INC_MILEAGE INTEGER,
INC_COBF NUMERIC(6,3),
INC_BUDG_INVESTMENT_VALUE NUMERIC(11,2),
INC_STANDARD_RV_AMOUNT NUMERIC(11,2),
INC_BUDG_RV_AMOUNT NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT NUMERIC(11,2),
INC_BUDG_MAINTENANCE_AMOUNT NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_MAINT_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT_SLA_MARGIN NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_BUDG_MAINT_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT_LC_MARGIN NUMERIC(11,2),
INC_MILEAGEKM INTEGER,
INC_BUDG_INVESTMENT_VALUE_EUR NUMERIC(11,2),
INC_STANDARD_RV_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_SLA_MRG_EUR NUMERIC(11,2),
INC_BUDG_RV_AMOUNT_LC_MRG_EUR NUMERIC(11,2),
INC_BUDG_REPAIR_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_MAINTENANCE_AMNT_EUR NUMERIC(11,2),
INC_BUDG_TYRE_AMOUNT_EUR NUMERIC(11,2),
INC_BUDG_REPAIR_SLA_MRGN_EUR NUMERIC(11,2),
INC_BUDG_MAINT_SLA_MRGN_EUR NUMERIC(11,2),
INC_BUDG_TYRE_MRGN_EUR NUMERIC(11,2),
INC_BUDG_REPAIR_LC_MRGN_EUR NUMERIC(11,2),
INC_BUDG_MAINT_LC_MRGN_EUR NUMERIC(11,2),
INC_BUDG_TYRE_LC_MRGN_EUR NUMERIC(11,2),
LOAD_DATE DATE,
INC_STANDARD_MAINT_AMOUNT NUMERIC(11,2),
INC_STANDARD_TYRE_AMOUNT NUMERIC(11,2),
INC_STANDARD_REPAIR_AMOUNT NUMERIC(11,2),
INC_STANDARD_MAINT_AMOUNT_EUR NUMERIC(11,2),
INC_STANDARD_TYRE_AMOUNT_EUR NUMERIC(11,2),
INC_STANDARD_REPAIR_AMOUNT_EUR NUMERIC(11,2),
LEASE_CONTRACT_ID BIGINT,
LEASE_CONTRACT_INITIALS_ID BIGINT not null,
PRIMARY KEY ( LEASE_CONTRACT_INITIALS_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."LEASE_CONTRACT_INITIAL_AMOUNTS" ( -- Number


of Columns = 42
"LOCAL_KEY_LEASE_CONTRACT" NATIONAL CHARACTER VARYING(125),
"INC_DURATION" INTEGER,
"INC_MILEAGE" INTEGER,
"INC_COBF" NUMERIC(6,3),
"INC_BUDG_INVESTMENT_VALUE" NUMERIC(11,2),
"INC_STANDARD_RV_AMOUNT" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT" NUMERIC(11,2),
"INC_BUDG_MAINTENANCE_AMOUNT" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_MAINT_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_MAINT_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_MILEAGEKM" INTEGER,
"INC_BUDG_INVESTMENT_VALUE_EUR" NUMERIC(11,2),
"INC_STANDARD_RV_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_SLA_MRG_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_LC_MRG_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_MAINTENANCE_AMNT_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_SLA_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_MAINT_SLA_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_LC_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_MAINT_LC_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_LC_MRGN_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"INC_STANDARD_MAINT_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_TYRE_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_REPAIR_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_MAINT_AMOUNT_EUR" NUMERIC(11,2),
"INC_STANDARD_TYRE_AMOUNT_EUR" NUMERIC(11,2),
"INC_STANDARD_REPAIR_AMOUNT_EUR" NUMERIC(11,2),
"LEASE_CONTRACT_ID" BIGINT,
"LEASE_CONTRACT_INITIALS_ID" BIGINT not null,
PRIMARY KEY ( "LEASE_CONTRACT_INITIALS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."LEASE_CONTRACT_INITIAL_AMOUNTS" ( -- Number


of Columns = 42
"LOCAL_KEY_LEASE_CONTRACT" NATIONAL CHARACTER VARYING(125),
"INC_DURATION" INTEGER,
"INC_MILEAGE" INTEGER,
"INC_COBF" NUMERIC(6,3),
"INC_BUDG_INVESTMENT_VALUE" NUMERIC(11,2),
"INC_STANDARD_RV_AMOUNT" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT" NUMERIC(11,2),
"INC_BUDG_MAINTENANCE_AMOUNT" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_MAINT_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_MAINT_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_MILEAGEKM" INTEGER,
"INC_BUDG_INVESTMENT_VALUE_EUR" NUMERIC(11,2),
"INC_STANDARD_RV_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_SLA_MRG_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_LC_MRG_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_MAINTENANCE_AMNT_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_SLA_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_MAINT_SLA_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_LC_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_MAINT_LC_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_LC_MRGN_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"INC_STANDARD_MAINT_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_TYRE_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_REPAIR_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_MAINT_AMOUNT_EUR" NUMERIC(11,2),
"INC_STANDARD_TYRE_AMOUNT_EUR" NUMERIC(11,2),
"INC_STANDARD_REPAIR_AMOUNT_EUR" NUMERIC(11,2),
"LEASE_CONTRACT_ID" BIGINT,
"LEASE_CONTRACT_INITIALS_ID" BIGINT not null,
PRIMARY KEY ( "LEASE_CONTRACT_INITIALS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."LEASE_CONTRACT_INITIAL_AMOUNTS" ( -- Number


of Columns = 42
"LOCAL_KEY_LEASE_CONTRACT" NATIONAL CHARACTER VARYING(125),
"INC_DURATION" INTEGER,
"INC_MILEAGE" INTEGER,
"INC_COBF" NUMERIC(6,3),
"INC_BUDG_INVESTMENT_VALUE" NUMERIC(11,2),
"INC_STANDARD_RV_AMOUNT" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT" NUMERIC(11,2),
"INC_BUDG_MAINTENANCE_AMOUNT" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_MAINT_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_MAINT_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_MILEAGEKM" INTEGER,
"INC_BUDG_INVESTMENT_VALUE_EUR" NUMERIC(11,2),
"INC_STANDARD_RV_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_SLA_MRG_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_LC_MRG_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_MAINTENANCE_AMNT_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_SLA_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_MAINT_SLA_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_LC_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_MAINT_LC_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_LC_MRGN_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"INC_STANDARD_MAINT_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_TYRE_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_REPAIR_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_MAINT_AMOUNT_EUR" NUMERIC(11,2),
"INC_STANDARD_TYRE_AMOUNT_EUR" NUMERIC(11,2),
"INC_STANDARD_REPAIR_AMOUNT_EUR" NUMERIC(11,2),
"LEASE_CONTRACT_ID" BIGINT,
"LEASE_CONTRACT_INITIALS_ID" BIGINT not null,
PRIMARY KEY ( "LEASE_CONTRACT_INITIALS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."LEASE_CONTRACT_INITIAL_AMOUNTS" ( -- Number


of Columns = 42
"LOCAL_KEY_LEASE_CONTRACT" NATIONAL CHARACTER VARYING(125),
"INC_DURATION" INTEGER,
"INC_MILEAGE" INTEGER,
"INC_COBF" NUMERIC(6,3),
"INC_BUDG_INVESTMENT_VALUE" NUMERIC(11,2),
"INC_STANDARD_RV_AMOUNT" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT" NUMERIC(11,2),
"INC_BUDG_MAINTENANCE_AMOUNT" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_MAINT_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_SLA_MARGIN" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_MAINT_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_LC_MARGIN" NUMERIC(11,2),
"INC_MILEAGEKM" INTEGER,
"INC_BUDG_INVESTMENT_VALUE_EUR" NUMERIC(11,2),
"INC_STANDARD_RV_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_SLA_MRG_EUR" NUMERIC(11,2),
"INC_BUDG_RV_AMOUNT_LC_MRG_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_MAINTENANCE_AMNT_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_AMOUNT_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_SLA_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_MAINT_SLA_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_REPAIR_LC_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_MAINT_LC_MRGN_EUR" NUMERIC(11,2),
"INC_BUDG_TYRE_LC_MRGN_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"INC_STANDARD_MAINT_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_TYRE_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_REPAIR_AMOUNT" NUMERIC(11,2),
"INC_STANDARD_MAINT_AMOUNT_EUR" NUMERIC(11,2),
"INC_STANDARD_TYRE_AMOUNT_EUR" NUMERIC(11,2),
"INC_STANDARD_REPAIR_AMOUNT_EUR" NUMERIC(11,2),
"LEASE_CONTRACT_ID" BIGINT,
"LEASE_CONTRACT_INITIALS_ID" BIGINT not null,
PRIMARY KEY ( "LEASE_CONTRACT_INITIALS_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE ( -- Number of Columns


= 228
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"LC_LEASE_CONTRACT_NUMBER" NATIONAL CHARACTER VARYING(125),
"LC_COST_CENTER_NAME" NATIONAL CHARACTER VARYING(125),
"LC_SLB_FLAG" CHARACTER(1),
"LC_START_DATE_LEASECONTRACT" DATE,
"LC_END_DATE_LEASECONTRACT" DATE,
"LC_BUDG_END_DATE_LEASECONTRACT" DATE,
"LC_STARTMILEAGELEASECONTRACTKM" NUMERIC(7,0),
"LC_ENDMILEAGELEASECONTRACT" NUMERIC(7,0),
"LC_CONTRACT_DURATION" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE" NUMERIC(7,0),
"LC_DISCONMONTHLY_LEASEINST" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALMENT" NUMERIC(11,2),
"LC_MVA_FEE_OVER_MILEAGE" NUMERIC(11,2),
"LC_MVA_REPAY_UNDER_MILEAGE" NUMERIC(11,2),
"LC_ACTUAL_INVEST_AMOUNT" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AMOUNT" NUMERIC(11,2),
"LC_INVEST_INTEREST_BASE" NUMERIC(11,2),
"LC_PREPAYMNT_INTEREST_BASE" NUMERIC(11,2),
"LC_UFWT_AMOUNT" NUMERIC(11,2),
"LC_EXTENSION_PENALTY" NUMERIC(11,2),
"LC_EARLY_TERM_PENALTY" NUMERIC(11,2),
"VEH_VEHICLE_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_MODEL_TYPE_DESCRIPTION" NATIONAL CHARACTER VARYING(125),
"VEH_CATALOGUE_PRICE" NUMERIC(11,2),
"VEH_CATALOGUE_PRICE_EUR" NUMERIC(11,2),
"VEH_ACTUAL_DISCOUNT_PERC" NUMERIC(6,3),
"VEH_COMMERCIAL_DISCNT_AMT" NUMERIC(11,2),
"VEH_COMMERCIAL_DISCNT_AMT_EUR" NUMERIC(11,2),
"VEH_TAX_AMT_NON_RECLAIM" NUMERIC(11,2),
"VEH_TAX_AMT_NON_RECLAIM_EUR" NUMERIC(11,2),
"VEH_VAT_PERCENTAGE" NUMERIC(6,3),
"VEH_TOT_OPTIONS_AMT" NUMERIC(11,2),
"VEH_TOTAL_OPTIONS_AMT_EUR" NUMERIC(11,2),
"VEH_TOT_ACCESSOIRIES_AMT" NUMERIC(11,2),
"VEH_TOT_ACCESSOIRIES_AMT_EUR" NUMERIC(11,2),
"VEH_DELIVERY_COSTS" NUMERIC(11,2),
"VEH_DELIVERY_COSTS_EUR" NUMERIC(11,2),
"VEH_REGISTRATION_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_REGISTRATION_DATE" DATE,
"VEH_VEH_IDENTIFICATION_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_NUMBER_OF_DOORS" NUMERIC(3,0),
"VEH_ENGINE_CAPACITY" NUMERIC(5,0),
"VEH_ENGINE_POWER" NUMERIC(5,0),
"VEH_NUMBER_OF_CYLINDERS" NUMERIC(3,0),
"VEH_TARE_WEIGHT" NUMERIC(5,0),
"VEH_GROSS_WEIGHT" NUMERIC(5,0),
"VEH_FUEL_CONSUMPT_MANUFACTURER" NUMERIC(7,2),
"VEH_EXTERNAL_REFERENCE" NATIONAL CHARACTER VARYING(125),
"VEH_TYRE_SIZE_AT_DELIVERY" NATIONAL CHARACTER VARYING(125),
"VEH_STANDARD_DISCOUNT_PERC" NUMERIC(6,3),
"LOAD_DATE" DATE,
"MNGSERV_TOT_RESIDUAL_VALUE" NUMERIC(11,2),
"MNGSERV_INTEREST_PERC_INVESTM" NUMERIC(6,3),
"MNGSERV_INTEREST_PERC_PREPAYM" NUMERIC(6,3),
"MNGSERV_TOT_RESIDUAL_VALUE_EUR" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALMENT_EUR" NUMERIC(11,2),
"LC_MVA_FEE_OVER_MILEAGE_EUR" NUMERIC(11,2),
"LC_MVA_REPAY_UNDER_MILEAGE_EUR" NUMERIC(11,2),
"LC_ACTUAL_INVEST_AMOUNT_EUR" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AMOUNT_EUR" NUMERIC(11,2),
"LC_INVEST_INTEREST_BASE_EUR" NUMERIC(11,2),
"LC_PREPAYMNT_INTEREST_BASE_EUR" NUMERIC(11,2),
"LC_UFWT_AMOUNT_EUR" NUMERIC(11,2),
"LC_EXTENSION_PENALTY_EUR" NUMERIC(11,2),
"LC_EARLY_TERM_PENALTY_EUR" NUMERIC(11,2),
"OR_ORDER_NUMBER" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_DATE" DATE,
"OR_ESTIMATED_DELIVERY_DATE" DATE,
"CUSTOMER_SLA_ID" BIGINT not null,
"LC_DRIVER_NUMBER" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_NAME" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_LEASE_CONTRACT" NATIONAL CHARACTER VARYING(125),
"VEH_LOCAL_KEY_VEHICLE" NATIONAL CHARACTER VARYING(125),
"OR_LOCAL_KEY_ORDER" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_COST_CENTER" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_DRIVER" NATIONAL CHARACTER VARYING(125),
"OR_LOCAL_KEY_ORDER_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER not null,
"CH_CONTRACT_TERMINATION_ID" INTEGER not null,
"CH_CONTRACT_STOP_REASON_ID" INTEGER not null,
"CH_REGISTRATION_STATUS_ID" INTEGER not null,
"CH_PURCHASED_BY_ID" INTEGER not null,
"CH_WINTER_TYRES_INCLUDED_ID" INTEGER not null,
"CH_MAKE_CODE_ID" INTEGER not null,
"CH_MODEL_CODE_ID" INTEGER not null,
"CH_BODY_STYLE_ID" INTEGER not null,
"CH_DRIVING_METHOD_ID" INTEGER not null,
"CH_EXTERIOR_COLOUR_ID" INTEGER not null,
"CH_EXTERIOR_COLOUR_TYPE_ID" INTEGER not null,
"CH_PRIMARY_FUEL_TYPE_ID" INTEGER not null,
"CH_TRANSMISSION_TYPE_ID" INTEGER not null,
"CH_UPHOLSTERY_TYPE_ID" INTEGER not null,
"CH_VEHICLE_TYPE_ID" INTEGER not null,
"CH_FLEET_REPORT_CATEGORY_ID" INTEGER not null,
"CH_PRODUCT_CATEGORY_TYPE_ID" INTEGER not null,
"PRODUCT_ID" BIGINT not null,
"LC_BOOK_VALUE" NUMERIC(11,2),
"CH_ASSET_TYPE_ID" INTEGER not null,
"CH_VEHICLE_SEGMENT_ID" INTEGER not null,
"CH_OEM_ID" INTEGER not null,
"LC_STARTMILEAGELEASECONTRACT" NUMERIC(7,0),
"LC_ENDMILEAGELEASECONTRACTKM" NUMERIC(7,0),
"LC_CONTRACT_MILEAGE_KM" NUMERIC(7,0),
"LC_BOOK_VALUE_EUR" NUMERIC(11,2),
"LC_DISCONMONTHLY_LEASEINST_EUR" NUMERIC(11,2),
"CH_VEHICLE_SEGMENT_LOCAL_ID" INTEGER not null,
"CH_MVA_SYSTEM_ID" INTEGER not null,
"CH_BUY_BACK_CODE" INTEGER not null,
"CH_RISK_RULING_CODE" INTEGER not null,
"CH_VEHICLE_GROUP_CODE" INTEGER not null,
"CH_DATA_SUPPLIER_VEHICLE_CODE" INTEGER not null,
"CH_OWN_DAMAGE_RISK_ID" INTEGER not null,
"CH_UFWT_TYPE_ID" INTEGER not null,
"CH_MVA_SETTLEMENT_ID" INTEGER not null,
"LC_CUSTOMER_DRIVER_ID" NATIONAL CHARACTER VARYING(125),
"VEH_CO2_LEVEL_COMBINED" NUMERIC(6,0),
"CH_SECONDARY_FUEL_TYPE" INTEGER not null,
"CH_NUMBER_OF_FORWARD_GEARS" INTEGER not null,
"VEH_INDICATOR_NEW_MODEL" CHARACTER(1),
"VEH_MODEL_END_DATE" DATE,
"VEH_MODEL_INTRO_DATE" DATE,
"VEH_MODEL_FACELIFT_INTRO_DATE" DATE,
"VEH_MODEL_FACELIFT_END_DATE" DATE,
"VEH_NUMBER_OF_SEATS" NUMERIC(2,0),
"LC_DRIVER_SET_SEND_DATE" DATE,
"LC_INTEREST_LOSS_AT_TERM" NUMERIC(11,2),
"LC_INTEREST_LOSS_AT_TERM_EUR" NUMERIC(11,2),
"LC_MVA_FEE_MIN_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MIN_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVA_FEE_MID_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MID_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVA_FEE_MAX_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MAX_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVAREPAY_MINUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MINUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVAREPAY_MIDUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MIDUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVAREPAY_MAXUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MAXUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVA_THRESHHIGH_OVER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THESHHIGH_UNDER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THRESHLOW_UNDER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THRESHLOW_OVER_MILEAGE" NUMERIC(7,0),
"LC_TERMINATION_PROCESS_DATE" DATE,
"LC_CREATION_DATE_LEASECONTRACT" DATE,
"LC_FORMAL_EXTENSION_APPLICABLE" NATIONAL CHARACTER VARYING(125),
"LC_ACTIVATION_DATE_FORMAL_EXT" DATE,
"LC_CONTRACT_DURATION_FORMAL_EX" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE_FORMAL_EXT" NUMERIC(7,0),
"LC_RESIDUAL_VALUE_FORM_EXT" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_FORM_EXT_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_ENG_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_ENG_DAM_AM_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_EXT_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_EXT_DAM_AM_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_INT_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_INT_DAM_AM_EUR" NUMERIC(11,2),
"LC_MVA_UM_LIMIT_PERCENTAGE" NUMERIC(6,3),
"LC_MVA_OM_LIMIT_PERCENTAGE" NUMERIC(6,3),
"LC_MVA_UM_FACTOR" NUMERIC(6,3),
"LC_MVA_OM_FACTOR" NUMERIC(6,3),
"CH_TYRE_WIDTH_FRONT" INTEGER not null,
"CH_TYRE_WIDTH_REAR" INTEGER not null,
"CH_TYRE_RIM_DIAM_FRONT" INTEGER not null,
"CH_TYRE_RIM_DIAM_REAR" INTEGER not null,
"VEH_CONSUMER_PRICE" NUMERIC(11,2),
"VEH_CONSUMER_PRICE_EUR" NUMERIC(11,2),
"VEH_LUXURY_TAX_AM" NUMERIC(11,2),
"VEH_LUXURY_TAX_AM_EUR" NUMERIC(11,2),
"VEH_ENROLMENT_TAX_AM" NUMERIC(11,2),
"VEH_ENROLMENT_TAX_AM_EUR" NUMERIC(11,2),
"LC_UFWT_TOTAL_ASSESSED_AM" NUMERIC(11,2),
"LC_UFWT_TOTAL_ASSESSED_AM_EUR" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_BASE" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_BASE_EUR" NUMERIC(11,2),
"LC_INSURANCE_LOSS_RATIO" NUMERIC(17,5),
"LC_LAST_KNOWN_MILEAGE" NUMERIC(7,0),
"LC_LAST_KNOWN_MILEAGE_DATE" DATE,
"LC_CONTRACT_DURATION_FP" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE_FP" NUMERIC(7,0),
"LC_MONTHLY_LEASEINSTALM_FP" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AM_FP" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALM_FP_EUR" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AM_FP_EUR" NUMERIC(11,2),
"LC_START_DATE_LEASECONTRACT_FP" DATE,
"LC_END_DATE_LEASECONTRACT_FP" DATE,
"OR_CREATION_DATE_ORDER" DATE,
"LC_REGISTRATIONDATE_START" DATE,
"LC_REGISTRATIONDT_TERMINATION" DATE,
"LC_MVA_DEPR_TO_BE_INVOICED" NUMERIC(11,2),
"LC_MVA_RM_TO_BE_INVOICED" NUMERIC(11,2),
"LC_MVA_TYRES_TO_BE_INVOICED" NUMERIC(11,2),
"LC_UFWT_TO_BE_INVOICED" NUMERIC(11,2),
"LC_INVOICINGENDDATE_LC" DATE,
"CH_ACTIVATIONTYPE_LC" INTEGER,
"CH_DEACTIVATIONTYPE_LC" INTEGER,
"LC_LASTRECOGNIZEDOBJMILEAGE" NUMERIC(7,0),
"LC_LASTRECOGNIZEDOBJMILEAGEDT" DATE,
"CH_USAGE_BY_CUSTOMER_ID" INTEGER,
"LC_LOCAL_KEY_BUSINESS_UNIT" NATIONAL CHARACTER VARYING(125),
"LC_BUSINESS_UNIT_NAME" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_FIRST_NAME" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_LAST_NAME" NATIONAL CHARACTER VARYING(125),
"LC_SHORT_TERM_RENTAL_INDICATOR" CHARACTER(1),
"LC_ALLOCATION_STATUS_INDICATOR" CHARACTER(1),
"LC_NUMBER_OF_TYRES_IN_CONTRACT" NUMERIC(2,0),
"TELEMATICS_DEV_INSTALL_FLAG" CHARACTER(1) not null,
"TELEMATICS_DEV_INSTALL_DATE" DATE not null,
"TELEMATICS_DEV_DEINSTALL_DATE" DATE not null,
"PRECEDING_LEASECONTRVEHICLE_ID" BIGINT,
"LC_RENEWAL_INDICATOR" CHARACTER(1),
"LC_RELEASING_INDICATOR" CHARACTER(1),
"LC_RELEASING_START_DATE" DATE,
"CH_ORDER_STATUS_ID" INTEGER not null,
"OR_ACTUAL_DELIVERY_DATE" DATE,
"OR_ORDER_RECEIPT_CONFIRM_DATE" DATE,
"OR_CERTIFICATE_RECEIPT_DATE" DATE,
"OR_FIRSTDRIVERAPPOINTMENT_DATE" DATE,
"OR_DRIVER_APPOINTMENT_DATE" DATE,
"OR_ORDER_CANCELLATION_DATE" DATE,
"OR_NUMBEROF_DRIVERAPPOINTMENTS" NUMERIC(2,0),
"OR_ADVANCE_PURCHASE_INDICATOR" CHARACTER(1),
LC_DOWNPAYMENT_INVESTMENT_AM NUMERIC(11,2),
LC_DOWNPAYMENT_INVESTMENT_AM_EUR NUMERIC(11,2),
PRIMARY KEY ( "LEASE_CONTRACT_VEHICLE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ( -- Number of Columns


= 228
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"LC_LEASE_CONTRACT_NUMBER" NATIONAL CHARACTER VARYING(125),
"LC_COST_CENTER_NAME" NATIONAL CHARACTER VARYING(125),
"LC_SLB_FLAG" CHARACTER(1),
"LC_START_DATE_LEASECONTRACT" DATE,
"LC_END_DATE_LEASECONTRACT" DATE,
"LC_BUDG_END_DATE_LEASECONTRACT" DATE,
"LC_STARTMILEAGELEASECONTRACTKM" NUMERIC(7,0),
"LC_ENDMILEAGELEASECONTRACT" NUMERIC(7,0),
"LC_CONTRACT_DURATION" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE" NUMERIC(7,0),
"LC_DISCONMONTHLY_LEASEINST" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALMENT" NUMERIC(11,2),
"LC_MVA_FEE_OVER_MILEAGE" NUMERIC(11,2),
"LC_MVA_REPAY_UNDER_MILEAGE" NUMERIC(11,2),
"LC_ACTUAL_INVEST_AMOUNT" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AMOUNT" NUMERIC(11,2),
"LC_INVEST_INTEREST_BASE" NUMERIC(11,2),
"LC_PREPAYMNT_INTEREST_BASE" NUMERIC(11,2),
"LC_UFWT_AMOUNT" NUMERIC(11,2),
"LC_EXTENSION_PENALTY" NUMERIC(11,2),
"LC_EARLY_TERM_PENALTY" NUMERIC(11,2),
"VEH_VEHICLE_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_MODEL_TYPE_DESCRIPTION" NATIONAL CHARACTER VARYING(125),
"VEH_CATALOGUE_PRICE" NUMERIC(11,2),
"VEH_CATALOGUE_PRICE_EUR" NUMERIC(11,2),
"VEH_ACTUAL_DISCOUNT_PERC" NUMERIC(6,3),
"VEH_COMMERCIAL_DISCNT_AMT" NUMERIC(11,2),
"VEH_COMMERCIAL_DISCNT_AMT_EUR" NUMERIC(11,2),
"VEH_TAX_AMT_NON_RECLAIM" NUMERIC(11,2),
"VEH_TAX_AMT_NON_RECLAIM_EUR" NUMERIC(11,2),
"VEH_VAT_PERCENTAGE" NUMERIC(6,3),
"VEH_TOT_OPTIONS_AMT" NUMERIC(11,2),
"VEH_TOTAL_OPTIONS_AMT_EUR" NUMERIC(11,2),
"VEH_TOT_ACCESSOIRIES_AMT" NUMERIC(11,2),
"VEH_TOT_ACCESSOIRIES_AMT_EUR" NUMERIC(11,2),
"VEH_DELIVERY_COSTS" NUMERIC(11,2),
"VEH_DELIVERY_COSTS_EUR" NUMERIC(11,2),
"VEH_REGISTRATION_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_REGISTRATION_DATE" DATE,
"VEH_VEH_IDENTIFICATION_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_NUMBER_OF_DOORS" NUMERIC(3,0),
"VEH_ENGINE_CAPACITY" NUMERIC(5,0),
"VEH_ENGINE_POWER" NUMERIC(5,0),
"VEH_NUMBER_OF_CYLINDERS" NUMERIC(3,0),
"VEH_TARE_WEIGHT" NUMERIC(5,0),
"VEH_GROSS_WEIGHT" NUMERIC(5,0),
"VEH_FUEL_CONSUMPT_MANUFACTURER" NUMERIC(7,2),
"VEH_EXTERNAL_REFERENCE" NATIONAL CHARACTER VARYING(125),
"VEH_TYRE_SIZE_AT_DELIVERY" NATIONAL CHARACTER VARYING(125),
"VEH_STANDARD_DISCOUNT_PERC" NUMERIC(6,3),
"LOAD_DATE" DATE,
"MNGSERV_TOT_RESIDUAL_VALUE" NUMERIC(11,2),
"MNGSERV_INTEREST_PERC_INVESTM" NUMERIC(6,3),
"MNGSERV_INTEREST_PERC_PREPAYM" NUMERIC(6,3),
"MNGSERV_TOT_RESIDUAL_VALUE_EUR" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALMENT_EUR" NUMERIC(11,2),
"LC_MVA_FEE_OVER_MILEAGE_EUR" NUMERIC(11,2),
"LC_MVA_REPAY_UNDER_MILEAGE_EUR" NUMERIC(11,2),
"LC_ACTUAL_INVEST_AMOUNT_EUR" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AMOUNT_EUR" NUMERIC(11,2),
"LC_INVEST_INTEREST_BASE_EUR" NUMERIC(11,2),
"LC_PREPAYMNT_INTEREST_BASE_EUR" NUMERIC(11,2),
"LC_UFWT_AMOUNT_EUR" NUMERIC(11,2),
"LC_EXTENSION_PENALTY_EUR" NUMERIC(11,2),
"LC_EARLY_TERM_PENALTY_EUR" NUMERIC(11,2),
"OR_ORDER_NUMBER" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_DATE" DATE,
"OR_ESTIMATED_DELIVERY_DATE" DATE,
"CUSTOMER_SLA_ID" BIGINT not null,
"LC_DRIVER_NUMBER" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_NAME" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_LEASE_CONTRACT" NATIONAL CHARACTER VARYING(125),
"VEH_LOCAL_KEY_VEHICLE" NATIONAL CHARACTER VARYING(125),
"OR_LOCAL_KEY_ORDER" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_COST_CENTER" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_DRIVER" NATIONAL CHARACTER VARYING(125),
"OR_LOCAL_KEY_ORDER_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER not null,
"CH_CONTRACT_TERMINATION_ID" INTEGER not null,
"CH_CONTRACT_STOP_REASON_ID" INTEGER not null,
"CH_REGISTRATION_STATUS_ID" INTEGER not null,
"CH_PURCHASED_BY_ID" INTEGER not null,
"CH_WINTER_TYRES_INCLUDED_ID" INTEGER not null,
"CH_MAKE_CODE_ID" INTEGER not null,
"CH_MODEL_CODE_ID" INTEGER not null,
"CH_BODY_STYLE_ID" INTEGER not null,
"CH_DRIVING_METHOD_ID" INTEGER not null,
"CH_EXTERIOR_COLOUR_ID" INTEGER not null,
"CH_EXTERIOR_COLOUR_TYPE_ID" INTEGER not null,
"CH_PRIMARY_FUEL_TYPE_ID" INTEGER not null,
"CH_TRANSMISSION_TYPE_ID" INTEGER not null,
"CH_UPHOLSTERY_TYPE_ID" INTEGER not null,
"CH_VEHICLE_TYPE_ID" INTEGER not null,
"CH_FLEET_REPORT_CATEGORY_ID" INTEGER not null,
"CH_PRODUCT_CATEGORY_TYPE_ID" INTEGER not null,
"PRODUCT_ID" BIGINT not null,
"LC_BOOK_VALUE" NUMERIC(11,2),
"CH_ASSET_TYPE_ID" INTEGER not null,
"CH_VEHICLE_SEGMENT_ID" INTEGER not null,
"CH_OEM_ID" INTEGER not null,
"LC_STARTMILEAGELEASECONTRACT" NUMERIC(7,0),
"LC_ENDMILEAGELEASECONTRACTKM" NUMERIC(7,0),
"LC_CONTRACT_MILEAGE_KM" NUMERIC(7,0),
"LC_BOOK_VALUE_EUR" NUMERIC(11,2),
"LC_DISCONMONTHLY_LEASEINST_EUR" NUMERIC(11,2),
"CH_VEHICLE_SEGMENT_LOCAL_ID" INTEGER not null,
"CH_MVA_SYSTEM_ID" INTEGER not null,
"CH_BUY_BACK_CODE" INTEGER not null,
"CH_RISK_RULING_CODE" INTEGER not null,
"CH_VEHICLE_GROUP_CODE" INTEGER not null,
"CH_DATA_SUPPLIER_VEHICLE_CODE" INTEGER not null,
"CH_OWN_DAMAGE_RISK_ID" INTEGER not null,
"CH_UFWT_TYPE_ID" INTEGER not null,
"CH_MVA_SETTLEMENT_ID" INTEGER not null,
"LC_CUSTOMER_DRIVER_ID" NATIONAL CHARACTER VARYING(125),
"VEH_CO2_LEVEL_COMBINED" NUMERIC(6,0),
"CH_SECONDARY_FUEL_TYPE" INTEGER not null,
"CH_NUMBER_OF_FORWARD_GEARS" INTEGER not null,
"VEH_INDICATOR_NEW_MODEL" CHARACTER(1),
"VEH_MODEL_END_DATE" DATE,
"VEH_MODEL_INTRO_DATE" DATE,
"VEH_MODEL_FACELIFT_INTRO_DATE" DATE,
"VEH_MODEL_FACELIFT_END_DATE" DATE,
"VEH_NUMBER_OF_SEATS" NUMERIC(2,0),
"LC_DRIVER_SET_SEND_DATE" DATE,
"LC_INTEREST_LOSS_AT_TERM" NUMERIC(11,2),
"LC_INTEREST_LOSS_AT_TERM_EUR" NUMERIC(11,2),
"LC_MVA_FEE_MIN_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MIN_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVA_FEE_MID_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MID_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVA_FEE_MAX_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MAX_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVAREPAY_MINUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MINUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVAREPAY_MIDUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MIDUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVAREPAY_MAXUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MAXUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVA_THRESHHIGH_OVER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THESHHIGH_UNDER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THRESHLOW_UNDER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THRESHLOW_OVER_MILEAGE" NUMERIC(7,0),
"LC_TERMINATION_PROCESS_DATE" DATE,
"LC_CREATION_DATE_LEASECONTRACT" DATE,
"LC_FORMAL_EXTENSION_APPLICABLE" NATIONAL CHARACTER VARYING(125),
"LC_ACTIVATION_DATE_FORMAL_EXT" DATE,
"LC_CONTRACT_DURATION_FORMAL_EX" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE_FORMAL_EXT" NUMERIC(7,0),
"LC_RESIDUAL_VALUE_FORM_EXT" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_FORM_EXT_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_ENG_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_ENG_DAM_AM_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_EXT_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_EXT_DAM_AM_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_INT_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_INT_DAM_AM_EUR" NUMERIC(11,2),
"LC_MVA_UM_LIMIT_PERCENTAGE" NUMERIC(6,3),
"LC_MVA_OM_LIMIT_PERCENTAGE" NUMERIC(6,3),
"LC_MVA_UM_FACTOR" NUMERIC(6,3),
"LC_MVA_OM_FACTOR" NUMERIC(6,3),
"CH_TYRE_WIDTH_FRONT" INTEGER not null,
"CH_TYRE_WIDTH_REAR" INTEGER not null,
"CH_TYRE_RIM_DIAM_FRONT" INTEGER not null,
"CH_TYRE_RIM_DIAM_REAR" INTEGER not null,
"VEH_CONSUMER_PRICE" NUMERIC(11,2),
"VEH_CONSUMER_PRICE_EUR" NUMERIC(11,2),
"VEH_LUXURY_TAX_AM" NUMERIC(11,2),
"VEH_LUXURY_TAX_AM_EUR" NUMERIC(11,2),
"VEH_ENROLMENT_TAX_AM" NUMERIC(11,2),
"VEH_ENROLMENT_TAX_AM_EUR" NUMERIC(11,2),
"LC_UFWT_TOTAL_ASSESSED_AM" NUMERIC(11,2),
"LC_UFWT_TOTAL_ASSESSED_AM_EUR" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_BASE" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_BASE_EUR" NUMERIC(11,2),
"LC_INSURANCE_LOSS_RATIO" NUMERIC(17,5),
"LC_LAST_KNOWN_MILEAGE" NUMERIC(7,0),
"LC_LAST_KNOWN_MILEAGE_DATE" DATE,
"LC_CONTRACT_DURATION_FP" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE_FP" NUMERIC(7,0),
"LC_MONTHLY_LEASEINSTALM_FP" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AM_FP" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALM_FP_EUR" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AM_FP_EUR" NUMERIC(11,2),
"LC_START_DATE_LEASECONTRACT_FP" DATE,
"LC_END_DATE_LEASECONTRACT_FP" DATE,
"OR_CREATION_DATE_ORDER" DATE,
"LC_REGISTRATIONDATE_START" DATE,
"LC_REGISTRATIONDT_TERMINATION" DATE,
"LC_MVA_DEPR_TO_BE_INVOICED" NUMERIC(11,2),
"LC_MVA_RM_TO_BE_INVOICED" NUMERIC(11,2),
"LC_MVA_TYRES_TO_BE_INVOICED" NUMERIC(11,2),
"LC_UFWT_TO_BE_INVOICED" NUMERIC(11,2),
"LC_INVOICINGENDDATE_LC" DATE,
"CH_ACTIVATIONTYPE_LC" INTEGER,
"CH_DEACTIVATIONTYPE_LC" INTEGER,
"LC_LASTRECOGNIZEDOBJMILEAGE" NUMERIC(7,0),
"LC_LASTRECOGNIZEDOBJMILEAGEDT" DATE,
"CH_USAGE_BY_CUSTOMER_ID" INTEGER,
"LC_LOCAL_KEY_BUSINESS_UNIT" NATIONAL CHARACTER VARYING(125),
"LC_BUSINESS_UNIT_NAME" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_FIRST_NAME" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_LAST_NAME" NATIONAL CHARACTER VARYING(125),
"LC_SHORT_TERM_RENTAL_INDICATOR" CHARACTER(1),
"LC_ALLOCATION_STATUS_INDICATOR" CHARACTER(1),
"LC_NUMBER_OF_TYRES_IN_CONTRACT" NUMERIC(2,0),
"TELEMATICS_DEV_INSTALL_FLAG" CHARACTER(1) not null,
"TELEMATICS_DEV_INSTALL_DATE" DATE not null,
"TELEMATICS_DEV_DEINSTALL_DATE" DATE not null,
"PRECEDING_LEASECONTRVEHICLE_ID" BIGINT,
"LC_RENEWAL_INDICATOR" CHARACTER(1),
"LC_RELEASING_INDICATOR" CHARACTER(1),
"LC_RELEASING_START_DATE" DATE,
"CH_ORDER_STATUS_ID" INTEGER not null,
"OR_ACTUAL_DELIVERY_DATE" DATE,
"OR_ORDER_RECEIPT_CONFIRM_DATE" DATE,
"OR_CERTIFICATE_RECEIPT_DATE" DATE,
"OR_FIRSTDRIVERAPPOINTMENT_DATE" DATE,
"OR_DRIVER_APPOINTMENT_DATE" DATE,
"OR_ORDER_CANCELLATION_DATE" DATE,
"OR_NUMBEROF_DRIVERAPPOINTMENTS" NUMERIC(2,0),
"OR_ADVANCE_PURCHASE_INDICATOR" CHARACTER(1),
LC_DOWNPAYMENT_INVESTMENT_AM NUMERIC(11,2),
LC_DOWNPAYMENT_INVESTMENT_AM_EUR NUMERIC(11,2),
PRIMARY KEY ( "LEASE_CONTRACT_VEHICLE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ( -- Number of Columns


= 228
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"LC_LEASE_CONTRACT_NUMBER" NATIONAL CHARACTER VARYING(125),
"LC_COST_CENTER_NAME" NATIONAL CHARACTER VARYING(125),
"LC_SLB_FLAG" CHARACTER(1),
"LC_START_DATE_LEASECONTRACT" DATE,
"LC_END_DATE_LEASECONTRACT" DATE,
"LC_BUDG_END_DATE_LEASECONTRACT" DATE,
"LC_STARTMILEAGELEASECONTRACTKM" NUMERIC(7,0),
"LC_ENDMILEAGELEASECONTRACT" NUMERIC(7,0),
"LC_CONTRACT_DURATION" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE" NUMERIC(7,0),
"LC_DISCONMONTHLY_LEASEINST" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALMENT" NUMERIC(11,2),
"LC_MVA_FEE_OVER_MILEAGE" NUMERIC(11,2),
"LC_MVA_REPAY_UNDER_MILEAGE" NUMERIC(11,2),
"LC_ACTUAL_INVEST_AMOUNT" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AMOUNT" NUMERIC(11,2),
"LC_INVEST_INTEREST_BASE" NUMERIC(11,2),
"LC_PREPAYMNT_INTEREST_BASE" NUMERIC(11,2),
"LC_UFWT_AMOUNT" NUMERIC(11,2),
"LC_EXTENSION_PENALTY" NUMERIC(11,2),
"LC_EARLY_TERM_PENALTY" NUMERIC(11,2),
"VEH_VEHICLE_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_MODEL_TYPE_DESCRIPTION" NATIONAL CHARACTER VARYING(125),
"VEH_CATALOGUE_PRICE" NUMERIC(11,2),
"VEH_CATALOGUE_PRICE_EUR" NUMERIC(11,2),
"VEH_ACTUAL_DISCOUNT_PERC" NUMERIC(6,3),
"VEH_COMMERCIAL_DISCNT_AMT" NUMERIC(11,2),
"VEH_COMMERCIAL_DISCNT_AMT_EUR" NUMERIC(11,2),
"VEH_TAX_AMT_NON_RECLAIM" NUMERIC(11,2),
"VEH_TAX_AMT_NON_RECLAIM_EUR" NUMERIC(11,2),
"VEH_VAT_PERCENTAGE" NUMERIC(6,3),
"VEH_TOT_OPTIONS_AMT" NUMERIC(11,2),
"VEH_TOTAL_OPTIONS_AMT_EUR" NUMERIC(11,2),
"VEH_TOT_ACCESSOIRIES_AMT" NUMERIC(11,2),
"VEH_TOT_ACCESSOIRIES_AMT_EUR" NUMERIC(11,2),
"VEH_DELIVERY_COSTS" NUMERIC(11,2),
"VEH_DELIVERY_COSTS_EUR" NUMERIC(11,2),
"VEH_REGISTRATION_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_REGISTRATION_DATE" DATE,
"VEH_VEH_IDENTIFICATION_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_NUMBER_OF_DOORS" NUMERIC(3,0),
"VEH_ENGINE_CAPACITY" NUMERIC(5,0),
"VEH_ENGINE_POWER" NUMERIC(5,0),
"VEH_NUMBER_OF_CYLINDERS" NUMERIC(3,0),
"VEH_TARE_WEIGHT" NUMERIC(5,0),
"VEH_GROSS_WEIGHT" NUMERIC(5,0),
"VEH_FUEL_CONSUMPT_MANUFACTURER" NUMERIC(7,2),
"VEH_EXTERNAL_REFERENCE" NATIONAL CHARACTER VARYING(125),
"VEH_TYRE_SIZE_AT_DELIVERY" NATIONAL CHARACTER VARYING(125),
"VEH_STANDARD_DISCOUNT_PERC" NUMERIC(6,3),
"LOAD_DATE" DATE,
"MNGSERV_TOT_RESIDUAL_VALUE" NUMERIC(11,2),
"MNGSERV_INTEREST_PERC_INVESTM" NUMERIC(6,3),
"MNGSERV_INTEREST_PERC_PREPAYM" NUMERIC(6,3),
"MNGSERV_TOT_RESIDUAL_VALUE_EUR" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALMENT_EUR" NUMERIC(11,2),
"LC_MVA_FEE_OVER_MILEAGE_EUR" NUMERIC(11,2),
"LC_MVA_REPAY_UNDER_MILEAGE_EUR" NUMERIC(11,2),
"LC_ACTUAL_INVEST_AMOUNT_EUR" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AMOUNT_EUR" NUMERIC(11,2),
"LC_INVEST_INTEREST_BASE_EUR" NUMERIC(11,2),
"LC_PREPAYMNT_INTEREST_BASE_EUR" NUMERIC(11,2),
"LC_UFWT_AMOUNT_EUR" NUMERIC(11,2),
"LC_EXTENSION_PENALTY_EUR" NUMERIC(11,2),
"LC_EARLY_TERM_PENALTY_EUR" NUMERIC(11,2),
"OR_ORDER_NUMBER" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_DATE" DATE,
"OR_ESTIMATED_DELIVERY_DATE" DATE,
"CUSTOMER_SLA_ID" BIGINT not null,
"LC_DRIVER_NUMBER" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_NAME" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_LEASE_CONTRACT" NATIONAL CHARACTER VARYING(125),
"VEH_LOCAL_KEY_VEHICLE" NATIONAL CHARACTER VARYING(125),
"OR_LOCAL_KEY_ORDER" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_COST_CENTER" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_DRIVER" NATIONAL CHARACTER VARYING(125),
"OR_LOCAL_KEY_ORDER_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER not null,
"CH_CONTRACT_TERMINATION_ID" INTEGER not null,
"CH_CONTRACT_STOP_REASON_ID" INTEGER not null,
"CH_REGISTRATION_STATUS_ID" INTEGER not null,
"CH_PURCHASED_BY_ID" INTEGER not null,
"CH_WINTER_TYRES_INCLUDED_ID" INTEGER not null,
"CH_MAKE_CODE_ID" INTEGER not null,
"CH_MODEL_CODE_ID" INTEGER not null,
"CH_BODY_STYLE_ID" INTEGER not null,
"CH_DRIVING_METHOD_ID" INTEGER not null,
"CH_EXTERIOR_COLOUR_ID" INTEGER not null,
"CH_EXTERIOR_COLOUR_TYPE_ID" INTEGER not null,
"CH_PRIMARY_FUEL_TYPE_ID" INTEGER not null,
"CH_TRANSMISSION_TYPE_ID" INTEGER not null,
"CH_UPHOLSTERY_TYPE_ID" INTEGER not null,
"CH_VEHICLE_TYPE_ID" INTEGER not null,
"CH_FLEET_REPORT_CATEGORY_ID" INTEGER not null,
"CH_PRODUCT_CATEGORY_TYPE_ID" INTEGER not null,
"PRODUCT_ID" BIGINT not null,
"LC_BOOK_VALUE" NUMERIC(11,2),
"CH_ASSET_TYPE_ID" INTEGER not null,
"CH_VEHICLE_SEGMENT_ID" INTEGER not null,
"CH_OEM_ID" INTEGER not null,
"LC_STARTMILEAGELEASECONTRACT" NUMERIC(7,0),
"LC_ENDMILEAGELEASECONTRACTKM" NUMERIC(7,0),
"LC_CONTRACT_MILEAGE_KM" NUMERIC(7,0),
"LC_BOOK_VALUE_EUR" NUMERIC(11,2),
"LC_DISCONMONTHLY_LEASEINST_EUR" NUMERIC(11,2),
"CH_VEHICLE_SEGMENT_LOCAL_ID" INTEGER not null,
"CH_MVA_SYSTEM_ID" INTEGER not null,
"CH_BUY_BACK_CODE" INTEGER not null,
"CH_RISK_RULING_CODE" INTEGER not null,
"CH_VEHICLE_GROUP_CODE" INTEGER not null,
"CH_DATA_SUPPLIER_VEHICLE_CODE" INTEGER not null,
"CH_OWN_DAMAGE_RISK_ID" INTEGER not null,
"CH_UFWT_TYPE_ID" INTEGER not null,
"CH_MVA_SETTLEMENT_ID" INTEGER not null,
"LC_CUSTOMER_DRIVER_ID" NATIONAL CHARACTER VARYING(125),
"VEH_CO2_LEVEL_COMBINED" NUMERIC(6,0),
"CH_SECONDARY_FUEL_TYPE" INTEGER not null,
"CH_NUMBER_OF_FORWARD_GEARS" INTEGER not null,
"VEH_INDICATOR_NEW_MODEL" CHARACTER(1),
"VEH_MODEL_END_DATE" DATE,
"VEH_MODEL_INTRO_DATE" DATE,
"VEH_MODEL_FACELIFT_INTRO_DATE" DATE,
"VEH_MODEL_FACELIFT_END_DATE" DATE,
"VEH_NUMBER_OF_SEATS" NUMERIC(2,0),
"LC_DRIVER_SET_SEND_DATE" DATE,
"LC_INTEREST_LOSS_AT_TERM" NUMERIC(11,2),
"LC_INTEREST_LOSS_AT_TERM_EUR" NUMERIC(11,2),
"LC_MVA_FEE_MIN_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MIN_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVA_FEE_MID_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MID_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVA_FEE_MAX_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MAX_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVAREPAY_MINUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MINUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVAREPAY_MIDUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MIDUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVAREPAY_MAXUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MAXUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVA_THRESHHIGH_OVER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THESHHIGH_UNDER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THRESHLOW_UNDER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THRESHLOW_OVER_MILEAGE" NUMERIC(7,0),
"LC_TERMINATION_PROCESS_DATE" DATE,
"LC_CREATION_DATE_LEASECONTRACT" DATE,
"LC_FORMAL_EXTENSION_APPLICABLE" NATIONAL CHARACTER VARYING(125),
"LC_ACTIVATION_DATE_FORMAL_EXT" DATE,
"LC_CONTRACT_DURATION_FORMAL_EX" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE_FORMAL_EXT" NUMERIC(7,0),
"LC_RESIDUAL_VALUE_FORM_EXT" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_FORM_EXT_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_ENG_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_ENG_DAM_AM_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_EXT_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_EXT_DAM_AM_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_INT_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_INT_DAM_AM_EUR" NUMERIC(11,2),
"LC_MVA_UM_LIMIT_PERCENTAGE" NUMERIC(6,3),
"LC_MVA_OM_LIMIT_PERCENTAGE" NUMERIC(6,3),
"LC_MVA_UM_FACTOR" NUMERIC(6,3),
"LC_MVA_OM_FACTOR" NUMERIC(6,3),
"CH_TYRE_WIDTH_FRONT" INTEGER not null,
"CH_TYRE_WIDTH_REAR" INTEGER not null,
"CH_TYRE_RIM_DIAM_FRONT" INTEGER not null,
"CH_TYRE_RIM_DIAM_REAR" INTEGER not null,
"VEH_CONSUMER_PRICE" NUMERIC(11,2),
"VEH_CONSUMER_PRICE_EUR" NUMERIC(11,2),
"VEH_LUXURY_TAX_AM" NUMERIC(11,2),
"VEH_LUXURY_TAX_AM_EUR" NUMERIC(11,2),
"VEH_ENROLMENT_TAX_AM" NUMERIC(11,2),
"VEH_ENROLMENT_TAX_AM_EUR" NUMERIC(11,2),
"LC_UFWT_TOTAL_ASSESSED_AM" NUMERIC(11,2),
"LC_UFWT_TOTAL_ASSESSED_AM_EUR" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_BASE" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_BASE_EUR" NUMERIC(11,2),
"LC_INSURANCE_LOSS_RATIO" NUMERIC(17,5),
"LC_LAST_KNOWN_MILEAGE" NUMERIC(7,0),
"LC_LAST_KNOWN_MILEAGE_DATE" DATE,
"LC_CONTRACT_DURATION_FP" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE_FP" NUMERIC(7,0),
"LC_MONTHLY_LEASEINSTALM_FP" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AM_FP" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALM_FP_EUR" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AM_FP_EUR" NUMERIC(11,2),
"LC_START_DATE_LEASECONTRACT_FP" DATE,
"LC_END_DATE_LEASECONTRACT_FP" DATE,
"OR_CREATION_DATE_ORDER" DATE,
"LC_REGISTRATIONDATE_START" DATE,
"LC_REGISTRATIONDT_TERMINATION" DATE,
"LC_MVA_DEPR_TO_BE_INVOICED" NUMERIC(11,2),
"LC_MVA_RM_TO_BE_INVOICED" NUMERIC(11,2),
"LC_MVA_TYRES_TO_BE_INVOICED" NUMERIC(11,2),
"LC_UFWT_TO_BE_INVOICED" NUMERIC(11,2),
"LC_INVOICINGENDDATE_LC" DATE,
"CH_ACTIVATIONTYPE_LC" INTEGER,
"CH_DEACTIVATIONTYPE_LC" INTEGER,
"LC_LASTRECOGNIZEDOBJMILEAGE" NUMERIC(7,0),
"LC_LASTRECOGNIZEDOBJMILEAGEDT" DATE,
"CH_USAGE_BY_CUSTOMER_ID" INTEGER,
"LC_LOCAL_KEY_BUSINESS_UNIT" NATIONAL CHARACTER VARYING(125),
"LC_BUSINESS_UNIT_NAME" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_FIRST_NAME" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_LAST_NAME" NATIONAL CHARACTER VARYING(125),
"LC_SHORT_TERM_RENTAL_INDICATOR" CHARACTER(1),
"LC_ALLOCATION_STATUS_INDICATOR" CHARACTER(1),
"LC_NUMBER_OF_TYRES_IN_CONTRACT" NUMERIC(2,0),
"TELEMATICS_DEV_INSTALL_FLAG" CHARACTER(1) not null,
"TELEMATICS_DEV_INSTALL_DATE" DATE not null,
"TELEMATICS_DEV_DEINSTALL_DATE" DATE not null,
"PRECEDING_LEASECONTRVEHICLE_ID" BIGINT,
"LC_RENEWAL_INDICATOR" CHARACTER(1),
"LC_RELEASING_INDICATOR" CHARACTER(1),
"LC_RELEASING_START_DATE" DATE,
"CH_ORDER_STATUS_ID" INTEGER not null,
"OR_ACTUAL_DELIVERY_DATE" DATE,
"OR_ORDER_RECEIPT_CONFIRM_DATE" DATE,
"OR_CERTIFICATE_RECEIPT_DATE" DATE,
"OR_FIRSTDRIVERAPPOINTMENT_DATE" DATE,
"OR_DRIVER_APPOINTMENT_DATE" DATE,
"OR_ORDER_CANCELLATION_DATE" DATE,
"OR_NUMBEROF_DRIVERAPPOINTMENTS" NUMERIC(2,0),
"OR_ADVANCE_PURCHASE_INDICATOR" CHARACTER(1),
LC_DOWNPAYMENT_INVESTMENT_AM NUMERIC(11,2),
LC_DOWNPAYMENT_INVESTMENT_AM_EUR NUMERIC(11,2),
PRIMARY KEY ( "LEASE_CONTRACT_VEHICLE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE ( -- Number of Columns


= 228
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"LC_LEASE_CONTRACT_NUMBER" NATIONAL CHARACTER VARYING(125),
"LC_COST_CENTER_NAME" NATIONAL CHARACTER VARYING(125),
"LC_SLB_FLAG" CHARACTER(1),
"LC_START_DATE_LEASECONTRACT" DATE,
"LC_END_DATE_LEASECONTRACT" DATE,
"LC_BUDG_END_DATE_LEASECONTRACT" DATE,
"LC_STARTMILEAGELEASECONTRACTKM" NUMERIC(7,0),
"LC_ENDMILEAGELEASECONTRACT" NUMERIC(7,0),
"LC_CONTRACT_DURATION" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE" NUMERIC(7,0),
"LC_DISCONMONTHLY_LEASEINST" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALMENT" NUMERIC(11,2),
"LC_MVA_FEE_OVER_MILEAGE" NUMERIC(11,2),
"LC_MVA_REPAY_UNDER_MILEAGE" NUMERIC(11,2),
"LC_ACTUAL_INVEST_AMOUNT" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AMOUNT" NUMERIC(11,2),
"LC_INVEST_INTEREST_BASE" NUMERIC(11,2),
"LC_PREPAYMNT_INTEREST_BASE" NUMERIC(11,2),
"LC_UFWT_AMOUNT" NUMERIC(11,2),
"LC_EXTENSION_PENALTY" NUMERIC(11,2),
"LC_EARLY_TERM_PENALTY" NUMERIC(11,2),
"VEH_VEHICLE_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_MODEL_TYPE_DESCRIPTION" NATIONAL CHARACTER VARYING(125),
"VEH_CATALOGUE_PRICE" NUMERIC(11,2),
"VEH_CATALOGUE_PRICE_EUR" NUMERIC(11,2),
"VEH_ACTUAL_DISCOUNT_PERC" NUMERIC(6,3),
"VEH_COMMERCIAL_DISCNT_AMT" NUMERIC(11,2),
"VEH_COMMERCIAL_DISCNT_AMT_EUR" NUMERIC(11,2),
"VEH_TAX_AMT_NON_RECLAIM" NUMERIC(11,2),
"VEH_TAX_AMT_NON_RECLAIM_EUR" NUMERIC(11,2),
"VEH_VAT_PERCENTAGE" NUMERIC(6,3),
"VEH_TOT_OPTIONS_AMT" NUMERIC(11,2),
"VEH_TOTAL_OPTIONS_AMT_EUR" NUMERIC(11,2),
"VEH_TOT_ACCESSOIRIES_AMT" NUMERIC(11,2),
"VEH_TOT_ACCESSOIRIES_AMT_EUR" NUMERIC(11,2),
"VEH_DELIVERY_COSTS" NUMERIC(11,2),
"VEH_DELIVERY_COSTS_EUR" NUMERIC(11,2),
"VEH_REGISTRATION_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_REGISTRATION_DATE" DATE,
"VEH_VEH_IDENTIFICATION_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_NUMBER_OF_DOORS" NUMERIC(3,0),
"VEH_ENGINE_CAPACITY" NUMERIC(5,0),
"VEH_ENGINE_POWER" NUMERIC(5,0),
"VEH_NUMBER_OF_CYLINDERS" NUMERIC(3,0),
"VEH_TARE_WEIGHT" NUMERIC(5,0),
"VEH_GROSS_WEIGHT" NUMERIC(5,0),
"VEH_FUEL_CONSUMPT_MANUFACTURER" NUMERIC(7,2),
"VEH_EXTERNAL_REFERENCE" NATIONAL CHARACTER VARYING(125),
"VEH_TYRE_SIZE_AT_DELIVERY" NATIONAL CHARACTER VARYING(125),
"VEH_STANDARD_DISCOUNT_PERC" NUMERIC(6,3),
"LOAD_DATE" DATE,
"MNGSERV_TOT_RESIDUAL_VALUE" NUMERIC(11,2),
"MNGSERV_INTEREST_PERC_INVESTM" NUMERIC(6,3),
"MNGSERV_INTEREST_PERC_PREPAYM" NUMERIC(6,3),
"MNGSERV_TOT_RESIDUAL_VALUE_EUR" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALMENT_EUR" NUMERIC(11,2),
"LC_MVA_FEE_OVER_MILEAGE_EUR" NUMERIC(11,2),
"LC_MVA_REPAY_UNDER_MILEAGE_EUR" NUMERIC(11,2),
"LC_ACTUAL_INVEST_AMOUNT_EUR" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AMOUNT_EUR" NUMERIC(11,2),
"LC_INVEST_INTEREST_BASE_EUR" NUMERIC(11,2),
"LC_PREPAYMNT_INTEREST_BASE_EUR" NUMERIC(11,2),
"LC_UFWT_AMOUNT_EUR" NUMERIC(11,2),
"LC_EXTENSION_PENALTY_EUR" NUMERIC(11,2),
"LC_EARLY_TERM_PENALTY_EUR" NUMERIC(11,2),
"OR_ORDER_NUMBER" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_DATE" DATE,
"OR_ESTIMATED_DELIVERY_DATE" DATE,
"CUSTOMER_SLA_ID" BIGINT not null,
"LC_DRIVER_NUMBER" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_NAME" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_LEASE_CONTRACT" NATIONAL CHARACTER VARYING(125),
"VEH_LOCAL_KEY_VEHICLE" NATIONAL CHARACTER VARYING(125),
"OR_LOCAL_KEY_ORDER" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_COST_CENTER" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_DRIVER" NATIONAL CHARACTER VARYING(125),
"OR_LOCAL_KEY_ORDER_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER not null,
"CH_CONTRACT_TERMINATION_ID" INTEGER not null,
"CH_CONTRACT_STOP_REASON_ID" INTEGER not null,
"CH_REGISTRATION_STATUS_ID" INTEGER not null,
"CH_PURCHASED_BY_ID" INTEGER not null,
"CH_WINTER_TYRES_INCLUDED_ID" INTEGER not null,
"CH_MAKE_CODE_ID" INTEGER not null,
"CH_MODEL_CODE_ID" INTEGER not null,
"CH_BODY_STYLE_ID" INTEGER not null,
"CH_DRIVING_METHOD_ID" INTEGER not null,
"CH_EXTERIOR_COLOUR_ID" INTEGER not null,
"CH_EXTERIOR_COLOUR_TYPE_ID" INTEGER not null,
"CH_PRIMARY_FUEL_TYPE_ID" INTEGER not null,
"CH_TRANSMISSION_TYPE_ID" INTEGER not null,
"CH_UPHOLSTERY_TYPE_ID" INTEGER not null,
"CH_VEHICLE_TYPE_ID" INTEGER not null,
"CH_FLEET_REPORT_CATEGORY_ID" INTEGER not null,
"CH_PRODUCT_CATEGORY_TYPE_ID" INTEGER not null,
"PRODUCT_ID" BIGINT not null,
"LC_BOOK_VALUE" NUMERIC(11,2),
"CH_ASSET_TYPE_ID" INTEGER not null,
"CH_VEHICLE_SEGMENT_ID" INTEGER not null,
"CH_OEM_ID" INTEGER not null,
"LC_STARTMILEAGELEASECONTRACT" NUMERIC(7,0),
"LC_ENDMILEAGELEASECONTRACTKM" NUMERIC(7,0),
"LC_CONTRACT_MILEAGE_KM" NUMERIC(7,0),
"LC_BOOK_VALUE_EUR" NUMERIC(11,2),
"LC_DISCONMONTHLY_LEASEINST_EUR" NUMERIC(11,2),
"CH_VEHICLE_SEGMENT_LOCAL_ID" INTEGER not null,
"CH_MVA_SYSTEM_ID" INTEGER not null,
"CH_BUY_BACK_CODE" INTEGER not null,
"CH_RISK_RULING_CODE" INTEGER not null,
"CH_VEHICLE_GROUP_CODE" INTEGER not null,
"CH_DATA_SUPPLIER_VEHICLE_CODE" INTEGER not null,
"CH_OWN_DAMAGE_RISK_ID" INTEGER not null,
"CH_UFWT_TYPE_ID" INTEGER not null,
"CH_MVA_SETTLEMENT_ID" INTEGER not null,
"LC_CUSTOMER_DRIVER_ID" NATIONAL CHARACTER VARYING(125),
"VEH_CO2_LEVEL_COMBINED" NUMERIC(6,0),
"CH_SECONDARY_FUEL_TYPE" INTEGER not null,
"CH_NUMBER_OF_FORWARD_GEARS" INTEGER not null,
"VEH_INDICATOR_NEW_MODEL" CHARACTER(1),
"VEH_MODEL_END_DATE" DATE,
"VEH_MODEL_INTRO_DATE" DATE,
"VEH_MODEL_FACELIFT_INTRO_DATE" DATE,
"VEH_MODEL_FACELIFT_END_DATE" DATE,
"VEH_NUMBER_OF_SEATS" NUMERIC(2,0),
"LC_DRIVER_SET_SEND_DATE" DATE,
"LC_INTEREST_LOSS_AT_TERM" NUMERIC(11,2),
"LC_INTEREST_LOSS_AT_TERM_EUR" NUMERIC(11,2),
"LC_MVA_FEE_MIN_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MIN_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVA_FEE_MID_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MID_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVA_FEE_MAX_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MAX_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVAREPAY_MINUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MINUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVAREPAY_MIDUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MIDUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVAREPAY_MAXUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MAXUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVA_THRESHHIGH_OVER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THESHHIGH_UNDER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THRESHLOW_UNDER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THRESHLOW_OVER_MILEAGE" NUMERIC(7,0),
"LC_TERMINATION_PROCESS_DATE" DATE,
"LC_CREATION_DATE_LEASECONTRACT" DATE,
"LC_FORMAL_EXTENSION_APPLICABLE" NATIONAL CHARACTER VARYING(125),
"LC_ACTIVATION_DATE_FORMAL_EXT" DATE,
"LC_CONTRACT_DURATION_FORMAL_EX" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE_FORMAL_EXT" NUMERIC(7,0),
"LC_RESIDUAL_VALUE_FORM_EXT" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_FORM_EXT_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_ENG_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_ENG_DAM_AM_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_EXT_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_EXT_DAM_AM_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_INT_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_INT_DAM_AM_EUR" NUMERIC(11,2),
"LC_MVA_UM_LIMIT_PERCENTAGE" NUMERIC(6,3),
"LC_MVA_OM_LIMIT_PERCENTAGE" NUMERIC(6,3),
"LC_MVA_UM_FACTOR" NUMERIC(6,3),
"LC_MVA_OM_FACTOR" NUMERIC(6,3),
"CH_TYRE_WIDTH_FRONT" INTEGER not null,
"CH_TYRE_WIDTH_REAR" INTEGER not null,
"CH_TYRE_RIM_DIAM_FRONT" INTEGER not null,
"CH_TYRE_RIM_DIAM_REAR" INTEGER not null,
"VEH_CONSUMER_PRICE" NUMERIC(11,2),
"VEH_CONSUMER_PRICE_EUR" NUMERIC(11,2),
"VEH_LUXURY_TAX_AM" NUMERIC(11,2),
"VEH_LUXURY_TAX_AM_EUR" NUMERIC(11,2),
"VEH_ENROLMENT_TAX_AM" NUMERIC(11,2),
"VEH_ENROLMENT_TAX_AM_EUR" NUMERIC(11,2),
"LC_UFWT_TOTAL_ASSESSED_AM" NUMERIC(11,2),
"LC_UFWT_TOTAL_ASSESSED_AM_EUR" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_BASE" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_BASE_EUR" NUMERIC(11,2),
"LC_INSURANCE_LOSS_RATIO" NUMERIC(17,5),
"LC_LAST_KNOWN_MILEAGE" NUMERIC(7,0),
"LC_LAST_KNOWN_MILEAGE_DATE" DATE,
"LC_CONTRACT_DURATION_FP" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE_FP" NUMERIC(7,0),
"LC_MONTHLY_LEASEINSTALM_FP" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AM_FP" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALM_FP_EUR" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AM_FP_EUR" NUMERIC(11,2),
"LC_START_DATE_LEASECONTRACT_FP" DATE,
"LC_END_DATE_LEASECONTRACT_FP" DATE,
"OR_CREATION_DATE_ORDER" DATE,
"LC_REGISTRATIONDATE_START" DATE,
"LC_REGISTRATIONDT_TERMINATION" DATE,
"LC_MVA_DEPR_TO_BE_INVOICED" NUMERIC(11,2),
"LC_MVA_RM_TO_BE_INVOICED" NUMERIC(11,2),
"LC_MVA_TYRES_TO_BE_INVOICED" NUMERIC(11,2),
"LC_UFWT_TO_BE_INVOICED" NUMERIC(11,2),
"LC_INVOICINGENDDATE_LC" DATE,
"CH_ACTIVATIONTYPE_LC" INTEGER,
"CH_DEACTIVATIONTYPE_LC" INTEGER,
"LC_LASTRECOGNIZEDOBJMILEAGE" NUMERIC(7,0),
"LC_LASTRECOGNIZEDOBJMILEAGEDT" DATE,
"CH_USAGE_BY_CUSTOMER_ID" INTEGER,
"LC_LOCAL_KEY_BUSINESS_UNIT" NATIONAL CHARACTER VARYING(125),
"LC_BUSINESS_UNIT_NAME" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_FIRST_NAME" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_LAST_NAME" NATIONAL CHARACTER VARYING(125),
"LC_SHORT_TERM_RENTAL_INDICATOR" CHARACTER(1),
"LC_ALLOCATION_STATUS_INDICATOR" CHARACTER(1),
"LC_NUMBER_OF_TYRES_IN_CONTRACT" NUMERIC(2,0),
"TELEMATICS_DEV_INSTALL_FLAG" CHARACTER(1) not null,
"TELEMATICS_DEV_INSTALL_DATE" DATE not null,
"TELEMATICS_DEV_DEINSTALL_DATE" DATE not null,
"PRECEDING_LEASECONTRVEHICLE_ID" BIGINT,
"LC_RENEWAL_INDICATOR" CHARACTER(1),
"LC_RELEASING_INDICATOR" CHARACTER(1),
"LC_RELEASING_START_DATE" DATE,
"CH_ORDER_STATUS_ID" INTEGER not null,
"OR_ACTUAL_DELIVERY_DATE" DATE,
"OR_ORDER_RECEIPT_CONFIRM_DATE" DATE,
"OR_CERTIFICATE_RECEIPT_DATE" DATE,
"OR_FIRSTDRIVERAPPOINTMENT_DATE" DATE,
"OR_DRIVER_APPOINTMENT_DATE" DATE,
"OR_ORDER_CANCELLATION_DATE" DATE,
"OR_NUMBEROF_DRIVERAPPOINTMENTS" NUMERIC(2,0),
"OR_ADVANCE_PURCHASE_INDICATOR" CHARACTER(1),
LC_DOWNPAYMENT_INVESTMENT_AM NUMERIC(11,2),
LC_DOWNPAYMENT_INVESTMENT_AM_EUR NUMERIC(11,2),
PRIMARY KEY ( "LEASE_CONTRACT_VEHICLE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE ( -- Number of Columns


= 226
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
LC_LEASE_CONTRACT_NUMBER NATIONAL CHARACTER VARYING(125),
LC_COST_CENTER_NAME NATIONAL CHARACTER VARYING(125),
LC_SLB_FLAG CHARACTER(1),
LC_START_DATE_LEASECONTRACT DATE,
LC_END_DATE_LEASECONTRACT DATE,
LC_BUDG_END_DATE_LEASECONTRACT DATE,
LC_STARTMILEAGELEASECONTRACTKM NUMERIC(7,0),
LC_ENDMILEAGELEASECONTRACT NUMERIC(7,0),
LC_CONTRACT_DURATION NUMERIC(3,0),
LC_CONTRACT_MILEAGE NUMERIC(7,0),
LC_DISCONMONTHLY_LEASEINST NUMERIC(11,2),
LC_MONTHLY_LEASEINSTALMENT NUMERIC(11,2),
LC_MVA_FEE_OVER_MILEAGE NUMERIC(11,2),
LC_MVA_REPAY_UNDER_MILEAGE NUMERIC(11,2),
LC_ACTUAL_INVEST_AMOUNT NUMERIC(11,2),
LC_BUDGETED_INVEST_AMOUNT NUMERIC(11,2),
LC_INVEST_INTEREST_BASE NUMERIC(11,2),
LC_PREPAYMNT_INTEREST_BASE NUMERIC(11,2),
LC_UFWT_AMOUNT NUMERIC(11,2),
LC_EXTENSION_PENALTY NUMERIC(11,2),
LC_EARLY_TERM_PENALTY NUMERIC(11,2),
VEH_VEHICLE_NUMBER NATIONAL CHARACTER VARYING(125),
VEH_MODEL_TYPE_DESCRIPTION NATIONAL CHARACTER VARYING(125),
VEH_CATALOGUE_PRICE NUMERIC(11,2),
VEH_CATALOGUE_PRICE_EUR NUMERIC(11,2),
VEH_ACTUAL_DISCOUNT_PERC NUMERIC(6,3),
VEH_COMMERCIAL_DISCNT_AMT NUMERIC(11,2),
VEH_COMMERCIAL_DISCNT_AMT_EUR NUMERIC(11,2),
VEH_TAX_AMT_NON_RECLAIM NUMERIC(11,2),
VEH_TAX_AMT_NON_RECLAIM_EUR NUMERIC(11,2),
VEH_VAT_PERCENTAGE NUMERIC(6,3),
VEH_TOT_OPTIONS_AMT NUMERIC(11,2),
VEH_TOTAL_OPTIONS_AMT_EUR NUMERIC(11,2),
VEH_TOT_ACCESSOIRIES_AMT NUMERIC(11,2),
VEH_TOT_ACCESSOIRIES_AMT_EUR NUMERIC(11,2),
VEH_DELIVERY_COSTS NUMERIC(11,2),
VEH_DELIVERY_COSTS_EUR NUMERIC(11,2),
VEH_REGISTRATION_NUMBER NATIONAL CHARACTER VARYING(125),
VEH_REGISTRATION_DATE DATE,
VEH_VEH_IDENTIFICATION_NUMBER NATIONAL CHARACTER VARYING(125),
VEH_NUMBER_OF_DOORS NUMERIC(3,0),
VEH_ENGINE_CAPACITY NUMERIC(5,0),
VEH_ENGINE_POWER NUMERIC(5,0),
VEH_NUMBER_OF_CYLINDERS NUMERIC(3,0),
VEH_TARE_WEIGHT NUMERIC(5,0),
VEH_GROSS_WEIGHT NUMERIC(5,0),
VEH_FUEL_CONSUMPT_MANUFACTURER NUMERIC(7,2),
VEH_EXTERNAL_REFERENCE NATIONAL CHARACTER VARYING(125),
VEH_TYRE_SIZE_AT_DELIVERY NATIONAL CHARACTER VARYING(125),
VEH_STANDARD_DISCOUNT_PERC NUMERIC(6,3),
LOAD_DATE DATE,
MNGSERV_TOT_RESIDUAL_VALUE NUMERIC(11,2),
MNGSERV_INTEREST_PERC_INVESTM NUMERIC(6,3),
MNGSERV_INTEREST_PERC_PREPAYM NUMERIC(6,3),
MNGSERV_TOT_RESIDUAL_VALUE_EUR NUMERIC(11,2),
LC_MONTHLY_LEASEINSTALMENT_EUR NUMERIC(11,2),
LC_MVA_FEE_OVER_MILEAGE_EUR NUMERIC(11,2),
LC_MVA_REPAY_UNDER_MILEAGE_EUR NUMERIC(11,2),
LC_ACTUAL_INVEST_AMOUNT_EUR NUMERIC(11,2),
LC_BUDGETED_INVEST_AMOUNT_EUR NUMERIC(11,2),
LC_INVEST_INTEREST_BASE_EUR NUMERIC(11,2),
LC_PREPAYMNT_INTEREST_BASE_EUR NUMERIC(11,2),
LC_UFWT_AMOUNT_EUR NUMERIC(11,2),
LC_EXTENSION_PENALTY_EUR NUMERIC(11,2),
LC_EARLY_TERM_PENALTY_EUR NUMERIC(11,2),
OR_ORDER_NUMBER NATIONAL CHARACTER VARYING(125),
OR_ORDER_DATE DATE,
OR_ESTIMATED_DELIVERY_DATE DATE,
CUSTOMER_SLA_ID BIGINT not null,
LC_DRIVER_NUMBER NATIONAL CHARACTER VARYING(125),
LC_DRIVER_NAME NATIONAL CHARACTER VARYING(125),
OR_ORDER_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125),
OR_ORDER_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125),
LC_LOCAL_KEY_LEASE_CONTRACT NATIONAL CHARACTER VARYING(125),
VEH_LOCAL_KEY_VEHICLE NATIONAL CHARACTER VARYING(125),
OR_LOCAL_KEY_ORDER NATIONAL CHARACTER VARYING(125),
LC_LOCAL_KEY_COST_CENTER NATIONAL CHARACTER VARYING(125),
LC_LOCAL_KEY_DRIVER NATIONAL CHARACTER VARYING(125),
OR_LOCAL_KEY_ORDER_SUPPLIER NATIONAL CHARACTER VARYING(125),
CH_LEASE_CONTRACT_STATUS_ID INTEGER not null,
CH_CONTRACT_TERMINATION_ID INTEGER not null,
CH_CONTRACT_STOP_REASON_ID INTEGER not null,
CH_REGISTRATION_STATUS_ID INTEGER not null,
CH_PURCHASED_BY_ID INTEGER not null,
CH_WINTER_TYRES_INCLUDED_ID INTEGER not null,
CH_MAKE_CODE_ID INTEGER not null,
CH_MODEL_CODE_ID INTEGER not null,
CH_BODY_STYLE_ID INTEGER not null,
CH_DRIVING_METHOD_ID INTEGER not null,
CH_EXTERIOR_COLOUR_ID INTEGER not null,
CH_EXTERIOR_COLOUR_TYPE_ID INTEGER not null,
CH_PRIMARY_FUEL_TYPE_ID INTEGER not null,
CH_TRANSMISSION_TYPE_ID INTEGER not null,
CH_UPHOLSTERY_TYPE_ID INTEGER not null,
CH_VEHICLE_TYPE_ID INTEGER not null,
CH_FLEET_REPORT_CATEGORY_ID INTEGER not null,
CH_PRODUCT_CATEGORY_TYPE_ID INTEGER not null,
PRODUCT_ID BIGINT not null,
LC_BOOK_VALUE NUMERIC(11,2),
CH_ASSET_TYPE_ID INTEGER not null,
CH_VEHICLE_SEGMENT_ID INTEGER not null,
CH_OEM_ID INTEGER not null,
LC_STARTMILEAGELEASECONTRACT NUMERIC(7,0),
LC_ENDMILEAGELEASECONTRACTKM NUMERIC(7,0),
LC_CONTRACT_MILEAGE_KM NUMERIC(7,0),
LC_BOOK_VALUE_EUR NUMERIC(11,2),
LC_DISCONMONTHLY_LEASEINST_EUR NUMERIC(11,2),
CH_VEHICLE_SEGMENT_LOCAL_ID INTEGER not null,
CH_MVA_SYSTEM_ID INTEGER not null,
CH_BUY_BACK_CODE INTEGER not null,
CH_RISK_RULING_CODE INTEGER not null,
CH_VEHICLE_GROUP_CODE INTEGER not null,
CH_DATA_SUPPLIER_VEHICLE_CODE INTEGER not null,
CH_OWN_DAMAGE_RISK_ID INTEGER not null,
CH_UFWT_TYPE_ID INTEGER not null,
CH_MVA_SETTLEMENT_ID INTEGER not null,
LC_CUSTOMER_DRIVER_ID NATIONAL CHARACTER VARYING(125),
VEH_CO2_LEVEL_COMBINED NUMERIC(6,0),
CH_SECONDARY_FUEL_TYPE INTEGER not null,
CH_NUMBER_OF_FORWARD_GEARS INTEGER not null,
VEH_INDICATOR_NEW_MODEL CHARACTER(1),
VEH_MODEL_END_DATE DATE,
VEH_MODEL_INTRO_DATE DATE,
VEH_MODEL_FACELIFT_INTRO_DATE DATE,
VEH_MODEL_FACELIFT_END_DATE DATE,
VEH_NUMBER_OF_SEATS NUMERIC(2,0),
LC_DRIVER_SET_SEND_DATE DATE,
LC_INTEREST_LOSS_AT_TERM NUMERIC(11,2),
LC_INTEREST_LOSS_AT_TERM_EUR NUMERIC(11,2),
LC_MVA_FEE_MIN_OVERMILEAGE NUMERIC(17,7),
LC_MVA_FEE_MIN_OVERMILEAGE_EUR NUMERIC(17,7),
LC_MVA_FEE_MID_OVERMILEAGE NUMERIC(17,7),
LC_MVA_FEE_MID_OVERMILEAGE_EUR NUMERIC(17,7),
LC_MVA_FEE_MAX_OVERMILEAGE NUMERIC(17,7),
LC_MVA_FEE_MAX_OVERMILEAGE_EUR NUMERIC(17,7),
LC_MVAREPAY_MINUNDERMILEAGE NUMERIC(17,7),
LC_MVAREPAY_MINUNDERMILEAGEEUR NUMERIC(17,7),
LC_MVAREPAY_MIDUNDERMILEAGE NUMERIC(17,7),
LC_MVAREPAY_MIDUNDERMILEAGEEUR NUMERIC(17,7),
LC_MVAREPAY_MAXUNDERMILEAGE NUMERIC(17,7),
LC_MVAREPAY_MAXUNDERMILEAGEEUR NUMERIC(17,7),
LC_MVA_THRESHHIGH_OVER_MILEAGE NUMERIC(7,0),
LC_MVA_THESHHIGH_UNDER_MILEAGE NUMERIC(7,0),
LC_MVA_THRESHLOW_UNDER_MILEAGE NUMERIC(7,0),
LC_MVA_THRESHLOW_OVER_MILEAGE NUMERIC(7,0),
LC_TERMINATION_PROCESS_DATE DATE,
LC_CREATION_DATE_LEASECONTRACT DATE,
LC_FORMAL_EXTENSION_APPLICABLE NATIONAL CHARACTER VARYING(125),
LC_ACTIVATION_DATE_FORMAL_EXT DATE,
LC_CONTRACT_DURATION_FORMAL_EX NUMERIC(3,0),
LC_CONTRACT_MILEAGE_FORMAL_EXT NUMERIC(7,0),
LC_RESIDUAL_VALUE_FORM_EXT NUMERIC(11,2),
LC_RESIDUAL_VALUE_FORM_EXT_EUR NUMERIC(11,2),
LC_CAR_INSPEC_ENG_DAM_AM NUMERIC(11,2),
LC_CAR_INSPEC_ENG_DAM_AM_EUR NUMERIC(11,2),
LC_CAR_INSPEC_EXT_DAM_AM NUMERIC(11,2),
LC_CAR_INSPEC_EXT_DAM_AM_EUR NUMERIC(11,2),
LC_CAR_INSPEC_INT_DAM_AM NUMERIC(11,2),
LC_CAR_INSPEC_INT_DAM_AM_EUR NUMERIC(11,2),
LC_MVA_UM_LIMIT_PERCENTAGE NUMERIC(6,3),
LC_MVA_OM_LIMIT_PERCENTAGE NUMERIC(6,3),
LC_MVA_UM_FACTOR NUMERIC(6,3),
LC_MVA_OM_FACTOR NUMERIC(6,3),
CH_TYRE_WIDTH_FRONT INTEGER not null,
CH_TYRE_WIDTH_REAR INTEGER not null,
CH_TYRE_RIM_DIAM_FRONT INTEGER not null,
CH_TYRE_RIM_DIAM_REAR INTEGER not null,
VEH_CONSUMER_PRICE NUMERIC(11,2),
VEH_CONSUMER_PRICE_EUR NUMERIC(11,2),
VEH_LUXURY_TAX_AM NUMERIC(11,2),
VEH_LUXURY_TAX_AM_EUR NUMERIC(11,2),
VEH_ENROLMENT_TAX_AM NUMERIC(11,2),
VEH_ENROLMENT_TAX_AM_EUR NUMERIC(11,2),
LC_UFWT_TOTAL_ASSESSED_AM NUMERIC(11,2),
LC_UFWT_TOTAL_ASSESSED_AM_EUR NUMERIC(11,2),
LC_RESIDUAL_VALUE_BASE NUMERIC(11,2),
LC_RESIDUAL_VALUE_BASE_EUR NUMERIC(11,2),
LC_INSURANCE_LOSS_RATIO NUMERIC(17,5),
LC_LAST_KNOWN_MILEAGE NUMERIC(7,0),
LC_LAST_KNOWN_MILEAGE_DATE DATE,
LC_CONTRACT_DURATION_FP NUMERIC(3,0),
LC_CONTRACT_MILEAGE_FP NUMERIC(7,0),
LC_MONTHLY_LEASEINSTALM_FP NUMERIC(11,2),
LC_BUDGETED_INVEST_AM_FP NUMERIC(11,2),
LC_MONTHLY_LEASEINSTALM_FP_EUR NUMERIC(11,2),
LC_BUDGETED_INVEST_AM_FP_EUR NUMERIC(11,2),
LC_START_DATE_LEASECONTRACT_FP DATE,
LC_END_DATE_LEASECONTRACT_FP DATE,
OR_CREATION_DATE_ORDER DATE,
LC_REGISTRATIONDATE_START DATE,
LC_REGISTRATIONDT_TERMINATION DATE,
LC_MVA_DEPR_TO_BE_INVOICED NUMERIC(11,2),
LC_MVA_RM_TO_BE_INVOICED NUMERIC(11,2),
LC_MVA_TYRES_TO_BE_INVOICED NUMERIC(11,2),
LC_UFWT_TO_BE_INVOICED NUMERIC(11,2),
LC_INVOICINGENDDATE_LC DATE,
CH_ACTIVATIONTYPE_LC INTEGER,
CH_DEACTIVATIONTYPE_LC INTEGER,
LC_LASTRECOGNIZEDOBJMILEAGE NUMERIC(7,0),
LC_LASTRECOGNIZEDOBJMILEAGEDT DATE,
CH_USAGE_BY_CUSTOMER_ID INTEGER,
LC_LOCAL_KEY_BUSINESS_UNIT NATIONAL CHARACTER VARYING(125),
LC_BUSINESS_UNIT_NAME NATIONAL CHARACTER VARYING(125),
LC_DRIVER_FIRST_NAME NATIONAL CHARACTER VARYING(125),
LC_DRIVER_LAST_NAME NATIONAL CHARACTER VARYING(125),
LC_SHORT_TERM_RENTAL_INDICATOR CHARACTER(1),
LC_ALLOCATION_STATUS_INDICATOR CHARACTER(1),
LC_NUMBER_OF_TYRES_IN_CONTRACT NUMERIC(2,0),
TELEMATICS_DEV_INSTALL_FLAG CHARACTER(1) not null,
TELEMATICS_DEV_INSTALL_DATE DATE not null,
TELEMATICS_DEV_DEINSTALL_DATE DATE not null,
PRECEDING_LEASECONTRVEHICLE_ID BIGINT,
LC_RENEWAL_INDICATOR CHARACTER(1),
LC_RELEASING_INDICATOR CHARACTER(1),
LC_RELEASING_START_DATE DATE,
CH_ORDER_STATUS_ID INTEGER not null,
OR_ACTUAL_DELIVERY_DATE DATE,
OR_ORDER_RECEIPT_CONFIRM_DATE DATE,
OR_CERTIFICATE_RECEIPT_DATE DATE,
OR_FIRSTDRIVERAPPOINTMENT_DATE DATE,
OR_DRIVER_APPOINTMENT_DATE DATE,
OR_ORDER_CANCELLATION_DATE DATE,
OR_NUMBEROF_DRIVERAPPOINTMENTS NUMERIC(2,0),
OR_ADVANCE_PURCHASE_INDICATOR CHARACTER(1)
) DISTRIBUTE ON RANDOM;

-- Table LEASE_CONTRACT_VEHICLE version 2;


SET collapse_empty_table_version = false;
ALTER TABLE LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVESTMENT_AM NUMERIC(11,2);
SET collapse_empty_table_version = true;
ALTER TABLE LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVEST_AM_EUR NUMERIC(11,2);
ALTER TABLE LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVESTMENT_AM_EUR NUMERIC(11,2);
ALTER TABLE LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE DROP COLUMN
LC_DOWNPAYMENT_INVEST_AM_EUR CASCADE;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ( -- Number of Columns


= 226
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
LC_LEASE_CONTRACT_NUMBER NATIONAL CHARACTER VARYING(125),
LC_COST_CENTER_NAME NATIONAL CHARACTER VARYING(125),
LC_SLB_FLAG CHARACTER(1),
LC_START_DATE_LEASECONTRACT DATE,
LC_END_DATE_LEASECONTRACT DATE,
LC_BUDG_END_DATE_LEASECONTRACT DATE,
LC_STARTMILEAGELEASECONTRACTKM NUMERIC(7,0),
LC_ENDMILEAGELEASECONTRACT NUMERIC(7,0),
LC_CONTRACT_DURATION NUMERIC(3,0),
LC_CONTRACT_MILEAGE NUMERIC(7,0),
LC_DISCONMONTHLY_LEASEINST NUMERIC(11,2),
LC_MONTHLY_LEASEINSTALMENT NUMERIC(11,2),
LC_MVA_FEE_OVER_MILEAGE NUMERIC(11,2),
LC_MVA_REPAY_UNDER_MILEAGE NUMERIC(11,2),
LC_ACTUAL_INVEST_AMOUNT NUMERIC(11,2),
LC_BUDGETED_INVEST_AMOUNT NUMERIC(11,2),
LC_INVEST_INTEREST_BASE NUMERIC(11,2),
LC_PREPAYMNT_INTEREST_BASE NUMERIC(11,2),
LC_UFWT_AMOUNT NUMERIC(11,2),
LC_EXTENSION_PENALTY NUMERIC(11,2),
LC_EARLY_TERM_PENALTY NUMERIC(11,2),
VEH_VEHICLE_NUMBER NATIONAL CHARACTER VARYING(125),
VEH_MODEL_TYPE_DESCRIPTION NATIONAL CHARACTER VARYING(125),
VEH_CATALOGUE_PRICE NUMERIC(11,2),
VEH_CATALOGUE_PRICE_EUR NUMERIC(11,2),
VEH_ACTUAL_DISCOUNT_PERC NUMERIC(6,3),
VEH_COMMERCIAL_DISCNT_AMT NUMERIC(11,2),
VEH_COMMERCIAL_DISCNT_AMT_EUR NUMERIC(11,2),
VEH_TAX_AMT_NON_RECLAIM NUMERIC(11,2),
VEH_TAX_AMT_NON_RECLAIM_EUR NUMERIC(11,2),
VEH_VAT_PERCENTAGE NUMERIC(6,3),
VEH_TOT_OPTIONS_AMT NUMERIC(11,2),
VEH_TOTAL_OPTIONS_AMT_EUR NUMERIC(11,2),
VEH_TOT_ACCESSOIRIES_AMT NUMERIC(11,2),
VEH_TOT_ACCESSOIRIES_AMT_EUR NUMERIC(11,2),
VEH_DELIVERY_COSTS NUMERIC(11,2),
VEH_DELIVERY_COSTS_EUR NUMERIC(11,2),
VEH_REGISTRATION_NUMBER NATIONAL CHARACTER VARYING(125),
VEH_REGISTRATION_DATE DATE,
VEH_VEH_IDENTIFICATION_NUMBER NATIONAL CHARACTER VARYING(125),
VEH_NUMBER_OF_DOORS NUMERIC(3,0),
VEH_ENGINE_CAPACITY NUMERIC(5,0),
VEH_ENGINE_POWER NUMERIC(5,0),
VEH_NUMBER_OF_CYLINDERS NUMERIC(3,0),
VEH_TARE_WEIGHT NUMERIC(5,0),
VEH_GROSS_WEIGHT NUMERIC(5,0),
VEH_FUEL_CONSUMPT_MANUFACTURER NUMERIC(7,2),
VEH_EXTERNAL_REFERENCE NATIONAL CHARACTER VARYING(125),
VEH_TYRE_SIZE_AT_DELIVERY NATIONAL CHARACTER VARYING(125),
VEH_STANDARD_DISCOUNT_PERC NUMERIC(6,3),
LOAD_DATE DATE,
MNGSERV_TOT_RESIDUAL_VALUE NUMERIC(11,2),
MNGSERV_INTEREST_PERC_INVESTM NUMERIC(6,3),
MNGSERV_INTEREST_PERC_PREPAYM NUMERIC(6,3),
MNGSERV_TOT_RESIDUAL_VALUE_EUR NUMERIC(11,2),
LC_MONTHLY_LEASEINSTALMENT_EUR NUMERIC(11,2),
LC_MVA_FEE_OVER_MILEAGE_EUR NUMERIC(11,2),
LC_MVA_REPAY_UNDER_MILEAGE_EUR NUMERIC(11,2),
LC_ACTUAL_INVEST_AMOUNT_EUR NUMERIC(11,2),
LC_BUDGETED_INVEST_AMOUNT_EUR NUMERIC(11,2),
LC_INVEST_INTEREST_BASE_EUR NUMERIC(11,2),
LC_PREPAYMNT_INTEREST_BASE_EUR NUMERIC(11,2),
LC_UFWT_AMOUNT_EUR NUMERIC(11,2),
LC_EXTENSION_PENALTY_EUR NUMERIC(11,2),
LC_EARLY_TERM_PENALTY_EUR NUMERIC(11,2),
OR_ORDER_NUMBER NATIONAL CHARACTER VARYING(125),
OR_ORDER_DATE DATE,
OR_ESTIMATED_DELIVERY_DATE DATE,
CUSTOMER_SLA_ID BIGINT not null,
LC_DRIVER_NUMBER NATIONAL CHARACTER VARYING(125),
LC_DRIVER_NAME NATIONAL CHARACTER VARYING(125),
OR_ORDER_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125),
OR_ORDER_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125),
LC_LOCAL_KEY_LEASE_CONTRACT NATIONAL CHARACTER VARYING(125),
VEH_LOCAL_KEY_VEHICLE NATIONAL CHARACTER VARYING(125),
OR_LOCAL_KEY_ORDER NATIONAL CHARACTER VARYING(125),
LC_LOCAL_KEY_COST_CENTER NATIONAL CHARACTER VARYING(125),
LC_LOCAL_KEY_DRIVER NATIONAL CHARACTER VARYING(125),
OR_LOCAL_KEY_ORDER_SUPPLIER NATIONAL CHARACTER VARYING(125),
CH_LEASE_CONTRACT_STATUS_ID INTEGER not null,
CH_CONTRACT_TERMINATION_ID INTEGER not null,
CH_CONTRACT_STOP_REASON_ID INTEGER not null,
CH_REGISTRATION_STATUS_ID INTEGER not null,
CH_PURCHASED_BY_ID INTEGER not null,
CH_WINTER_TYRES_INCLUDED_ID INTEGER not null,
CH_MAKE_CODE_ID INTEGER not null,
CH_MODEL_CODE_ID INTEGER not null,
CH_BODY_STYLE_ID INTEGER not null,
CH_DRIVING_METHOD_ID INTEGER not null,
CH_EXTERIOR_COLOUR_ID INTEGER not null,
CH_EXTERIOR_COLOUR_TYPE_ID INTEGER not null,
CH_PRIMARY_FUEL_TYPE_ID INTEGER not null,
CH_TRANSMISSION_TYPE_ID INTEGER not null,
CH_UPHOLSTERY_TYPE_ID INTEGER not null,
CH_VEHICLE_TYPE_ID INTEGER not null,
CH_FLEET_REPORT_CATEGORY_ID INTEGER not null,
CH_PRODUCT_CATEGORY_TYPE_ID INTEGER not null,
PRODUCT_ID BIGINT not null,
LC_BOOK_VALUE NUMERIC(11,2),
CH_ASSET_TYPE_ID INTEGER not null,
CH_VEHICLE_SEGMENT_ID INTEGER not null,
CH_OEM_ID INTEGER not null,
LC_STARTMILEAGELEASECONTRACT NUMERIC(7,0),
LC_ENDMILEAGELEASECONTRACTKM NUMERIC(7,0),
LC_CONTRACT_MILEAGE_KM NUMERIC(7,0),
LC_BOOK_VALUE_EUR NUMERIC(11,2),
LC_DISCONMONTHLY_LEASEINST_EUR NUMERIC(11,2),
CH_VEHICLE_SEGMENT_LOCAL_ID INTEGER not null,
CH_MVA_SYSTEM_ID INTEGER not null,
CH_BUY_BACK_CODE INTEGER not null,
CH_RISK_RULING_CODE INTEGER not null,
CH_VEHICLE_GROUP_CODE INTEGER not null,
CH_DATA_SUPPLIER_VEHICLE_CODE INTEGER not null,
CH_OWN_DAMAGE_RISK_ID INTEGER not null,
CH_UFWT_TYPE_ID INTEGER not null,
CH_MVA_SETTLEMENT_ID INTEGER not null,
LC_CUSTOMER_DRIVER_ID NATIONAL CHARACTER VARYING(125),
VEH_CO2_LEVEL_COMBINED NUMERIC(6,0),
CH_SECONDARY_FUEL_TYPE INTEGER not null,
CH_NUMBER_OF_FORWARD_GEARS INTEGER not null,
VEH_INDICATOR_NEW_MODEL CHARACTER(1),
VEH_MODEL_END_DATE DATE,
VEH_MODEL_INTRO_DATE DATE,
VEH_MODEL_FACELIFT_INTRO_DATE DATE,
VEH_MODEL_FACELIFT_END_DATE DATE,
VEH_NUMBER_OF_SEATS NUMERIC(2,0),
LC_DRIVER_SET_SEND_DATE DATE,
LC_INTEREST_LOSS_AT_TERM NUMERIC(11,2),
LC_INTEREST_LOSS_AT_TERM_EUR NUMERIC(11,2),
LC_MVA_FEE_MIN_OVERMILEAGE NUMERIC(17,7),
LC_MVA_FEE_MIN_OVERMILEAGE_EUR NUMERIC(17,7),
LC_MVA_FEE_MID_OVERMILEAGE NUMERIC(17,7),
LC_MVA_FEE_MID_OVERMILEAGE_EUR NUMERIC(17,7),
LC_MVA_FEE_MAX_OVERMILEAGE NUMERIC(17,7),
LC_MVA_FEE_MAX_OVERMILEAGE_EUR NUMERIC(17,7),
LC_MVAREPAY_MINUNDERMILEAGE NUMERIC(17,7),
LC_MVAREPAY_MINUNDERMILEAGEEUR NUMERIC(17,7),
LC_MVAREPAY_MIDUNDERMILEAGE NUMERIC(17,7),
LC_MVAREPAY_MIDUNDERMILEAGEEUR NUMERIC(17,7),
LC_MVAREPAY_MAXUNDERMILEAGE NUMERIC(17,7),
LC_MVAREPAY_MAXUNDERMILEAGEEUR NUMERIC(17,7),
LC_MVA_THRESHHIGH_OVER_MILEAGE NUMERIC(7,0),
LC_MVA_THESHHIGH_UNDER_MILEAGE NUMERIC(7,0),
LC_MVA_THRESHLOW_UNDER_MILEAGE NUMERIC(7,0),
LC_MVA_THRESHLOW_OVER_MILEAGE NUMERIC(7,0),
LC_TERMINATION_PROCESS_DATE DATE,
LC_CREATION_DATE_LEASECONTRACT DATE,
LC_FORMAL_EXTENSION_APPLICABLE NATIONAL CHARACTER VARYING(125),
LC_ACTIVATION_DATE_FORMAL_EXT DATE,
LC_CONTRACT_DURATION_FORMAL_EX NUMERIC(3,0),
LC_CONTRACT_MILEAGE_FORMAL_EXT NUMERIC(7,0),
LC_RESIDUAL_VALUE_FORM_EXT NUMERIC(11,2),
LC_RESIDUAL_VALUE_FORM_EXT_EUR NUMERIC(11,2),
LC_CAR_INSPEC_ENG_DAM_AM NUMERIC(11,2),
LC_CAR_INSPEC_ENG_DAM_AM_EUR NUMERIC(11,2),
LC_CAR_INSPEC_EXT_DAM_AM NUMERIC(11,2),
LC_CAR_INSPEC_EXT_DAM_AM_EUR NUMERIC(11,2),
LC_CAR_INSPEC_INT_DAM_AM NUMERIC(11,2),
LC_CAR_INSPEC_INT_DAM_AM_EUR NUMERIC(11,2),
LC_MVA_UM_LIMIT_PERCENTAGE NUMERIC(6,3),
LC_MVA_OM_LIMIT_PERCENTAGE NUMERIC(6,3),
LC_MVA_UM_FACTOR NUMERIC(6,3),
LC_MVA_OM_FACTOR NUMERIC(6,3),
CH_TYRE_WIDTH_FRONT INTEGER not null,
CH_TYRE_WIDTH_REAR INTEGER not null,
CH_TYRE_RIM_DIAM_FRONT INTEGER not null,
CH_TYRE_RIM_DIAM_REAR INTEGER not null,
VEH_CONSUMER_PRICE NUMERIC(11,2),
VEH_CONSUMER_PRICE_EUR NUMERIC(11,2),
VEH_LUXURY_TAX_AM NUMERIC(11,2),
VEH_LUXURY_TAX_AM_EUR NUMERIC(11,2),
VEH_ENROLMENT_TAX_AM NUMERIC(11,2),
VEH_ENROLMENT_TAX_AM_EUR NUMERIC(11,2),
LC_UFWT_TOTAL_ASSESSED_AM NUMERIC(11,2),
LC_UFWT_TOTAL_ASSESSED_AM_EUR NUMERIC(11,2),
LC_RESIDUAL_VALUE_BASE NUMERIC(11,2),
LC_RESIDUAL_VALUE_BASE_EUR NUMERIC(11,2),
LC_INSURANCE_LOSS_RATIO NUMERIC(17,5),
LC_LAST_KNOWN_MILEAGE NUMERIC(7,0),
LC_LAST_KNOWN_MILEAGE_DATE DATE,
LC_CONTRACT_DURATION_FP NUMERIC(3,0),
LC_CONTRACT_MILEAGE_FP NUMERIC(7,0),
LC_MONTHLY_LEASEINSTALM_FP NUMERIC(11,2),
LC_BUDGETED_INVEST_AM_FP NUMERIC(11,2),
LC_MONTHLY_LEASEINSTALM_FP_EUR NUMERIC(11,2),
LC_BUDGETED_INVEST_AM_FP_EUR NUMERIC(11,2),
LC_START_DATE_LEASECONTRACT_FP DATE,
LC_END_DATE_LEASECONTRACT_FP DATE,
OR_CREATION_DATE_ORDER DATE,
LC_REGISTRATIONDATE_START DATE,
LC_REGISTRATIONDT_TERMINATION DATE,
LC_MVA_DEPR_TO_BE_INVOICED NUMERIC(11,2),
LC_MVA_RM_TO_BE_INVOICED NUMERIC(11,2),
LC_MVA_TYRES_TO_BE_INVOICED NUMERIC(11,2),
LC_UFWT_TO_BE_INVOICED NUMERIC(11,2),
LC_INVOICINGENDDATE_LC DATE,
CH_ACTIVATIONTYPE_LC INTEGER,
CH_DEACTIVATIONTYPE_LC INTEGER,
LC_LASTRECOGNIZEDOBJMILEAGE NUMERIC(7,0),
LC_LASTRECOGNIZEDOBJMILEAGEDT DATE,
CH_USAGE_BY_CUSTOMER_ID INTEGER,
LC_LOCAL_KEY_BUSINESS_UNIT NATIONAL CHARACTER VARYING(125),
LC_BUSINESS_UNIT_NAME NATIONAL CHARACTER VARYING(125),
LC_DRIVER_FIRST_NAME NATIONAL CHARACTER VARYING(125),
LC_DRIVER_LAST_NAME NATIONAL CHARACTER VARYING(125),
LC_SHORT_TERM_RENTAL_INDICATOR CHARACTER(1),
LC_ALLOCATION_STATUS_INDICATOR CHARACTER(1),
LC_NUMBER_OF_TYRES_IN_CONTRACT NUMERIC(2,0),
TELEMATICS_DEV_INSTALL_FLAG CHARACTER(1) not null,
TELEMATICS_DEV_INSTALL_DATE DATE not null,
TELEMATICS_DEV_DEINSTALL_DATE DATE not null,
PRECEDING_LEASECONTRVEHICLE_ID BIGINT,
LC_RENEWAL_INDICATOR CHARACTER(1),
LC_RELEASING_INDICATOR CHARACTER(1),
LC_RELEASING_START_DATE DATE,
CH_ORDER_STATUS_ID INTEGER not null,
OR_ACTUAL_DELIVERY_DATE DATE,
OR_ORDER_RECEIPT_CONFIRM_DATE DATE,
OR_CERTIFICATE_RECEIPT_DATE DATE,
OR_FIRSTDRIVERAPPOINTMENT_DATE DATE,
OR_DRIVER_APPOINTMENT_DATE DATE,
OR_ORDER_CANCELLATION_DATE DATE,
OR_NUMBEROF_DRIVERAPPOINTMENTS NUMERIC(2,0),
OR_ADVANCE_PURCHASE_INDICATOR CHARACTER(1)
) DISTRIBUTE ON RANDOM;

-- Table LEASE_CONTRACT_VEHICLE version 2;


SET collapse_empty_table_version = false;
ALTER TABLE LPNO_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVESTMENT_AM NUMERIC(11,2);
SET collapse_empty_table_version = true;
ALTER TABLE LPNO_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVEST_AM_EUR NUMERIC(11,2);
ALTER TABLE LPNO_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVESTMENT_AM_EUR NUMERIC(11,2);
ALTER TABLE LPNO_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE DROP COLUMN
LC_DOWNPAYMENT_INVEST_AM_EUR CASCADE;

ALTER TABLE LPNO_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD CONSTRAINT


LEASE_CONTRACT_VEHICLE_PK PRIMARY KEY ( LEASE_CONTRACT_VEHICLE_ID );
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ( -- Number of Columns


= 226
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"LC_LEASE_CONTRACT_NUMBER" NATIONAL CHARACTER VARYING(125),
"LC_COST_CENTER_NAME" NATIONAL CHARACTER VARYING(125),
"LC_SLB_FLAG" CHARACTER(1),
"LC_START_DATE_LEASECONTRACT" DATE,
"LC_END_DATE_LEASECONTRACT" DATE,
"LC_BUDG_END_DATE_LEASECONTRACT" DATE,
"LC_STARTMILEAGELEASECONTRACTKM" NUMERIC(7,0),
"LC_ENDMILEAGELEASECONTRACT" NUMERIC(7,0),
"LC_CONTRACT_DURATION" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE" NUMERIC(7,0),
"LC_DISCONMONTHLY_LEASEINST" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALMENT" NUMERIC(11,2),
"LC_MVA_FEE_OVER_MILEAGE" NUMERIC(11,2),
"LC_MVA_REPAY_UNDER_MILEAGE" NUMERIC(11,2),
"LC_ACTUAL_INVEST_AMOUNT" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AMOUNT" NUMERIC(11,2),
"LC_INVEST_INTEREST_BASE" NUMERIC(11,2),
"LC_PREPAYMNT_INTEREST_BASE" NUMERIC(11,2),
"LC_UFWT_AMOUNT" NUMERIC(11,2),
"LC_EXTENSION_PENALTY" NUMERIC(11,2),
"LC_EARLY_TERM_PENALTY" NUMERIC(11,2),
"VEH_VEHICLE_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_MODEL_TYPE_DESCRIPTION" NATIONAL CHARACTER VARYING(125),
"VEH_CATALOGUE_PRICE" NUMERIC(11,2),
"VEH_CATALOGUE_PRICE_EUR" NUMERIC(11,2),
"VEH_ACTUAL_DISCOUNT_PERC" NUMERIC(6,3),
"VEH_COMMERCIAL_DISCNT_AMT" NUMERIC(11,2),
"VEH_COMMERCIAL_DISCNT_AMT_EUR" NUMERIC(11,2),
"VEH_TAX_AMT_NON_RECLAIM" NUMERIC(11,2),
"VEH_TAX_AMT_NON_RECLAIM_EUR" NUMERIC(11,2),
"VEH_VAT_PERCENTAGE" NUMERIC(6,3),
"VEH_TOT_OPTIONS_AMT" NUMERIC(11,2),
"VEH_TOTAL_OPTIONS_AMT_EUR" NUMERIC(11,2),
"VEH_TOT_ACCESSOIRIES_AMT" NUMERIC(11,2),
"VEH_TOT_ACCESSOIRIES_AMT_EUR" NUMERIC(11,2),
"VEH_DELIVERY_COSTS" NUMERIC(11,2),
"VEH_DELIVERY_COSTS_EUR" NUMERIC(11,2),
"VEH_REGISTRATION_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_REGISTRATION_DATE" DATE,
"VEH_VEH_IDENTIFICATION_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_NUMBER_OF_DOORS" NUMERIC(3,0),
"VEH_ENGINE_CAPACITY" NUMERIC(5,0),
"VEH_ENGINE_POWER" NUMERIC(5,0),
"VEH_NUMBER_OF_CYLINDERS" NUMERIC(3,0),
"VEH_TARE_WEIGHT" NUMERIC(5,0),
"VEH_GROSS_WEIGHT" NUMERIC(5,0),
"VEH_FUEL_CONSUMPT_MANUFACTURER" NUMERIC(7,2),
"VEH_EXTERNAL_REFERENCE" NATIONAL CHARACTER VARYING(125),
"VEH_TYRE_SIZE_AT_DELIVERY" NATIONAL CHARACTER VARYING(125),
"VEH_STANDARD_DISCOUNT_PERC" NUMERIC(6,3),
"LOAD_DATE" DATE,
"MNGSERV_TOT_RESIDUAL_VALUE" NUMERIC(11,2),
"MNGSERV_INTEREST_PERC_INVESTM" NUMERIC(6,3),
"MNGSERV_INTEREST_PERC_PREPAYM" NUMERIC(6,3),
"MNGSERV_TOT_RESIDUAL_VALUE_EUR" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALMENT_EUR" NUMERIC(11,2),
"LC_MVA_FEE_OVER_MILEAGE_EUR" NUMERIC(11,2),
"LC_MVA_REPAY_UNDER_MILEAGE_EUR" NUMERIC(11,2),
"LC_ACTUAL_INVEST_AMOUNT_EUR" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AMOUNT_EUR" NUMERIC(11,2),
"LC_INVEST_INTEREST_BASE_EUR" NUMERIC(11,2),
"LC_PREPAYMNT_INTEREST_BASE_EUR" NUMERIC(11,2),
"LC_UFWT_AMOUNT_EUR" NUMERIC(11,2),
"LC_EXTENSION_PENALTY_EUR" NUMERIC(11,2),
"LC_EARLY_TERM_PENALTY_EUR" NUMERIC(11,2),
"OR_ORDER_NUMBER" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_DATE" DATE,
"OR_ESTIMATED_DELIVERY_DATE" DATE,
"CUSTOMER_SLA_ID" BIGINT not null,
"LC_DRIVER_NUMBER" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_NAME" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_LEASE_CONTRACT" NATIONAL CHARACTER VARYING(125),
"VEH_LOCAL_KEY_VEHICLE" NATIONAL CHARACTER VARYING(125),
"OR_LOCAL_KEY_ORDER" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_COST_CENTER" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_DRIVER" NATIONAL CHARACTER VARYING(125),
"OR_LOCAL_KEY_ORDER_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER not null,
"CH_CONTRACT_TERMINATION_ID" INTEGER not null,
"CH_CONTRACT_STOP_REASON_ID" INTEGER not null,
"CH_REGISTRATION_STATUS_ID" INTEGER not null,
"CH_PURCHASED_BY_ID" INTEGER not null,
"CH_WINTER_TYRES_INCLUDED_ID" INTEGER not null,
"CH_MAKE_CODE_ID" INTEGER not null,
"CH_MODEL_CODE_ID" INTEGER not null,
"CH_BODY_STYLE_ID" INTEGER not null,
"CH_DRIVING_METHOD_ID" INTEGER not null,
"CH_EXTERIOR_COLOUR_ID" INTEGER not null,
"CH_EXTERIOR_COLOUR_TYPE_ID" INTEGER not null,
"CH_PRIMARY_FUEL_TYPE_ID" INTEGER not null,
"CH_TRANSMISSION_TYPE_ID" INTEGER not null,
"CH_UPHOLSTERY_TYPE_ID" INTEGER not null,
"CH_VEHICLE_TYPE_ID" INTEGER not null,
"CH_FLEET_REPORT_CATEGORY_ID" INTEGER not null,
"CH_PRODUCT_CATEGORY_TYPE_ID" INTEGER not null,
"PRODUCT_ID" BIGINT not null,
"LC_BOOK_VALUE" NUMERIC(11,2),
"CH_ASSET_TYPE_ID" INTEGER not null,
"CH_VEHICLE_SEGMENT_ID" INTEGER not null,
"CH_OEM_ID" INTEGER not null,
"LC_STARTMILEAGELEASECONTRACT" NUMERIC(7,0),
"LC_ENDMILEAGELEASECONTRACTKM" NUMERIC(7,0),
"LC_CONTRACT_MILEAGE_KM" NUMERIC(7,0),
"LC_BOOK_VALUE_EUR" NUMERIC(11,2),
"LC_DISCONMONTHLY_LEASEINST_EUR" NUMERIC(11,2),
"CH_VEHICLE_SEGMENT_LOCAL_ID" INTEGER not null,
"CH_MVA_SYSTEM_ID" INTEGER not null,
"CH_BUY_BACK_CODE" INTEGER not null,
"CH_RISK_RULING_CODE" INTEGER not null,
"CH_VEHICLE_GROUP_CODE" INTEGER not null,
"CH_DATA_SUPPLIER_VEHICLE_CODE" INTEGER not null,
"CH_OWN_DAMAGE_RISK_ID" INTEGER not null,
"CH_UFWT_TYPE_ID" INTEGER not null,
"CH_MVA_SETTLEMENT_ID" INTEGER not null,
"LC_CUSTOMER_DRIVER_ID" NATIONAL CHARACTER VARYING(125),
"VEH_CO2_LEVEL_COMBINED" NUMERIC(6,0),
"CH_SECONDARY_FUEL_TYPE" INTEGER not null,
"CH_NUMBER_OF_FORWARD_GEARS" INTEGER not null,
"VEH_INDICATOR_NEW_MODEL" CHARACTER(1),
"VEH_MODEL_END_DATE" DATE,
"VEH_MODEL_INTRO_DATE" DATE,
"VEH_MODEL_FACELIFT_INTRO_DATE" DATE,
"VEH_MODEL_FACELIFT_END_DATE" DATE,
"VEH_NUMBER_OF_SEATS" NUMERIC(2,0),
"LC_DRIVER_SET_SEND_DATE" DATE,
"LC_INTEREST_LOSS_AT_TERM" NUMERIC(11,2),
"LC_INTEREST_LOSS_AT_TERM_EUR" NUMERIC(11,2),
"LC_MVA_FEE_MIN_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MIN_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVA_FEE_MID_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MID_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVA_FEE_MAX_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MAX_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVAREPAY_MINUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MINUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVAREPAY_MIDUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MIDUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVAREPAY_MAXUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MAXUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVA_THRESHHIGH_OVER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THESHHIGH_UNDER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THRESHLOW_UNDER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THRESHLOW_OVER_MILEAGE" NUMERIC(7,0),
"LC_TERMINATION_PROCESS_DATE" DATE,
"LC_CREATION_DATE_LEASECONTRACT" DATE,
"LC_FORMAL_EXTENSION_APPLICABLE" NATIONAL CHARACTER VARYING(125),
"LC_ACTIVATION_DATE_FORMAL_EXT" DATE,
"LC_CONTRACT_DURATION_FORMAL_EX" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE_FORMAL_EXT" NUMERIC(7,0),
"LC_RESIDUAL_VALUE_FORM_EXT" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_FORM_EXT_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_ENG_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_ENG_DAM_AM_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_EXT_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_EXT_DAM_AM_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_INT_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_INT_DAM_AM_EUR" NUMERIC(11,2),
"LC_MVA_UM_LIMIT_PERCENTAGE" NUMERIC(6,3),
"LC_MVA_OM_LIMIT_PERCENTAGE" NUMERIC(6,3),
"LC_MVA_UM_FACTOR" NUMERIC(6,3),
"LC_MVA_OM_FACTOR" NUMERIC(6,3),
"CH_TYRE_WIDTH_FRONT" INTEGER not null,
"CH_TYRE_WIDTH_REAR" INTEGER not null,
"CH_TYRE_RIM_DIAM_FRONT" INTEGER not null,
"CH_TYRE_RIM_DIAM_REAR" INTEGER not null,
"VEH_CONSUMER_PRICE" NUMERIC(11,2),
"VEH_CONSUMER_PRICE_EUR" NUMERIC(11,2),
"VEH_LUXURY_TAX_AM" NUMERIC(11,2),
"VEH_LUXURY_TAX_AM_EUR" NUMERIC(11,2),
"VEH_ENROLMENT_TAX_AM" NUMERIC(11,2),
"VEH_ENROLMENT_TAX_AM_EUR" NUMERIC(11,2),
"LC_UFWT_TOTAL_ASSESSED_AM" NUMERIC(11,2),
"LC_UFWT_TOTAL_ASSESSED_AM_EUR" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_BASE" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_BASE_EUR" NUMERIC(11,2),
"LC_INSURANCE_LOSS_RATIO" NUMERIC(17,5),
"LC_LAST_KNOWN_MILEAGE" NUMERIC(7,0),
"LC_LAST_KNOWN_MILEAGE_DATE" DATE,
"LC_CONTRACT_DURATION_FP" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE_FP" NUMERIC(7,0),
"LC_MONTHLY_LEASEINSTALM_FP" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AM_FP" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALM_FP_EUR" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AM_FP_EUR" NUMERIC(11,2),
"LC_START_DATE_LEASECONTRACT_FP" DATE,
"LC_END_DATE_LEASECONTRACT_FP" DATE,
"OR_CREATION_DATE_ORDER" DATE,
"LC_REGISTRATIONDATE_START" DATE,
"LC_REGISTRATIONDT_TERMINATION" DATE,
"LC_MVA_DEPR_TO_BE_INVOICED" NUMERIC(11,2),
"LC_MVA_RM_TO_BE_INVOICED" NUMERIC(11,2),
"LC_MVA_TYRES_TO_BE_INVOICED" NUMERIC(11,2),
"LC_UFWT_TO_BE_INVOICED" NUMERIC(11,2),
"LC_INVOICINGENDDATE_LC" DATE,
"CH_ACTIVATIONTYPE_LC" INTEGER,
"CH_DEACTIVATIONTYPE_LC" INTEGER,
"LC_LASTRECOGNIZEDOBJMILEAGE" NUMERIC(7,0),
"LC_LASTRECOGNIZEDOBJMILEAGEDT" DATE,
"CH_USAGE_BY_CUSTOMER_ID" INTEGER,
"LC_LOCAL_KEY_BUSINESS_UNIT" NATIONAL CHARACTER VARYING(125),
"LC_BUSINESS_UNIT_NAME" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_FIRST_NAME" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_LAST_NAME" NATIONAL CHARACTER VARYING(125),
"LC_SHORT_TERM_RENTAL_INDICATOR" CHARACTER(1),
"LC_ALLOCATION_STATUS_INDICATOR" CHARACTER(1),
"LC_NUMBER_OF_TYRES_IN_CONTRACT" NUMERIC(2,0),
"TELEMATICS_DEV_INSTALL_FLAG" CHARACTER(1) not null,
"TELEMATICS_DEV_INSTALL_DATE" DATE not null,
"TELEMATICS_DEV_DEINSTALL_DATE" DATE not null,
"PRECEDING_LEASECONTRVEHICLE_ID" BIGINT,
"LC_RENEWAL_INDICATOR" CHARACTER(1),
"LC_RELEASING_INDICATOR" CHARACTER(1),
"LC_RELEASING_START_DATE" DATE,
"CH_ORDER_STATUS_ID" INTEGER not null,
"OR_ACTUAL_DELIVERY_DATE" DATE,
"OR_ORDER_RECEIPT_CONFIRM_DATE" DATE,
"OR_CERTIFICATE_RECEIPT_DATE" DATE,
"OR_FIRSTDRIVERAPPOINTMENT_DATE" DATE,
"OR_DRIVER_APPOINTMENT_DATE" DATE,
"OR_ORDER_CANCELLATION_DATE" DATE,
"OR_NUMBEROF_DRIVERAPPOINTMENTS" NUMERIC(2,0),
"OR_ADVANCE_PURCHASE_INDICATOR" CHARACTER(1)
) DISTRIBUTE ON RANDOM;

-- Table LEASE_CONTRACT_VEHICLE version 2;


SET collapse_empty_table_version = false;
ALTER TABLE LPUS_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVESTMENT_AM NUMERIC(11,2);
SET collapse_empty_table_version = true;
ALTER TABLE LPUS_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVEST_AM_EUR NUMERIC(11,2);
ALTER TABLE LPUS_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVESTMENT_AM_EUR NUMERIC(11,2);
ALTER TABLE LPUS_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE DROP COLUMN
LC_DOWNPAYMENT_INVEST_AM_EUR CASCADE;

ALTER TABLE LPUS_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD CONSTRAINT


"LEASE_CONTRACT_VEHICLE_PK" PRIMARY KEY ( "LEASE_CONTRACT_VEHICLE_ID" );
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE ( -- Number of Columns


= 226
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
LC_LEASE_CONTRACT_NUMBER NATIONAL CHARACTER VARYING(125),
LC_COST_CENTER_NAME NATIONAL CHARACTER VARYING(125),
LC_SLB_FLAG CHARACTER(1),
LC_START_DATE_LEASECONTRACT DATE,
LC_END_DATE_LEASECONTRACT DATE,
LC_BUDG_END_DATE_LEASECONTRACT DATE,
LC_STARTMILEAGELEASECONTRACTKM NUMERIC(7,0),
LC_ENDMILEAGELEASECONTRACT NUMERIC(7,0),
LC_CONTRACT_DURATION NUMERIC(3,0),
LC_CONTRACT_MILEAGE NUMERIC(7,0),
LC_DISCONMONTHLY_LEASEINST NUMERIC(11,2),
LC_MONTHLY_LEASEINSTALMENT NUMERIC(11,2),
LC_MVA_FEE_OVER_MILEAGE NUMERIC(11,2),
LC_MVA_REPAY_UNDER_MILEAGE NUMERIC(11,2),
LC_ACTUAL_INVEST_AMOUNT NUMERIC(11,2),
LC_BUDGETED_INVEST_AMOUNT NUMERIC(11,2),
LC_INVEST_INTEREST_BASE NUMERIC(11,2),
LC_PREPAYMNT_INTEREST_BASE NUMERIC(11,2),
LC_UFWT_AMOUNT NUMERIC(11,2),
LC_EXTENSION_PENALTY NUMERIC(11,2),
LC_EARLY_TERM_PENALTY NUMERIC(11,2),
VEH_VEHICLE_NUMBER NATIONAL CHARACTER VARYING(125),
VEH_MODEL_TYPE_DESCRIPTION NATIONAL CHARACTER VARYING(125),
VEH_CATALOGUE_PRICE NUMERIC(11,2),
VEH_CATALOGUE_PRICE_EUR NUMERIC(11,2),
VEH_ACTUAL_DISCOUNT_PERC NUMERIC(6,3),
VEH_COMMERCIAL_DISCNT_AMT NUMERIC(11,2),
VEH_COMMERCIAL_DISCNT_AMT_EUR NUMERIC(11,2),
VEH_TAX_AMT_NON_RECLAIM NUMERIC(11,2),
VEH_TAX_AMT_NON_RECLAIM_EUR NUMERIC(11,2),
VEH_VAT_PERCENTAGE NUMERIC(6,3),
VEH_TOT_OPTIONS_AMT NUMERIC(11,2),
VEH_TOTAL_OPTIONS_AMT_EUR NUMERIC(11,2),
VEH_TOT_ACCESSOIRIES_AMT NUMERIC(11,2),
VEH_TOT_ACCESSOIRIES_AMT_EUR NUMERIC(11,2),
VEH_DELIVERY_COSTS NUMERIC(11,2),
VEH_DELIVERY_COSTS_EUR NUMERIC(11,2),
VEH_REGISTRATION_NUMBER NATIONAL CHARACTER VARYING(125),
VEH_REGISTRATION_DATE DATE,
VEH_VEH_IDENTIFICATION_NUMBER NATIONAL CHARACTER VARYING(125),
VEH_NUMBER_OF_DOORS NUMERIC(3,0),
VEH_ENGINE_CAPACITY NUMERIC(5,0),
VEH_ENGINE_POWER NUMERIC(5,0),
VEH_NUMBER_OF_CYLINDERS NUMERIC(3,0),
VEH_TARE_WEIGHT NUMERIC(5,0),
VEH_GROSS_WEIGHT NUMERIC(5,0),
VEH_FUEL_CONSUMPT_MANUFACTURER NUMERIC(7,2),
VEH_EXTERNAL_REFERENCE NATIONAL CHARACTER VARYING(125),
VEH_TYRE_SIZE_AT_DELIVERY NATIONAL CHARACTER VARYING(125),
VEH_STANDARD_DISCOUNT_PERC NUMERIC(6,3),
LOAD_DATE DATE,
MNGSERV_TOT_RESIDUAL_VALUE NUMERIC(11,2),
MNGSERV_INTEREST_PERC_INVESTM NUMERIC(6,3),
MNGSERV_INTEREST_PERC_PREPAYM NUMERIC(6,3),
MNGSERV_TOT_RESIDUAL_VALUE_EUR NUMERIC(11,2),
LC_MONTHLY_LEASEINSTALMENT_EUR NUMERIC(11,2),
LC_MVA_FEE_OVER_MILEAGE_EUR NUMERIC(11,2),
LC_MVA_REPAY_UNDER_MILEAGE_EUR NUMERIC(11,2),
LC_ACTUAL_INVEST_AMOUNT_EUR NUMERIC(11,2),
LC_BUDGETED_INVEST_AMOUNT_EUR NUMERIC(11,2),
LC_INVEST_INTEREST_BASE_EUR NUMERIC(11,2),
LC_PREPAYMNT_INTEREST_BASE_EUR NUMERIC(11,2),
LC_UFWT_AMOUNT_EUR NUMERIC(11,2),
LC_EXTENSION_PENALTY_EUR NUMERIC(11,2),
LC_EARLY_TERM_PENALTY_EUR NUMERIC(11,2),
OR_ORDER_NUMBER NATIONAL CHARACTER VARYING(125),
OR_ORDER_DATE DATE,
OR_ESTIMATED_DELIVERY_DATE DATE,
CUSTOMER_SLA_ID BIGINT not null,
LC_DRIVER_NUMBER NATIONAL CHARACTER VARYING(125),
LC_DRIVER_NAME NATIONAL CHARACTER VARYING(125),
OR_ORDER_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125),
OR_ORDER_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125),
LC_LOCAL_KEY_LEASE_CONTRACT NATIONAL CHARACTER VARYING(125),
VEH_LOCAL_KEY_VEHICLE NATIONAL CHARACTER VARYING(125),
OR_LOCAL_KEY_ORDER NATIONAL CHARACTER VARYING(125),
LC_LOCAL_KEY_COST_CENTER NATIONAL CHARACTER VARYING(125),
LC_LOCAL_KEY_DRIVER NATIONAL CHARACTER VARYING(125),
OR_LOCAL_KEY_ORDER_SUPPLIER NATIONAL CHARACTER VARYING(125),
CH_LEASE_CONTRACT_STATUS_ID INTEGER not null,
CH_CONTRACT_TERMINATION_ID INTEGER not null,
CH_CONTRACT_STOP_REASON_ID INTEGER not null,
CH_REGISTRATION_STATUS_ID INTEGER not null,
CH_PURCHASED_BY_ID INTEGER not null,
CH_WINTER_TYRES_INCLUDED_ID INTEGER not null,
CH_MAKE_CODE_ID INTEGER not null,
CH_MODEL_CODE_ID INTEGER not null,
CH_BODY_STYLE_ID INTEGER not null,
CH_DRIVING_METHOD_ID INTEGER not null,
CH_EXTERIOR_COLOUR_ID INTEGER not null,
CH_EXTERIOR_COLOUR_TYPE_ID INTEGER not null,
CH_PRIMARY_FUEL_TYPE_ID INTEGER not null,
CH_TRANSMISSION_TYPE_ID INTEGER not null,
CH_UPHOLSTERY_TYPE_ID INTEGER not null,
CH_VEHICLE_TYPE_ID INTEGER not null,
CH_FLEET_REPORT_CATEGORY_ID INTEGER not null,
CH_PRODUCT_CATEGORY_TYPE_ID INTEGER not null,
PRODUCT_ID BIGINT not null,
LC_BOOK_VALUE NUMERIC(11,2),
CH_ASSET_TYPE_ID INTEGER not null,
CH_VEHICLE_SEGMENT_ID INTEGER not null,
CH_OEM_ID INTEGER not null,
LC_STARTMILEAGELEASECONTRACT NUMERIC(7,0),
LC_ENDMILEAGELEASECONTRACTKM NUMERIC(7,0),
LC_CONTRACT_MILEAGE_KM NUMERIC(7,0),
LC_BOOK_VALUE_EUR NUMERIC(11,2),
LC_DISCONMONTHLY_LEASEINST_EUR NUMERIC(11,2),
CH_VEHICLE_SEGMENT_LOCAL_ID INTEGER not null,
CH_MVA_SYSTEM_ID INTEGER not null,
CH_BUY_BACK_CODE INTEGER not null,
CH_RISK_RULING_CODE INTEGER not null,
CH_VEHICLE_GROUP_CODE INTEGER not null,
CH_DATA_SUPPLIER_VEHICLE_CODE INTEGER not null,
CH_OWN_DAMAGE_RISK_ID INTEGER not null,
CH_UFWT_TYPE_ID INTEGER not null,
CH_MVA_SETTLEMENT_ID INTEGER not null,
LC_CUSTOMER_DRIVER_ID NATIONAL CHARACTER VARYING(125),
VEH_CO2_LEVEL_COMBINED NUMERIC(6,0),
CH_SECONDARY_FUEL_TYPE INTEGER not null,
CH_NUMBER_OF_FORWARD_GEARS INTEGER not null,
VEH_INDICATOR_NEW_MODEL CHARACTER(1),
VEH_MODEL_END_DATE DATE,
VEH_MODEL_INTRO_DATE DATE,
VEH_MODEL_FACELIFT_INTRO_DATE DATE,
VEH_MODEL_FACELIFT_END_DATE DATE,
VEH_NUMBER_OF_SEATS NUMERIC(2,0),
LC_DRIVER_SET_SEND_DATE DATE,
LC_INTEREST_LOSS_AT_TERM NUMERIC(11,2),
LC_INTEREST_LOSS_AT_TERM_EUR NUMERIC(11,2),
LC_MVA_FEE_MIN_OVERMILEAGE NUMERIC(17,7),
LC_MVA_FEE_MIN_OVERMILEAGE_EUR NUMERIC(17,7),
LC_MVA_FEE_MID_OVERMILEAGE NUMERIC(17,7),
LC_MVA_FEE_MID_OVERMILEAGE_EUR NUMERIC(17,7),
LC_MVA_FEE_MAX_OVERMILEAGE NUMERIC(17,7),
LC_MVA_FEE_MAX_OVERMILEAGE_EUR NUMERIC(17,7),
LC_MVAREPAY_MINUNDERMILEAGE NUMERIC(17,7),
LC_MVAREPAY_MINUNDERMILEAGEEUR NUMERIC(17,7),
LC_MVAREPAY_MIDUNDERMILEAGE NUMERIC(17,7),
LC_MVAREPAY_MIDUNDERMILEAGEEUR NUMERIC(17,7),
LC_MVAREPAY_MAXUNDERMILEAGE NUMERIC(17,7),
LC_MVAREPAY_MAXUNDERMILEAGEEUR NUMERIC(17,7),
LC_MVA_THRESHHIGH_OVER_MILEAGE NUMERIC(7,0),
LC_MVA_THESHHIGH_UNDER_MILEAGE NUMERIC(7,0),
LC_MVA_THRESHLOW_UNDER_MILEAGE NUMERIC(7,0),
LC_MVA_THRESHLOW_OVER_MILEAGE NUMERIC(7,0),
LC_TERMINATION_PROCESS_DATE DATE,
LC_CREATION_DATE_LEASECONTRACT DATE,
LC_FORMAL_EXTENSION_APPLICABLE NATIONAL CHARACTER VARYING(125),
LC_ACTIVATION_DATE_FORMAL_EXT DATE,
LC_CONTRACT_DURATION_FORMAL_EX NUMERIC(3,0),
LC_CONTRACT_MILEAGE_FORMAL_EXT NUMERIC(7,0),
LC_RESIDUAL_VALUE_FORM_EXT NUMERIC(11,2),
LC_RESIDUAL_VALUE_FORM_EXT_EUR NUMERIC(11,2),
LC_CAR_INSPEC_ENG_DAM_AM NUMERIC(11,2),
LC_CAR_INSPEC_ENG_DAM_AM_EUR NUMERIC(11,2),
LC_CAR_INSPEC_EXT_DAM_AM NUMERIC(11,2),
LC_CAR_INSPEC_EXT_DAM_AM_EUR NUMERIC(11,2),
LC_CAR_INSPEC_INT_DAM_AM NUMERIC(11,2),
LC_CAR_INSPEC_INT_DAM_AM_EUR NUMERIC(11,2),
LC_MVA_UM_LIMIT_PERCENTAGE NUMERIC(6,3),
LC_MVA_OM_LIMIT_PERCENTAGE NUMERIC(6,3),
LC_MVA_UM_FACTOR NUMERIC(6,3),
LC_MVA_OM_FACTOR NUMERIC(6,3),
CH_TYRE_WIDTH_FRONT INTEGER not null,
CH_TYRE_WIDTH_REAR INTEGER not null,
CH_TYRE_RIM_DIAM_FRONT INTEGER not null,
CH_TYRE_RIM_DIAM_REAR INTEGER not null,
VEH_CONSUMER_PRICE NUMERIC(11,2),
VEH_CONSUMER_PRICE_EUR NUMERIC(11,2),
VEH_LUXURY_TAX_AM NUMERIC(11,2),
VEH_LUXURY_TAX_AM_EUR NUMERIC(11,2),
VEH_ENROLMENT_TAX_AM NUMERIC(11,2),
VEH_ENROLMENT_TAX_AM_EUR NUMERIC(11,2),
LC_UFWT_TOTAL_ASSESSED_AM NUMERIC(11,2),
LC_UFWT_TOTAL_ASSESSED_AM_EUR NUMERIC(11,2),
LC_RESIDUAL_VALUE_BASE NUMERIC(11,2),
LC_RESIDUAL_VALUE_BASE_EUR NUMERIC(11,2),
LC_INSURANCE_LOSS_RATIO NUMERIC(17,5),
LC_LAST_KNOWN_MILEAGE NUMERIC(7,0),
LC_LAST_KNOWN_MILEAGE_DATE DATE,
LC_CONTRACT_DURATION_FP NUMERIC(3,0),
LC_CONTRACT_MILEAGE_FP NUMERIC(7,0),
LC_MONTHLY_LEASEINSTALM_FP NUMERIC(11,2),
LC_BUDGETED_INVEST_AM_FP NUMERIC(11,2),
LC_MONTHLY_LEASEINSTALM_FP_EUR NUMERIC(11,2),
LC_BUDGETED_INVEST_AM_FP_EUR NUMERIC(11,2),
LC_START_DATE_LEASECONTRACT_FP DATE,
LC_END_DATE_LEASECONTRACT_FP DATE,
OR_CREATION_DATE_ORDER DATE,
LC_REGISTRATIONDATE_START DATE,
LC_REGISTRATIONDT_TERMINATION DATE,
LC_MVA_DEPR_TO_BE_INVOICED NUMERIC(11,2),
LC_MVA_RM_TO_BE_INVOICED NUMERIC(11,2),
LC_MVA_TYRES_TO_BE_INVOICED NUMERIC(11,2),
LC_UFWT_TO_BE_INVOICED NUMERIC(11,2),
LC_INVOICINGENDDATE_LC DATE,
CH_ACTIVATIONTYPE_LC INTEGER,
CH_DEACTIVATIONTYPE_LC INTEGER,
LC_LASTRECOGNIZEDOBJMILEAGE NUMERIC(7,0),
LC_LASTRECOGNIZEDOBJMILEAGEDT DATE,
CH_USAGE_BY_CUSTOMER_ID INTEGER,
LC_LOCAL_KEY_BUSINESS_UNIT NATIONAL CHARACTER VARYING(125),
LC_BUSINESS_UNIT_NAME NATIONAL CHARACTER VARYING(125),
LC_DRIVER_FIRST_NAME NATIONAL CHARACTER VARYING(125),
LC_DRIVER_LAST_NAME NATIONAL CHARACTER VARYING(125),
LC_SHORT_TERM_RENTAL_INDICATOR CHARACTER(1),
LC_ALLOCATION_STATUS_INDICATOR CHARACTER(1),
LC_NUMBER_OF_TYRES_IN_CONTRACT NUMERIC(2,0),
TELEMATICS_DEV_INSTALL_FLAG CHARACTER(1) not null,
TELEMATICS_DEV_INSTALL_DATE DATE not null,
TELEMATICS_DEV_DEINSTALL_DATE DATE not null,
PRECEDING_LEASECONTRVEHICLE_ID BIGINT,
LC_RENEWAL_INDICATOR CHARACTER(1),
LC_RELEASING_INDICATOR CHARACTER(1),
LC_RELEASING_START_DATE DATE,
CH_ORDER_STATUS_ID INTEGER not null,
OR_ACTUAL_DELIVERY_DATE DATE,
OR_ORDER_RECEIPT_CONFIRM_DATE DATE,
OR_CERTIFICATE_RECEIPT_DATE DATE,
OR_FIRSTDRIVERAPPOINTMENT_DATE DATE,
OR_DRIVER_APPOINTMENT_DATE DATE,
OR_ORDER_CANCELLATION_DATE DATE,
OR_NUMBEROF_DRIVERAPPOINTMENTS NUMERIC(2,0),
OR_ADVANCE_PURCHASE_INDICATOR CHARACTER(1)
) DISTRIBUTE ON RANDOM;

-- Table LEASE_CONTRACT_VEHICLE version 2;


SET collapse_empty_table_version = false;
ALTER TABLE LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVESTMENT_AM NUMERIC(11,2);
SET collapse_empty_table_version = true;
ALTER TABLE LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVEST_AM_EUR NUMERIC(11,2);
ALTER TABLE LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVESTMENT_AM_EUR NUMERIC(11,2);
ALTER TABLE LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE DROP COLUMN
LC_DOWNPAYMENT_INVEST_AM_EUR CASCADE;

ALTER TABLE LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE ADD CONSTRAINT


LEASE_CONTRACT_VEHICLE_PK PRIMARY KEY ( LEASE_CONTRACT_VEHICLE_ID );
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ( -- Number of Columns


= 226
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
LC_LEASE_CONTRACT_NUMBER NATIONAL CHARACTER VARYING(125),
LC_COST_CENTER_NAME NATIONAL CHARACTER VARYING(125),
LC_SLB_FLAG CHARACTER(1),
LC_START_DATE_LEASECONTRACT DATE,
LC_END_DATE_LEASECONTRACT DATE,
LC_BUDG_END_DATE_LEASECONTRACT DATE,
LC_STARTMILEAGELEASECONTRACTKM NUMERIC(7,0),
LC_ENDMILEAGELEASECONTRACT NUMERIC(7,0),
LC_CONTRACT_DURATION NUMERIC(3,0),
LC_CONTRACT_MILEAGE NUMERIC(7,0),
LC_DISCONMONTHLY_LEASEINST NUMERIC(11,2),
LC_MONTHLY_LEASEINSTALMENT NUMERIC(11,2),
LC_MVA_FEE_OVER_MILEAGE NUMERIC(11,2),
LC_MVA_REPAY_UNDER_MILEAGE NUMERIC(11,2),
LC_ACTUAL_INVEST_AMOUNT NUMERIC(11,2),
LC_BUDGETED_INVEST_AMOUNT NUMERIC(11,2),
LC_INVEST_INTEREST_BASE NUMERIC(11,2),
LC_PREPAYMNT_INTEREST_BASE NUMERIC(11,2),
LC_UFWT_AMOUNT NUMERIC(11,2),
LC_EXTENSION_PENALTY NUMERIC(11,2),
LC_EARLY_TERM_PENALTY NUMERIC(11,2),
VEH_VEHICLE_NUMBER NATIONAL CHARACTER VARYING(125),
VEH_MODEL_TYPE_DESCRIPTION NATIONAL CHARACTER VARYING(125),
VEH_CATALOGUE_PRICE NUMERIC(11,2),
VEH_CATALOGUE_PRICE_EUR NUMERIC(11,2),
VEH_ACTUAL_DISCOUNT_PERC NUMERIC(6,3),
VEH_COMMERCIAL_DISCNT_AMT NUMERIC(11,2),
VEH_COMMERCIAL_DISCNT_AMT_EUR NUMERIC(11,2),
VEH_TAX_AMT_NON_RECLAIM NUMERIC(11,2),
VEH_TAX_AMT_NON_RECLAIM_EUR NUMERIC(11,2),
VEH_VAT_PERCENTAGE NUMERIC(6,3),
VEH_TOT_OPTIONS_AMT NUMERIC(11,2),
VEH_TOTAL_OPTIONS_AMT_EUR NUMERIC(11,2),
VEH_TOT_ACCESSOIRIES_AMT NUMERIC(11,2),
VEH_TOT_ACCESSOIRIES_AMT_EUR NUMERIC(11,2),
VEH_DELIVERY_COSTS NUMERIC(11,2),
VEH_DELIVERY_COSTS_EUR NUMERIC(11,2),
VEH_REGISTRATION_NUMBER NATIONAL CHARACTER VARYING(125),
VEH_REGISTRATION_DATE DATE,
VEH_VEH_IDENTIFICATION_NUMBER NATIONAL CHARACTER VARYING(125),
VEH_NUMBER_OF_DOORS NUMERIC(3,0),
VEH_ENGINE_CAPACITY NUMERIC(5,0),
VEH_ENGINE_POWER NUMERIC(5,0),
VEH_NUMBER_OF_CYLINDERS NUMERIC(3,0),
VEH_TARE_WEIGHT NUMERIC(5,0),
VEH_GROSS_WEIGHT NUMERIC(5,0),
VEH_FUEL_CONSUMPT_MANUFACTURER NUMERIC(7,2),
VEH_EXTERNAL_REFERENCE NATIONAL CHARACTER VARYING(125),
VEH_TYRE_SIZE_AT_DELIVERY NATIONAL CHARACTER VARYING(125),
VEH_STANDARD_DISCOUNT_PERC NUMERIC(6,3),
LOAD_DATE DATE,
MNGSERV_TOT_RESIDUAL_VALUE NUMERIC(11,2),
MNGSERV_INTEREST_PERC_INVESTM NUMERIC(6,3),
MNGSERV_INTEREST_PERC_PREPAYM NUMERIC(6,3),
MNGSERV_TOT_RESIDUAL_VALUE_EUR NUMERIC(11,2),
LC_MONTHLY_LEASEINSTALMENT_EUR NUMERIC(11,2),
LC_MVA_FEE_OVER_MILEAGE_EUR NUMERIC(11,2),
LC_MVA_REPAY_UNDER_MILEAGE_EUR NUMERIC(11,2),
LC_ACTUAL_INVEST_AMOUNT_EUR NUMERIC(11,2),
LC_BUDGETED_INVEST_AMOUNT_EUR NUMERIC(11,2),
LC_INVEST_INTEREST_BASE_EUR NUMERIC(11,2),
LC_PREPAYMNT_INTEREST_BASE_EUR NUMERIC(11,2),
LC_UFWT_AMOUNT_EUR NUMERIC(11,2),
LC_EXTENSION_PENALTY_EUR NUMERIC(11,2),
LC_EARLY_TERM_PENALTY_EUR NUMERIC(11,2),
OR_ORDER_NUMBER NATIONAL CHARACTER VARYING(125),
OR_ORDER_DATE DATE,
OR_ESTIMATED_DELIVERY_DATE DATE,
CUSTOMER_SLA_ID BIGINT not null,
LC_DRIVER_NUMBER NATIONAL CHARACTER VARYING(125),
LC_DRIVER_NAME NATIONAL CHARACTER VARYING(125),
OR_ORDER_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125),
OR_ORDER_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125),
LC_LOCAL_KEY_LEASE_CONTRACT NATIONAL CHARACTER VARYING(125),
VEH_LOCAL_KEY_VEHICLE NATIONAL CHARACTER VARYING(125),
OR_LOCAL_KEY_ORDER NATIONAL CHARACTER VARYING(125),
LC_LOCAL_KEY_COST_CENTER NATIONAL CHARACTER VARYING(125),
LC_LOCAL_KEY_DRIVER NATIONAL CHARACTER VARYING(125),
OR_LOCAL_KEY_ORDER_SUPPLIER NATIONAL CHARACTER VARYING(125),
CH_LEASE_CONTRACT_STATUS_ID INTEGER not null,
CH_CONTRACT_TERMINATION_ID INTEGER not null,
CH_CONTRACT_STOP_REASON_ID INTEGER not null,
CH_REGISTRATION_STATUS_ID INTEGER not null,
CH_PURCHASED_BY_ID INTEGER not null,
CH_WINTER_TYRES_INCLUDED_ID INTEGER not null,
CH_MAKE_CODE_ID INTEGER not null,
CH_MODEL_CODE_ID INTEGER not null,
CH_BODY_STYLE_ID INTEGER not null,
CH_DRIVING_METHOD_ID INTEGER not null,
CH_EXTERIOR_COLOUR_ID INTEGER not null,
CH_EXTERIOR_COLOUR_TYPE_ID INTEGER not null,
CH_PRIMARY_FUEL_TYPE_ID INTEGER not null,
CH_TRANSMISSION_TYPE_ID INTEGER not null,
CH_UPHOLSTERY_TYPE_ID INTEGER not null,
CH_VEHICLE_TYPE_ID INTEGER not null,
CH_FLEET_REPORT_CATEGORY_ID INTEGER not null,
CH_PRODUCT_CATEGORY_TYPE_ID INTEGER not null,
PRODUCT_ID BIGINT not null,
LC_BOOK_VALUE NUMERIC(11,2),
CH_ASSET_TYPE_ID INTEGER not null,
CH_VEHICLE_SEGMENT_ID INTEGER not null,
CH_OEM_ID INTEGER not null,
LC_STARTMILEAGELEASECONTRACT NUMERIC(7,0),
LC_ENDMILEAGELEASECONTRACTKM NUMERIC(7,0),
LC_CONTRACT_MILEAGE_KM NUMERIC(7,0),
LC_BOOK_VALUE_EUR NUMERIC(11,2),
LC_DISCONMONTHLY_LEASEINST_EUR NUMERIC(11,2),
CH_VEHICLE_SEGMENT_LOCAL_ID INTEGER not null,
CH_MVA_SYSTEM_ID INTEGER not null,
CH_BUY_BACK_CODE INTEGER not null,
CH_RISK_RULING_CODE INTEGER not null,
CH_VEHICLE_GROUP_CODE INTEGER not null,
CH_DATA_SUPPLIER_VEHICLE_CODE INTEGER not null,
CH_OWN_DAMAGE_RISK_ID INTEGER not null,
CH_UFWT_TYPE_ID INTEGER not null,
CH_MVA_SETTLEMENT_ID INTEGER not null,
LC_CUSTOMER_DRIVER_ID NATIONAL CHARACTER VARYING(125),
VEH_CO2_LEVEL_COMBINED NUMERIC(6,0),
CH_SECONDARY_FUEL_TYPE INTEGER not null,
CH_NUMBER_OF_FORWARD_GEARS INTEGER not null,
VEH_INDICATOR_NEW_MODEL CHARACTER(1),
VEH_MODEL_END_DATE DATE,
VEH_MODEL_INTRO_DATE DATE,
VEH_MODEL_FACELIFT_INTRO_DATE DATE,
VEH_MODEL_FACELIFT_END_DATE DATE,
VEH_NUMBER_OF_SEATS NUMERIC(2,0),
LC_DRIVER_SET_SEND_DATE DATE,
LC_INTEREST_LOSS_AT_TERM NUMERIC(11,2),
LC_INTEREST_LOSS_AT_TERM_EUR NUMERIC(11,2),
LC_MVA_FEE_MIN_OVERMILEAGE NUMERIC(17,7),
LC_MVA_FEE_MIN_OVERMILEAGE_EUR NUMERIC(17,7),
LC_MVA_FEE_MID_OVERMILEAGE NUMERIC(17,7),
LC_MVA_FEE_MID_OVERMILEAGE_EUR NUMERIC(17,7),
LC_MVA_FEE_MAX_OVERMILEAGE NUMERIC(17,7),
LC_MVA_FEE_MAX_OVERMILEAGE_EUR NUMERIC(17,7),
LC_MVAREPAY_MINUNDERMILEAGE NUMERIC(17,7),
LC_MVAREPAY_MINUNDERMILEAGEEUR NUMERIC(17,7),
LC_MVAREPAY_MIDUNDERMILEAGE NUMERIC(17,7),
LC_MVAREPAY_MIDUNDERMILEAGEEUR NUMERIC(17,7),
LC_MVAREPAY_MAXUNDERMILEAGE NUMERIC(17,7),
LC_MVAREPAY_MAXUNDERMILEAGEEUR NUMERIC(17,7),
LC_MVA_THRESHHIGH_OVER_MILEAGE NUMERIC(7,0),
LC_MVA_THESHHIGH_UNDER_MILEAGE NUMERIC(7,0),
LC_MVA_THRESHLOW_UNDER_MILEAGE NUMERIC(7,0),
LC_MVA_THRESHLOW_OVER_MILEAGE NUMERIC(7,0),
LC_TERMINATION_PROCESS_DATE DATE,
LC_CREATION_DATE_LEASECONTRACT DATE,
LC_FORMAL_EXTENSION_APPLICABLE NATIONAL CHARACTER VARYING(125),
LC_ACTIVATION_DATE_FORMAL_EXT DATE,
LC_CONTRACT_DURATION_FORMAL_EX NUMERIC(3,0),
LC_CONTRACT_MILEAGE_FORMAL_EXT NUMERIC(7,0),
LC_RESIDUAL_VALUE_FORM_EXT NUMERIC(11,2),
LC_RESIDUAL_VALUE_FORM_EXT_EUR NUMERIC(11,2),
LC_CAR_INSPEC_ENG_DAM_AM NUMERIC(11,2),
LC_CAR_INSPEC_ENG_DAM_AM_EUR NUMERIC(11,2),
LC_CAR_INSPEC_EXT_DAM_AM NUMERIC(11,2),
LC_CAR_INSPEC_EXT_DAM_AM_EUR NUMERIC(11,2),
LC_CAR_INSPEC_INT_DAM_AM NUMERIC(11,2),
LC_CAR_INSPEC_INT_DAM_AM_EUR NUMERIC(11,2),
LC_MVA_UM_LIMIT_PERCENTAGE NUMERIC(6,3),
LC_MVA_OM_LIMIT_PERCENTAGE NUMERIC(6,3),
LC_MVA_UM_FACTOR NUMERIC(6,3),
LC_MVA_OM_FACTOR NUMERIC(6,3),
CH_TYRE_WIDTH_FRONT INTEGER not null,
CH_TYRE_WIDTH_REAR INTEGER not null,
CH_TYRE_RIM_DIAM_FRONT INTEGER not null,
CH_TYRE_RIM_DIAM_REAR INTEGER not null,
VEH_CONSUMER_PRICE NUMERIC(11,2),
VEH_CONSUMER_PRICE_EUR NUMERIC(11,2),
VEH_LUXURY_TAX_AM NUMERIC(11,2),
VEH_LUXURY_TAX_AM_EUR NUMERIC(11,2),
VEH_ENROLMENT_TAX_AM NUMERIC(11,2),
VEH_ENROLMENT_TAX_AM_EUR NUMERIC(11,2),
LC_UFWT_TOTAL_ASSESSED_AM NUMERIC(11,2),
LC_UFWT_TOTAL_ASSESSED_AM_EUR NUMERIC(11,2),
LC_RESIDUAL_VALUE_BASE NUMERIC(11,2),
LC_RESIDUAL_VALUE_BASE_EUR NUMERIC(11,2),
LC_INSURANCE_LOSS_RATIO NUMERIC(17,5),
LC_LAST_KNOWN_MILEAGE NUMERIC(7,0),
LC_LAST_KNOWN_MILEAGE_DATE DATE,
LC_CONTRACT_DURATION_FP NUMERIC(3,0),
LC_CONTRACT_MILEAGE_FP NUMERIC(7,0),
LC_MONTHLY_LEASEINSTALM_FP NUMERIC(11,2),
LC_BUDGETED_INVEST_AM_FP NUMERIC(11,2),
LC_MONTHLY_LEASEINSTALM_FP_EUR NUMERIC(11,2),
LC_BUDGETED_INVEST_AM_FP_EUR NUMERIC(11,2),
LC_START_DATE_LEASECONTRACT_FP DATE,
LC_END_DATE_LEASECONTRACT_FP DATE,
OR_CREATION_DATE_ORDER DATE,
LC_REGISTRATIONDATE_START DATE,
LC_REGISTRATIONDT_TERMINATION DATE,
LC_MVA_DEPR_TO_BE_INVOICED NUMERIC(11,2),
LC_MVA_RM_TO_BE_INVOICED NUMERIC(11,2),
LC_MVA_TYRES_TO_BE_INVOICED NUMERIC(11,2),
LC_UFWT_TO_BE_INVOICED NUMERIC(11,2),
LC_INVOICINGENDDATE_LC DATE,
CH_ACTIVATIONTYPE_LC INTEGER,
CH_DEACTIVATIONTYPE_LC INTEGER,
LC_LASTRECOGNIZEDOBJMILEAGE NUMERIC(7,0),
LC_LASTRECOGNIZEDOBJMILEAGEDT DATE,
CH_USAGE_BY_CUSTOMER_ID INTEGER,
LC_LOCAL_KEY_BUSINESS_UNIT NATIONAL CHARACTER VARYING(125),
LC_BUSINESS_UNIT_NAME NATIONAL CHARACTER VARYING(125),
LC_DRIVER_FIRST_NAME NATIONAL CHARACTER VARYING(125),
LC_DRIVER_LAST_NAME NATIONAL CHARACTER VARYING(125),
LC_SHORT_TERM_RENTAL_INDICATOR CHARACTER(1),
LC_ALLOCATION_STATUS_INDICATOR CHARACTER(1),
LC_NUMBER_OF_TYRES_IN_CONTRACT NUMERIC(2,0),
TELEMATICS_DEV_INSTALL_FLAG CHARACTER(1) not null,
TELEMATICS_DEV_INSTALL_DATE DATE not null,
TELEMATICS_DEV_DEINSTALL_DATE DATE not null,
PRECEDING_LEASECONTRVEHICLE_ID BIGINT,
LC_RENEWAL_INDICATOR CHARACTER(1),
LC_RELEASING_INDICATOR CHARACTER(1),
LC_RELEASING_START_DATE DATE,
CH_ORDER_STATUS_ID INTEGER not null,
OR_ACTUAL_DELIVERY_DATE DATE,
OR_ORDER_RECEIPT_CONFIRM_DATE DATE,
OR_CERTIFICATE_RECEIPT_DATE DATE,
OR_FIRSTDRIVERAPPOINTMENT_DATE DATE,
OR_DRIVER_APPOINTMENT_DATE DATE,
OR_ORDER_CANCELLATION_DATE DATE,
OR_NUMBEROF_DRIVERAPPOINTMENTS NUMERIC(2,0),
OR_ADVANCE_PURCHASE_INDICATOR CHARACTER(1)
) DISTRIBUTE ON RANDOM;

-- Table LEASE_CONTRACT_VEHICLE version 2;


SET collapse_empty_table_version = false;
ALTER TABLE LPRO_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVESTMENT_AM NUMERIC(11,2);
SET collapse_empty_table_version = true;
ALTER TABLE LPRO_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVEST_AM_EUR NUMERIC(11,2);
ALTER TABLE LPRO_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVESTMENT_AM_EUR NUMERIC(11,2);
ALTER TABLE LPRO_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE DROP COLUMN
LC_DOWNPAYMENT_INVEST_AM_EUR CASCADE;

ALTER TABLE LPRO_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD CONSTRAINT


LEASE_CONTRACT_VEHICLE_PK PRIMARY KEY ( LEASE_CONTRACT_VEHICLE_ID );
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ( -- Number of Columns


= 226
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"CUSTOMER_ID" BIGINT not null,
"LC_LEASE_CONTRACT_NUMBER" NATIONAL CHARACTER VARYING(125),
"LC_COST_CENTER_NAME" NATIONAL CHARACTER VARYING(125),
"LC_SLB_FLAG" CHARACTER(1),
"LC_START_DATE_LEASECONTRACT" DATE,
"LC_END_DATE_LEASECONTRACT" DATE,
"LC_BUDG_END_DATE_LEASECONTRACT" DATE,
"LC_STARTMILEAGELEASECONTRACTKM" NUMERIC(7,0),
"LC_ENDMILEAGELEASECONTRACT" NUMERIC(7,0),
"LC_CONTRACT_DURATION" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE" NUMERIC(7,0),
"LC_DISCONMONTHLY_LEASEINST" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALMENT" NUMERIC(11,2),
"LC_MVA_FEE_OVER_MILEAGE" NUMERIC(11,2),
"LC_MVA_REPAY_UNDER_MILEAGE" NUMERIC(11,2),
"LC_ACTUAL_INVEST_AMOUNT" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AMOUNT" NUMERIC(11,2),
"LC_INVEST_INTEREST_BASE" NUMERIC(11,2),
"LC_PREPAYMNT_INTEREST_BASE" NUMERIC(11,2),
"LC_UFWT_AMOUNT" NUMERIC(11,2),
"LC_EXTENSION_PENALTY" NUMERIC(11,2),
"LC_EARLY_TERM_PENALTY" NUMERIC(11,2),
"VEH_VEHICLE_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_MODEL_TYPE_DESCRIPTION" NATIONAL CHARACTER VARYING(125),
"VEH_CATALOGUE_PRICE" NUMERIC(11,2),
"VEH_CATALOGUE_PRICE_EUR" NUMERIC(11,2),
"VEH_ACTUAL_DISCOUNT_PERC" NUMERIC(6,3),
"VEH_COMMERCIAL_DISCNT_AMT" NUMERIC(11,2),
"VEH_COMMERCIAL_DISCNT_AMT_EUR" NUMERIC(11,2),
"VEH_TAX_AMT_NON_RECLAIM" NUMERIC(11,2),
"VEH_TAX_AMT_NON_RECLAIM_EUR" NUMERIC(11,2),
"VEH_VAT_PERCENTAGE" NUMERIC(6,3),
"VEH_TOT_OPTIONS_AMT" NUMERIC(11,2),
"VEH_TOTAL_OPTIONS_AMT_EUR" NUMERIC(11,2),
"VEH_TOT_ACCESSOIRIES_AMT" NUMERIC(11,2),
"VEH_TOT_ACCESSOIRIES_AMT_EUR" NUMERIC(11,2),
"VEH_DELIVERY_COSTS" NUMERIC(11,2),
"VEH_DELIVERY_COSTS_EUR" NUMERIC(11,2),
"VEH_REGISTRATION_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_REGISTRATION_DATE" DATE,
"VEH_VEH_IDENTIFICATION_NUMBER" NATIONAL CHARACTER VARYING(125),
"VEH_NUMBER_OF_DOORS" NUMERIC(3,0),
"VEH_ENGINE_CAPACITY" NUMERIC(5,0),
"VEH_ENGINE_POWER" NUMERIC(5,0),
"VEH_NUMBER_OF_CYLINDERS" NUMERIC(3,0),
"VEH_TARE_WEIGHT" NUMERIC(5,0),
"VEH_GROSS_WEIGHT" NUMERIC(5,0),
"VEH_FUEL_CONSUMPT_MANUFACTURER" NUMERIC(7,2),
"VEH_EXTERNAL_REFERENCE" NATIONAL CHARACTER VARYING(125),
"VEH_TYRE_SIZE_AT_DELIVERY" NATIONAL CHARACTER VARYING(125),
"VEH_STANDARD_DISCOUNT_PERC" NUMERIC(6,3),
"LOAD_DATE" DATE,
"MNGSERV_TOT_RESIDUAL_VALUE" NUMERIC(11,2),
"MNGSERV_INTEREST_PERC_INVESTM" NUMERIC(6,3),
"MNGSERV_INTEREST_PERC_PREPAYM" NUMERIC(6,3),
"MNGSERV_TOT_RESIDUAL_VALUE_EUR" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALMENT_EUR" NUMERIC(11,2),
"LC_MVA_FEE_OVER_MILEAGE_EUR" NUMERIC(11,2),
"LC_MVA_REPAY_UNDER_MILEAGE_EUR" NUMERIC(11,2),
"LC_ACTUAL_INVEST_AMOUNT_EUR" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AMOUNT_EUR" NUMERIC(11,2),
"LC_INVEST_INTEREST_BASE_EUR" NUMERIC(11,2),
"LC_PREPAYMNT_INTEREST_BASE_EUR" NUMERIC(11,2),
"LC_UFWT_AMOUNT_EUR" NUMERIC(11,2),
"LC_EXTENSION_PENALTY_EUR" NUMERIC(11,2),
"LC_EARLY_TERM_PENALTY_EUR" NUMERIC(11,2),
"OR_ORDER_NUMBER" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_DATE" DATE,
"OR_ESTIMATED_DELIVERY_DATE" DATE,
"CUSTOMER_SLA_ID" BIGINT not null,
"LC_DRIVER_NUMBER" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_NAME" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"OR_ORDER_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_LEASE_CONTRACT" NATIONAL CHARACTER VARYING(125),
"VEH_LOCAL_KEY_VEHICLE" NATIONAL CHARACTER VARYING(125),
"OR_LOCAL_KEY_ORDER" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_COST_CENTER" NATIONAL CHARACTER VARYING(125),
"LC_LOCAL_KEY_DRIVER" NATIONAL CHARACTER VARYING(125),
"OR_LOCAL_KEY_ORDER_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"CH_LEASE_CONTRACT_STATUS_ID" INTEGER not null,
"CH_CONTRACT_TERMINATION_ID" INTEGER not null,
"CH_CONTRACT_STOP_REASON_ID" INTEGER not null,
"CH_REGISTRATION_STATUS_ID" INTEGER not null,
"CH_PURCHASED_BY_ID" INTEGER not null,
"CH_WINTER_TYRES_INCLUDED_ID" INTEGER not null,
"CH_MAKE_CODE_ID" INTEGER not null,
"CH_MODEL_CODE_ID" INTEGER not null,
"CH_BODY_STYLE_ID" INTEGER not null,
"CH_DRIVING_METHOD_ID" INTEGER not null,
"CH_EXTERIOR_COLOUR_ID" INTEGER not null,
"CH_EXTERIOR_COLOUR_TYPE_ID" INTEGER not null,
"CH_PRIMARY_FUEL_TYPE_ID" INTEGER not null,
"CH_TRANSMISSION_TYPE_ID" INTEGER not null,
"CH_UPHOLSTERY_TYPE_ID" INTEGER not null,
"CH_VEHICLE_TYPE_ID" INTEGER not null,
"CH_FLEET_REPORT_CATEGORY_ID" INTEGER not null,
"CH_PRODUCT_CATEGORY_TYPE_ID" INTEGER not null,
"PRODUCT_ID" BIGINT not null,
"LC_BOOK_VALUE" NUMERIC(11,2),
"CH_ASSET_TYPE_ID" INTEGER not null,
"CH_VEHICLE_SEGMENT_ID" INTEGER not null,
"CH_OEM_ID" INTEGER not null,
"LC_STARTMILEAGELEASECONTRACT" NUMERIC(7,0),
"LC_ENDMILEAGELEASECONTRACTKM" NUMERIC(7,0),
"LC_CONTRACT_MILEAGE_KM" NUMERIC(7,0),
"LC_BOOK_VALUE_EUR" NUMERIC(11,2),
"LC_DISCONMONTHLY_LEASEINST_EUR" NUMERIC(11,2),
"CH_VEHICLE_SEGMENT_LOCAL_ID" INTEGER not null,
"CH_MVA_SYSTEM_ID" INTEGER not null,
"CH_BUY_BACK_CODE" INTEGER not null,
"CH_RISK_RULING_CODE" INTEGER not null,
"CH_VEHICLE_GROUP_CODE" INTEGER not null,
"CH_DATA_SUPPLIER_VEHICLE_CODE" INTEGER not null,
"CH_OWN_DAMAGE_RISK_ID" INTEGER not null,
"CH_UFWT_TYPE_ID" INTEGER not null,
"CH_MVA_SETTLEMENT_ID" INTEGER not null,
"LC_CUSTOMER_DRIVER_ID" NATIONAL CHARACTER VARYING(125),
"VEH_CO2_LEVEL_COMBINED" NUMERIC(6,0),
"CH_SECONDARY_FUEL_TYPE" INTEGER not null,
"CH_NUMBER_OF_FORWARD_GEARS" INTEGER not null,
"VEH_INDICATOR_NEW_MODEL" CHARACTER(1),
"VEH_MODEL_END_DATE" DATE,
"VEH_MODEL_INTRO_DATE" DATE,
"VEH_MODEL_FACELIFT_INTRO_DATE" DATE,
"VEH_MODEL_FACELIFT_END_DATE" DATE,
"VEH_NUMBER_OF_SEATS" NUMERIC(2,0),
"LC_DRIVER_SET_SEND_DATE" DATE,
"LC_INTEREST_LOSS_AT_TERM" NUMERIC(11,2),
"LC_INTEREST_LOSS_AT_TERM_EUR" NUMERIC(11,2),
"LC_MVA_FEE_MIN_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MIN_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVA_FEE_MID_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MID_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVA_FEE_MAX_OVERMILEAGE" NUMERIC(17,7),
"LC_MVA_FEE_MAX_OVERMILEAGE_EUR" NUMERIC(17,7),
"LC_MVAREPAY_MINUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MINUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVAREPAY_MIDUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MIDUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVAREPAY_MAXUNDERMILEAGE" NUMERIC(17,7),
"LC_MVAREPAY_MAXUNDERMILEAGEEUR" NUMERIC(17,7),
"LC_MVA_THRESHHIGH_OVER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THESHHIGH_UNDER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THRESHLOW_UNDER_MILEAGE" NUMERIC(7,0),
"LC_MVA_THRESHLOW_OVER_MILEAGE" NUMERIC(7,0),
"LC_TERMINATION_PROCESS_DATE" DATE,
"LC_CREATION_DATE_LEASECONTRACT" DATE,
"LC_FORMAL_EXTENSION_APPLICABLE" NATIONAL CHARACTER VARYING(125),
"LC_ACTIVATION_DATE_FORMAL_EXT" DATE,
"LC_CONTRACT_DURATION_FORMAL_EX" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE_FORMAL_EXT" NUMERIC(7,0),
"LC_RESIDUAL_VALUE_FORM_EXT" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_FORM_EXT_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_ENG_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_ENG_DAM_AM_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_EXT_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_EXT_DAM_AM_EUR" NUMERIC(11,2),
"LC_CAR_INSPEC_INT_DAM_AM" NUMERIC(11,2),
"LC_CAR_INSPEC_INT_DAM_AM_EUR" NUMERIC(11,2),
"LC_MVA_UM_LIMIT_PERCENTAGE" NUMERIC(6,3),
"LC_MVA_OM_LIMIT_PERCENTAGE" NUMERIC(6,3),
"LC_MVA_UM_FACTOR" NUMERIC(6,3),
"LC_MVA_OM_FACTOR" NUMERIC(6,3),
"CH_TYRE_WIDTH_FRONT" INTEGER not null,
"CH_TYRE_WIDTH_REAR" INTEGER not null,
"CH_TYRE_RIM_DIAM_FRONT" INTEGER not null,
"CH_TYRE_RIM_DIAM_REAR" INTEGER not null,
"VEH_CONSUMER_PRICE" NUMERIC(11,2),
"VEH_CONSUMER_PRICE_EUR" NUMERIC(11,2),
"VEH_LUXURY_TAX_AM" NUMERIC(11,2),
"VEH_LUXURY_TAX_AM_EUR" NUMERIC(11,2),
"VEH_ENROLMENT_TAX_AM" NUMERIC(11,2),
"VEH_ENROLMENT_TAX_AM_EUR" NUMERIC(11,2),
"LC_UFWT_TOTAL_ASSESSED_AM" NUMERIC(11,2),
"LC_UFWT_TOTAL_ASSESSED_AM_EUR" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_BASE" NUMERIC(11,2),
"LC_RESIDUAL_VALUE_BASE_EUR" NUMERIC(11,2),
"LC_INSURANCE_LOSS_RATIO" NUMERIC(17,5),
"LC_LAST_KNOWN_MILEAGE" NUMERIC(7,0),
"LC_LAST_KNOWN_MILEAGE_DATE" DATE,
"LC_CONTRACT_DURATION_FP" NUMERIC(3,0),
"LC_CONTRACT_MILEAGE_FP" NUMERIC(7,0),
"LC_MONTHLY_LEASEINSTALM_FP" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AM_FP" NUMERIC(11,2),
"LC_MONTHLY_LEASEINSTALM_FP_EUR" NUMERIC(11,2),
"LC_BUDGETED_INVEST_AM_FP_EUR" NUMERIC(11,2),
"LC_START_DATE_LEASECONTRACT_FP" DATE,
"LC_END_DATE_LEASECONTRACT_FP" DATE,
"OR_CREATION_DATE_ORDER" DATE,
"LC_REGISTRATIONDATE_START" DATE,
"LC_REGISTRATIONDT_TERMINATION" DATE,
"LC_MVA_DEPR_TO_BE_INVOICED" NUMERIC(11,2),
"LC_MVA_RM_TO_BE_INVOICED" NUMERIC(11,2),
"LC_MVA_TYRES_TO_BE_INVOICED" NUMERIC(11,2),
"LC_UFWT_TO_BE_INVOICED" NUMERIC(11,2),
"LC_INVOICINGENDDATE_LC" DATE,
"CH_ACTIVATIONTYPE_LC" INTEGER,
"CH_DEACTIVATIONTYPE_LC" INTEGER,
"LC_LASTRECOGNIZEDOBJMILEAGE" NUMERIC(7,0),
"LC_LASTRECOGNIZEDOBJMILEAGEDT" DATE,
"CH_USAGE_BY_CUSTOMER_ID" INTEGER,
"LC_LOCAL_KEY_BUSINESS_UNIT" NATIONAL CHARACTER VARYING(125),
"LC_BUSINESS_UNIT_NAME" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_FIRST_NAME" NATIONAL CHARACTER VARYING(125),
"LC_DRIVER_LAST_NAME" NATIONAL CHARACTER VARYING(125),
"LC_SHORT_TERM_RENTAL_INDICATOR" CHARACTER(1),
"LC_ALLOCATION_STATUS_INDICATOR" CHARACTER(1),
"LC_NUMBER_OF_TYRES_IN_CONTRACT" NUMERIC(2,0),
"TELEMATICS_DEV_INSTALL_FLAG" CHARACTER(1) not null,
"TELEMATICS_DEV_INSTALL_DATE" DATE not null,
"TELEMATICS_DEV_DEINSTALL_DATE" DATE not null,
"PRECEDING_LEASECONTRVEHICLE_ID" BIGINT,
"LC_RENEWAL_INDICATOR" CHARACTER(1),
"LC_RELEASING_INDICATOR" CHARACTER(1),
"LC_RELEASING_START_DATE" DATE,
"CH_ORDER_STATUS_ID" INTEGER not null,
"OR_ACTUAL_DELIVERY_DATE" DATE,
"OR_ORDER_RECEIPT_CONFIRM_DATE" DATE,
"OR_CERTIFICATE_RECEIPT_DATE" DATE,
"OR_FIRSTDRIVERAPPOINTMENT_DATE" DATE,
"OR_DRIVER_APPOINTMENT_DATE" DATE,
"OR_ORDER_CANCELLATION_DATE" DATE,
"OR_NUMBEROF_DRIVERAPPOINTMENTS" NUMERIC(2,0),
"OR_ADVANCE_PURCHASE_INDICATOR" CHARACTER(1)
) DISTRIBUTE ON RANDOM;

-- Table LEASE_CONTRACT_VEHICLE version 2;


SET collapse_empty_table_version = false;
ALTER TABLE LPUK_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVESTMENT_AM NUMERIC(11,2);
SET collapse_empty_table_version = true;
ALTER TABLE LPUK_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVEST_AM_EUR NUMERIC(11,2);
ALTER TABLE LPUK_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVESTMENT_AM_EUR NUMERIC(11,2);
ALTER TABLE LPUK_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE DROP COLUMN
LC_DOWNPAYMENT_INVEST_AM_EUR CASCADE;

ALTER TABLE LPUK_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD CONSTRAINT


"LEASE_CONTRACT_VEHICLE_PK" PRIMARY KEY ( "LEASE_CONTRACT_VEHICLE_ID" );
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ( -- Number of Columns


= 226
LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
CUSTOMER_ID BIGINT not null,
LC_LEASE_CONTRACT_NUMBER NATIONAL CHARACTER VARYING(125),
LC_COST_CENTER_NAME NATIONAL CHARACTER VARYING(125),
LC_SLB_FLAG CHARACTER(1),
LC_START_DATE_LEASECONTRACT DATE,
LC_END_DATE_LEASECONTRACT DATE,
LC_BUDG_END_DATE_LEASECONTRACT DATE,
LC_STARTMILEAGELEASECONTRACTKM NUMERIC(7,0),
LC_ENDMILEAGELEASECONTRACT NUMERIC(7,0),
LC_CONTRACT_DURATION NUMERIC(3,0),
LC_CONTRACT_MILEAGE NUMERIC(7,0),
LC_DISCONMONTHLY_LEASEINST NUMERIC(11,2),
LC_MONTHLY_LEASEINSTALMENT NUMERIC(11,2),
LC_MVA_FEE_OVER_MILEAGE NUMERIC(11,2),
LC_MVA_REPAY_UNDER_MILEAGE NUMERIC(11,2),
LC_ACTUAL_INVEST_AMOUNT NUMERIC(11,2),
LC_BUDGETED_INVEST_AMOUNT NUMERIC(11,2),
LC_INVEST_INTEREST_BASE NUMERIC(11,2),
LC_PREPAYMNT_INTEREST_BASE NUMERIC(11,2),
LC_UFWT_AMOUNT NUMERIC(11,2),
LC_EXTENSION_PENALTY NUMERIC(11,2),
LC_EARLY_TERM_PENALTY NUMERIC(11,2),
VEH_VEHICLE_NUMBER NATIONAL CHARACTER VARYING(125),
VEH_MODEL_TYPE_DESCRIPTION NATIONAL CHARACTER VARYING(125),
VEH_CATALOGUE_PRICE NUMERIC(11,2),
VEH_CATALOGUE_PRICE_EUR NUMERIC(11,2),
VEH_ACTUAL_DISCOUNT_PERC NUMERIC(6,3),
VEH_COMMERCIAL_DISCNT_AMT NUMERIC(11,2),
VEH_COMMERCIAL_DISCNT_AMT_EUR NUMERIC(11,2),
VEH_TAX_AMT_NON_RECLAIM NUMERIC(11,2),
VEH_TAX_AMT_NON_RECLAIM_EUR NUMERIC(11,2),
VEH_VAT_PERCENTAGE NUMERIC(6,3),
VEH_TOT_OPTIONS_AMT NUMERIC(11,2),
VEH_TOTAL_OPTIONS_AMT_EUR NUMERIC(11,2),
VEH_TOT_ACCESSOIRIES_AMT NUMERIC(11,2),
VEH_TOT_ACCESSOIRIES_AMT_EUR NUMERIC(11,2),
VEH_DELIVERY_COSTS NUMERIC(11,2),
VEH_DELIVERY_COSTS_EUR NUMERIC(11,2),
VEH_REGISTRATION_NUMBER NATIONAL CHARACTER VARYING(125),
VEH_REGISTRATION_DATE DATE,
VEH_VEH_IDENTIFICATION_NUMBER NATIONAL CHARACTER VARYING(125),
VEH_NUMBER_OF_DOORS NUMERIC(3,0),
VEH_ENGINE_CAPACITY NUMERIC(5,0),
VEH_ENGINE_POWER NUMERIC(5,0),
VEH_NUMBER_OF_CYLINDERS NUMERIC(3,0),
VEH_TARE_WEIGHT NUMERIC(5,0),
VEH_GROSS_WEIGHT NUMERIC(5,0),
VEH_FUEL_CONSUMPT_MANUFACTURER NUMERIC(7,2),
VEH_EXTERNAL_REFERENCE NATIONAL CHARACTER VARYING(125),
VEH_TYRE_SIZE_AT_DELIVERY NATIONAL CHARACTER VARYING(125),
VEH_STANDARD_DISCOUNT_PERC NUMERIC(6,3),
LOAD_DATE DATE,
MNGSERV_TOT_RESIDUAL_VALUE NUMERIC(11,2),
MNGSERV_INTEREST_PERC_INVESTM NUMERIC(6,3),
MNGSERV_INTEREST_PERC_PREPAYM NUMERIC(6,3),
MNGSERV_TOT_RESIDUAL_VALUE_EUR NUMERIC(11,2),
LC_MONTHLY_LEASEINSTALMENT_EUR NUMERIC(11,2),
LC_MVA_FEE_OVER_MILEAGE_EUR NUMERIC(11,2),
LC_MVA_REPAY_UNDER_MILEAGE_EUR NUMERIC(11,2),
LC_ACTUAL_INVEST_AMOUNT_EUR NUMERIC(11,2),
LC_BUDGETED_INVEST_AMOUNT_EUR NUMERIC(11,2),
LC_INVEST_INTEREST_BASE_EUR NUMERIC(11,2),
LC_PREPAYMNT_INTEREST_BASE_EUR NUMERIC(11,2),
LC_UFWT_AMOUNT_EUR NUMERIC(11,2),
LC_EXTENSION_PENALTY_EUR NUMERIC(11,2),
LC_EARLY_TERM_PENALTY_EUR NUMERIC(11,2),
OR_ORDER_NUMBER NATIONAL CHARACTER VARYING(125),
OR_ORDER_DATE DATE,
OR_ESTIMATED_DELIVERY_DATE DATE,
CUSTOMER_SLA_ID BIGINT not null,
LC_DRIVER_NUMBER NATIONAL CHARACTER VARYING(125),
LC_DRIVER_NAME NATIONAL CHARACTER VARYING(125),
OR_ORDER_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125),
OR_ORDER_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125),
LC_LOCAL_KEY_LEASE_CONTRACT NATIONAL CHARACTER VARYING(125),
VEH_LOCAL_KEY_VEHICLE NATIONAL CHARACTER VARYING(125),
OR_LOCAL_KEY_ORDER NATIONAL CHARACTER VARYING(125),
LC_LOCAL_KEY_COST_CENTER NATIONAL CHARACTER VARYING(125),
LC_LOCAL_KEY_DRIVER NATIONAL CHARACTER VARYING(125),
OR_LOCAL_KEY_ORDER_SUPPLIER NATIONAL CHARACTER VARYING(125),
CH_LEASE_CONTRACT_STATUS_ID INTEGER not null,
CH_CONTRACT_TERMINATION_ID INTEGER not null,
CH_CONTRACT_STOP_REASON_ID INTEGER not null,
CH_REGISTRATION_STATUS_ID INTEGER not null,
CH_PURCHASED_BY_ID INTEGER not null,
CH_WINTER_TYRES_INCLUDED_ID INTEGER not null,
CH_MAKE_CODE_ID INTEGER not null,
CH_MODEL_CODE_ID INTEGER not null,
CH_BODY_STYLE_ID INTEGER not null,
CH_DRIVING_METHOD_ID INTEGER not null,
CH_EXTERIOR_COLOUR_ID INTEGER not null,
CH_EXTERIOR_COLOUR_TYPE_ID INTEGER not null,
CH_PRIMARY_FUEL_TYPE_ID INTEGER not null,
CH_TRANSMISSION_TYPE_ID INTEGER not null,
CH_UPHOLSTERY_TYPE_ID INTEGER not null,
CH_VEHICLE_TYPE_ID INTEGER not null,
CH_FLEET_REPORT_CATEGORY_ID INTEGER not null,
CH_PRODUCT_CATEGORY_TYPE_ID INTEGER not null,
PRODUCT_ID BIGINT not null,
LC_BOOK_VALUE NUMERIC(11,2),
CH_ASSET_TYPE_ID INTEGER not null,
CH_VEHICLE_SEGMENT_ID INTEGER not null,
CH_OEM_ID INTEGER not null,
LC_STARTMILEAGELEASECONTRACT NUMERIC(7,0),
LC_ENDMILEAGELEASECONTRACTKM NUMERIC(7,0),
LC_CONTRACT_MILEAGE_KM NUMERIC(7,0),
LC_BOOK_VALUE_EUR NUMERIC(11,2),
LC_DISCONMONTHLY_LEASEINST_EUR NUMERIC(11,2),
CH_VEHICLE_SEGMENT_LOCAL_ID INTEGER not null,
CH_MVA_SYSTEM_ID INTEGER not null,
CH_BUY_BACK_CODE INTEGER not null,
CH_RISK_RULING_CODE INTEGER not null,
CH_VEHICLE_GROUP_CODE INTEGER not null,
CH_DATA_SUPPLIER_VEHICLE_CODE INTEGER not null,
CH_OWN_DAMAGE_RISK_ID INTEGER not null,
CH_UFWT_TYPE_ID INTEGER not null,
CH_MVA_SETTLEMENT_ID INTEGER not null,
LC_CUSTOMER_DRIVER_ID NATIONAL CHARACTER VARYING(125),
VEH_CO2_LEVEL_COMBINED NUMERIC(6,0),
CH_SECONDARY_FUEL_TYPE INTEGER not null,
CH_NUMBER_OF_FORWARD_GEARS INTEGER not null,
VEH_INDICATOR_NEW_MODEL CHARACTER(1),
VEH_MODEL_END_DATE DATE,
VEH_MODEL_INTRO_DATE DATE,
VEH_MODEL_FACELIFT_INTRO_DATE DATE,
VEH_MODEL_FACELIFT_END_DATE DATE,
VEH_NUMBER_OF_SEATS NUMERIC(2,0),
LC_DRIVER_SET_SEND_DATE DATE,
LC_INTEREST_LOSS_AT_TERM NUMERIC(11,2),
LC_INTEREST_LOSS_AT_TERM_EUR NUMERIC(11,2),
LC_MVA_FEE_MIN_OVERMILEAGE NUMERIC(17,7),
LC_MVA_FEE_MIN_OVERMILEAGE_EUR NUMERIC(17,7),
LC_MVA_FEE_MID_OVERMILEAGE NUMERIC(17,7),
LC_MVA_FEE_MID_OVERMILEAGE_EUR NUMERIC(17,7),
LC_MVA_FEE_MAX_OVERMILEAGE NUMERIC(17,7),
LC_MVA_FEE_MAX_OVERMILEAGE_EUR NUMERIC(17,7),
LC_MVAREPAY_MINUNDERMILEAGE NUMERIC(17,7),
LC_MVAREPAY_MINUNDERMILEAGEEUR NUMERIC(17,7),
LC_MVAREPAY_MIDUNDERMILEAGE NUMERIC(17,7),
LC_MVAREPAY_MIDUNDERMILEAGEEUR NUMERIC(17,7),
LC_MVAREPAY_MAXUNDERMILEAGE NUMERIC(17,7),
LC_MVAREPAY_MAXUNDERMILEAGEEUR NUMERIC(17,7),
LC_MVA_THRESHHIGH_OVER_MILEAGE NUMERIC(7,0),
LC_MVA_THESHHIGH_UNDER_MILEAGE NUMERIC(7,0),
LC_MVA_THRESHLOW_UNDER_MILEAGE NUMERIC(7,0),
LC_MVA_THRESHLOW_OVER_MILEAGE NUMERIC(7,0),
LC_TERMINATION_PROCESS_DATE DATE,
LC_CREATION_DATE_LEASECONTRACT DATE,
LC_FORMAL_EXTENSION_APPLICABLE NATIONAL CHARACTER VARYING(125),
LC_ACTIVATION_DATE_FORMAL_EXT DATE,
LC_CONTRACT_DURATION_FORMAL_EX NUMERIC(3,0),
LC_CONTRACT_MILEAGE_FORMAL_EXT NUMERIC(7,0),
LC_RESIDUAL_VALUE_FORM_EXT NUMERIC(11,2),
LC_RESIDUAL_VALUE_FORM_EXT_EUR NUMERIC(11,2),
LC_CAR_INSPEC_ENG_DAM_AM NUMERIC(11,2),
LC_CAR_INSPEC_ENG_DAM_AM_EUR NUMERIC(11,2),
LC_CAR_INSPEC_EXT_DAM_AM NUMERIC(11,2),
LC_CAR_INSPEC_EXT_DAM_AM_EUR NUMERIC(11,2),
LC_CAR_INSPEC_INT_DAM_AM NUMERIC(11,2),
LC_CAR_INSPEC_INT_DAM_AM_EUR NUMERIC(11,2),
LC_MVA_UM_LIMIT_PERCENTAGE NUMERIC(6,3),
LC_MVA_OM_LIMIT_PERCENTAGE NUMERIC(6,3),
LC_MVA_UM_FACTOR NUMERIC(6,3),
LC_MVA_OM_FACTOR NUMERIC(6,3),
CH_TYRE_WIDTH_FRONT INTEGER not null,
CH_TYRE_WIDTH_REAR INTEGER not null,
CH_TYRE_RIM_DIAM_FRONT INTEGER not null,
CH_TYRE_RIM_DIAM_REAR INTEGER not null,
VEH_CONSUMER_PRICE NUMERIC(11,2),
VEH_CONSUMER_PRICE_EUR NUMERIC(11,2),
VEH_LUXURY_TAX_AM NUMERIC(11,2),
VEH_LUXURY_TAX_AM_EUR NUMERIC(11,2),
VEH_ENROLMENT_TAX_AM NUMERIC(11,2),
VEH_ENROLMENT_TAX_AM_EUR NUMERIC(11,2),
LC_UFWT_TOTAL_ASSESSED_AM NUMERIC(11,2),
LC_UFWT_TOTAL_ASSESSED_AM_EUR NUMERIC(11,2),
LC_RESIDUAL_VALUE_BASE NUMERIC(11,2),
LC_RESIDUAL_VALUE_BASE_EUR NUMERIC(11,2),
LC_INSURANCE_LOSS_RATIO NUMERIC(17,5),
LC_LAST_KNOWN_MILEAGE NUMERIC(7,0),
LC_LAST_KNOWN_MILEAGE_DATE DATE,
LC_CONTRACT_DURATION_FP NUMERIC(3,0),
LC_CONTRACT_MILEAGE_FP NUMERIC(7,0),
LC_MONTHLY_LEASEINSTALM_FP NUMERIC(11,2),
LC_BUDGETED_INVEST_AM_FP NUMERIC(11,2),
LC_MONTHLY_LEASEINSTALM_FP_EUR NUMERIC(11,2),
LC_BUDGETED_INVEST_AM_FP_EUR NUMERIC(11,2),
LC_START_DATE_LEASECONTRACT_FP DATE,
LC_END_DATE_LEASECONTRACT_FP DATE,
OR_CREATION_DATE_ORDER DATE,
LC_REGISTRATIONDATE_START DATE,
LC_REGISTRATIONDT_TERMINATION DATE,
LC_MVA_DEPR_TO_BE_INVOICED NUMERIC(11,2),
LC_MVA_RM_TO_BE_INVOICED NUMERIC(11,2),
LC_MVA_TYRES_TO_BE_INVOICED NUMERIC(11,2),
LC_UFWT_TO_BE_INVOICED NUMERIC(11,2),
LC_INVOICINGENDDATE_LC DATE,
CH_ACTIVATIONTYPE_LC INTEGER,
CH_DEACTIVATIONTYPE_LC INTEGER,
LC_LASTRECOGNIZEDOBJMILEAGE NUMERIC(7,0),
LC_LASTRECOGNIZEDOBJMILEAGEDT DATE,
CH_USAGE_BY_CUSTOMER_ID INTEGER,
LC_LOCAL_KEY_BUSINESS_UNIT NATIONAL CHARACTER VARYING(125),
LC_BUSINESS_UNIT_NAME NATIONAL CHARACTER VARYING(125),
LC_DRIVER_FIRST_NAME NATIONAL CHARACTER VARYING(125),
LC_DRIVER_LAST_NAME NATIONAL CHARACTER VARYING(125),
LC_SHORT_TERM_RENTAL_INDICATOR CHARACTER(1),
LC_ALLOCATION_STATUS_INDICATOR CHARACTER(1),
LC_NUMBER_OF_TYRES_IN_CONTRACT NUMERIC(2,0),
TELEMATICS_DEV_INSTALL_FLAG CHARACTER(1) not null,
TELEMATICS_DEV_INSTALL_DATE DATE not null,
TELEMATICS_DEV_DEINSTALL_DATE DATE not null,
PRECEDING_LEASECONTRVEHICLE_ID BIGINT,
LC_RENEWAL_INDICATOR CHARACTER(1),
LC_RELEASING_INDICATOR CHARACTER(1),
LC_RELEASING_START_DATE DATE,
CH_ORDER_STATUS_ID INTEGER not null,
OR_ACTUAL_DELIVERY_DATE DATE,
OR_ORDER_RECEIPT_CONFIRM_DATE DATE,
OR_CERTIFICATE_RECEIPT_DATE DATE,
OR_FIRSTDRIVERAPPOINTMENT_DATE DATE,
OR_DRIVER_APPOINTMENT_DATE DATE,
OR_ORDER_CANCELLATION_DATE DATE,
OR_NUMBEROF_DRIVERAPPOINTMENTS NUMERIC(2,0),
OR_ADVANCE_PURCHASE_INDICATOR CHARACTER(1)
) DISTRIBUTE ON RANDOM;
-- Table LEASE_CONTRACT_VEHICLE version 2;
SET collapse_empty_table_version = false;
ALTER TABLE LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVESTMENT_AM NUMERIC(11,2);
SET collapse_empty_table_version = true;
ALTER TABLE LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVEST_AM_EUR NUMERIC(11,2);
ALTER TABLE LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD COLUMN
LC_DOWNPAYMENT_INVESTMENT_AM_EUR NUMERIC(11,2);
ALTER TABLE LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE DROP COLUMN
LC_DOWNPAYMENT_INVEST_AM_EUR CASCADE;

ALTER TABLE LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE ADD CONSTRAINT


LEASE_CONTRACT_VEHICLE_PK PRIMARY KEY ( LEASE_CONTRACT_VEHICLE_ID );
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."LEASE_SERVICE" ( -- Number of Columns = 25


"LEASE_SERVICE_ID" INTEGER not null,
"LEASE_SERVICE_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"LEASE_SERVICE_CONS_496" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_497" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_RM" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_LPI" NATIONAL CHARACTER VARYING(125),
"IS_A_DELIVERED_LEASE_SERVICE" CHARACTER(1),
"IS_A_INVOICED_LEASE_SERVICE" CHARACTER(1),
"IS_A_MANAGED_LEASE_SERVICE" CHARACTER(1),
"IS_A_AGREED_LEASE_SERVICE" CHARACTER(1),
"LEASE_SERVICE_L1_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L1_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L2_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L3_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L4_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L5_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L2_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L3_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L4_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L5_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_MODULE" NATIONAL CHARACTER VARYING(125),
"IS_A_TOTALIZED_LEASE_SERVICE" CHARACTER(1),
PRIMARY KEY ( "LEASE_SERVICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE ( -- Number of Columns = 25


LEASE_SERVICE_ID INTEGER not null,
LEASE_SERVICE_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
LEASE_SERVICE_CONS_496 NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_497 NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_RM NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_LPI NATIONAL CHARACTER VARYING(125),
IS_A_DELIVERED_LEASE_SERVICE CHARACTER(1),
IS_A_INVOICED_LEASE_SERVICE CHARACTER(1),
IS_A_MANAGED_LEASE_SERVICE CHARACTER(1),
IS_A_AGREED_LEASE_SERVICE CHARACTER(1),
LEASE_SERVICE_L1_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L1_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L2_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L3_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L4_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L5_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L2_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L3_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L4_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L5_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_MODULE NATIONAL CHARACTER VARYING(125),
IS_A_TOTALIZED_LEASE_SERVICE CHARACTER(1)
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE ( -- Number of Columns = 25


LEASE_SERVICE_ID INTEGER not null,
LEASE_SERVICE_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
LEASE_SERVICE_CONS_496 NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_497 NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_RM NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_LPI NATIONAL CHARACTER VARYING(125),
IS_A_DELIVERED_LEASE_SERVICE CHARACTER(1),
IS_A_INVOICED_LEASE_SERVICE CHARACTER(1),
IS_A_MANAGED_LEASE_SERVICE CHARACTER(1),
IS_A_AGREED_LEASE_SERVICE CHARACTER(1),
LEASE_SERVICE_L1_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L1_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L2_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L3_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L4_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L5_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L2_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L3_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L4_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L5_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_MODULE NATIONAL CHARACTER VARYING(125),
IS_A_TOTALIZED_LEASE_SERVICE CHARACTER(1),
PRIMARY KEY ( LEASE_SERVICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."LEASE_SERVICE" ( -- Number of Columns = 25


"LEASE_SERVICE_ID" INTEGER not null,
"LEASE_SERVICE_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"LEASE_SERVICE_CONS_496" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_497" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_RM" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_LPI" NATIONAL CHARACTER VARYING(125),
"IS_A_DELIVERED_LEASE_SERVICE" CHARACTER(1),
"IS_A_INVOICED_LEASE_SERVICE" CHARACTER(1),
"IS_A_MANAGED_LEASE_SERVICE" CHARACTER(1),
"IS_A_AGREED_LEASE_SERVICE" CHARACTER(1),
"LEASE_SERVICE_L1_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L1_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L2_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L3_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L4_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L5_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L2_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L3_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L4_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L5_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_MODULE" NATIONAL CHARACTER VARYING(125),
"IS_A_TOTALIZED_LEASE_SERVICE" CHARACTER(1),
PRIMARY KEY ( "LEASE_SERVICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.LEASE_SERVICE ( -- Number of Columns = 25


LEASE_SERVICE_ID INTEGER not null,
LEASE_SERVICE_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
LEASE_SERVICE_CONS_496 NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_497 NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_RM NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_LPI NATIONAL CHARACTER VARYING(125),
IS_A_DELIVERED_LEASE_SERVICE CHARACTER(1),
IS_A_INVOICED_LEASE_SERVICE CHARACTER(1),
IS_A_MANAGED_LEASE_SERVICE CHARACTER(1),
IS_A_AGREED_LEASE_SERVICE CHARACTER(1),
LEASE_SERVICE_L1_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L1_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L2_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L3_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L4_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L5_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L2_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L3_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L4_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L5_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_MODULE NATIONAL CHARACTER VARYING(125),
IS_A_TOTALIZED_LEASE_SERVICE CHARACTER(1),
PRIMARY KEY ( LEASE_SERVICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.LEASE_SERVICE ( -- Number of Columns = 25


LEASE_SERVICE_ID INTEGER not null,
LEASE_SERVICE_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
LEASE_SERVICE_CONS_496 NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_497 NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_RM NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_LPI NATIONAL CHARACTER VARYING(125),
IS_A_DELIVERED_LEASE_SERVICE CHARACTER(1),
IS_A_INVOICED_LEASE_SERVICE CHARACTER(1),
IS_A_MANAGED_LEASE_SERVICE CHARACTER(1),
IS_A_AGREED_LEASE_SERVICE CHARACTER(1),
LEASE_SERVICE_L1_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L1_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L2_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L3_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L4_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L5_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L2_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L3_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L4_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L5_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_MODULE NATIONAL CHARACTER VARYING(125),
IS_A_TOTALIZED_LEASE_SERVICE CHARACTER(1),
PRIMARY KEY ( LEASE_SERVICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.LEASE_SERVICE ( -- Number of Columns = 25


LEASE_SERVICE_ID INTEGER not null,
LEASE_SERVICE_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
LEASE_SERVICE_CONS_496 NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_497 NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_RM NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_LPI NATIONAL CHARACTER VARYING(125),
IS_A_DELIVERED_LEASE_SERVICE CHARACTER(1),
IS_A_INVOICED_LEASE_SERVICE CHARACTER(1),
IS_A_MANAGED_LEASE_SERVICE CHARACTER(1),
IS_A_AGREED_LEASE_SERVICE CHARACTER(1),
LEASE_SERVICE_L1_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L1_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L2_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L3_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L4_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L5_CODE NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L2_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L3_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L4_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_L5_DESC NATIONAL CHARACTER VARYING(125),
LEASE_SERVICE_CONS_MODULE NATIONAL CHARACTER VARYING(125),
IS_A_TOTALIZED_LEASE_SERVICE CHARACTER(1),
PRIMARY KEY ( LEASE_SERVICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."LEASE_SERVICE" ( -- Number of Columns = 25


"LEASE_SERVICE_ID" INTEGER not null,
"LEASE_SERVICE_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"LEASE_SERVICE_CONS_496" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_497" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_RM" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_LPI" NATIONAL CHARACTER VARYING(125),
"IS_A_DELIVERED_LEASE_SERVICE" CHARACTER(1),
"IS_A_INVOICED_LEASE_SERVICE" CHARACTER(1),
"IS_A_MANAGED_LEASE_SERVICE" CHARACTER(1),
"IS_A_AGREED_LEASE_SERVICE" CHARACTER(1),
"LEASE_SERVICE_L1_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L1_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L2_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L3_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L4_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L5_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L2_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L3_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L4_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L5_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_MODULE" NATIONAL CHARACTER VARYING(125),
"IS_A_TOTALIZED_LEASE_SERVICE" CHARACTER(1),
PRIMARY KEY ( "LEASE_SERVICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."LEASE_SERVICE" ( -- Number of Columns = 25


"LEASE_SERVICE_ID" INTEGER not null,
"LEASE_SERVICE_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"LEASE_SERVICE_CONS_496" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_497" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_RM" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_LPI" NATIONAL CHARACTER VARYING(125),
"IS_A_DELIVERED_LEASE_SERVICE" CHARACTER(1),
"IS_A_INVOICED_LEASE_SERVICE" CHARACTER(1),
"IS_A_MANAGED_LEASE_SERVICE" CHARACTER(1),
"IS_A_AGREED_LEASE_SERVICE" CHARACTER(1),
"LEASE_SERVICE_L1_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L1_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L2_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L3_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L4_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L5_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L2_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L3_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L4_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L5_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_MODULE" NATIONAL CHARACTER VARYING(125),
"IS_A_TOTALIZED_LEASE_SERVICE" CHARACTER(1),
PRIMARY KEY ( "LEASE_SERVICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."LEASE_SERVICE" ( -- Number of Columns = 25


"LEASE_SERVICE_ID" INTEGER not null,
"LEASE_SERVICE_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"LEASE_SERVICE_CONS_496" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_497" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_RM" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_LPI" NATIONAL CHARACTER VARYING(125),
"IS_A_DELIVERED_LEASE_SERVICE" CHARACTER(1),
"IS_A_INVOICED_LEASE_SERVICE" CHARACTER(1),
"IS_A_MANAGED_LEASE_SERVICE" CHARACTER(1),
"IS_A_AGREED_LEASE_SERVICE" CHARACTER(1),
"LEASE_SERVICE_L1_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L1_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L2_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L3_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L4_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L5_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L2_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L3_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L4_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L5_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_MODULE" NATIONAL CHARACTER VARYING(125),
"IS_A_TOTALIZED_LEASE_SERVICE" CHARACTER(1),
PRIMARY KEY ( "LEASE_SERVICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."LEASE_SERVICE" ( -- Number of Columns = 25


"LEASE_SERVICE_ID" INTEGER not null,
"LEASE_SERVICE_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
"LEASE_SERVICE_CONS_496" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_497" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_RM" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_LPI" NATIONAL CHARACTER VARYING(125),
"IS_A_DELIVERED_LEASE_SERVICE" CHARACTER(1),
"IS_A_INVOICED_LEASE_SERVICE" CHARACTER(1),
"IS_A_MANAGED_LEASE_SERVICE" CHARACTER(1),
"IS_A_AGREED_LEASE_SERVICE" CHARACTER(1),
"LEASE_SERVICE_L1_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L1_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L2_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L3_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L4_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L5_CODE" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L2_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L3_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L4_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_L5_DESC" NATIONAL CHARACTER VARYING(125),
"LEASE_SERVICE_CONS_MODULE" NATIONAL CHARACTER VARYING(125),
"IS_A_TOTALIZED_LEASE_SERVICE" CHARACTER(1),
PRIMARY KEY ( "LEASE_SERVICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."LEASE_SERVICE_AGREEMENT" ( -- Number of


Columns = 12
"LEASE_SERVICE_ID" INTEGER not null,
"CUSTOMER_SLA_ID" BIGINT not null,
"LEASE_SERVICE_AGREEMENT_ID" BIGINT not null,
"PREFERRED_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_CONS" NATIONAL CHARACTER VARYING(125),
"SERVICE_INCLUSION" CHARACTER(1),
"LOAD_DATE" DATE,
"LOCAL_KEY_LEASE_SERVICE_AGREEM" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_PREFERRED_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"CH_SUPPL_SELECT_MANDATE_ID" INTEGER not null,
"CH_SERVICE_CHARGE_METHOD_ID" INTEGER not null,
PRIMARY KEY ( "LEASE_SERVICE_AGREEMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE_AGREEMENT ( -- Number of


Columns = 12
LEASE_SERVICE_ID INTEGER not null,
CUSTOMER_SLA_ID BIGINT not null,
LEASE_SERVICE_AGREEMENT_ID BIGINT not null,
PREFERRED_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125),
PREFERRED_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125),
PREFERRED_SUPPLIER_CONS NATIONAL CHARACTER VARYING(125),
SERVICE_INCLUSION CHARACTER(1),
LOAD_DATE DATE,
LOCAL_KEY_LEASE_SERVICE_AGREEM NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_PREFERRED_SUPPLIER NATIONAL CHARACTER VARYING(125),
CH_SUPPL_SELECT_MANDATE_ID INTEGER not null,
CH_SERVICE_CHARGE_METHOD_ID INTEGER not null
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE_AGREEMENT ( -- Number of Columns


= 12
LEASE_SERVICE_ID INTEGER not null,
CUSTOMER_SLA_ID BIGINT not null,
LEASE_SERVICE_AGREEMENT_ID BIGINT not null,
PREFERRED_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125),
PREFERRED_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125),
PREFERRED_SUPPLIER_CONS NATIONAL CHARACTER VARYING(125),
SERVICE_INCLUSION CHARACTER(1),
LOAD_DATE DATE,
LOCAL_KEY_LEASE_SERVICE_AGREEM NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_PREFERRED_SUPPLIER NATIONAL CHARACTER VARYING(125),
CH_SUPPL_SELECT_MANDATE_ID INTEGER not null,
CH_SERVICE_CHARGE_METHOD_ID INTEGER not null,
PRIMARY KEY ( LEASE_SERVICE_AGREEMENT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."LEASE_SERVICE_AGREEMENT" ( -- Number of


Columns = 12
"LEASE_SERVICE_ID" INTEGER not null,
"CUSTOMER_SLA_ID" BIGINT not null,
"LEASE_SERVICE_AGREEMENT_ID" BIGINT not null,
"PREFERRED_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_CONS" NATIONAL CHARACTER VARYING(125),
"SERVICE_INCLUSION" CHARACTER(1),
"LOAD_DATE" DATE,
"LOCAL_KEY_LEASE_SERVICE_AGREEM" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_PREFERRED_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"CH_SUPPL_SELECT_MANDATE_ID" INTEGER not null,
"CH_SERVICE_CHARGE_METHOD_ID" INTEGER not null,
PRIMARY KEY ( "LEASE_SERVICE_AGREEMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.LEASE_SERVICE_AGREEMENT ( -- Number of Columns


= 12
LEASE_SERVICE_ID INTEGER not null,
CUSTOMER_SLA_ID BIGINT not null,
LEASE_SERVICE_AGREEMENT_ID BIGINT not null,
PREFERRED_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125),
PREFERRED_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125),
PREFERRED_SUPPLIER_CONS NATIONAL CHARACTER VARYING(125),
SERVICE_INCLUSION CHARACTER(1),
LOAD_DATE DATE,
LOCAL_KEY_LEASE_SERVICE_AGREEM NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_PREFERRED_SUPPLIER NATIONAL CHARACTER VARYING(125),
CH_SUPPL_SELECT_MANDATE_ID INTEGER not null,
CH_SERVICE_CHARGE_METHOD_ID INTEGER not null,
PRIMARY KEY ( LEASE_SERVICE_AGREEMENT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.LEASE_SERVICE_AGREEMENT ( -- Number of


Columns = 12
LEASE_SERVICE_ID INTEGER not null,
CUSTOMER_SLA_ID BIGINT not null,
LEASE_SERVICE_AGREEMENT_ID BIGINT not null,
PREFERRED_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125),
PREFERRED_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125),
PREFERRED_SUPPLIER_CONS NATIONAL CHARACTER VARYING(125),
SERVICE_INCLUSION CHARACTER(1),
LOAD_DATE DATE,
LOCAL_KEY_LEASE_SERVICE_AGREEM NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_PREFERRED_SUPPLIER NATIONAL CHARACTER VARYING(125),
CH_SUPPL_SELECT_MANDATE_ID INTEGER not null,
CH_SERVICE_CHARGE_METHOD_ID INTEGER not null,
PRIMARY KEY ( LEASE_SERVICE_AGREEMENT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.LEASE_SERVICE_AGREEMENT ( -- Number of Columns


= 12
LEASE_SERVICE_ID INTEGER not null,
CUSTOMER_SLA_ID BIGINT not null,
LEASE_SERVICE_AGREEMENT_ID BIGINT not null,
PREFERRED_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125),
PREFERRED_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125),
PREFERRED_SUPPLIER_CONS NATIONAL CHARACTER VARYING(125),
SERVICE_INCLUSION CHARACTER(1),
LOAD_DATE DATE,
LOCAL_KEY_LEASE_SERVICE_AGREEM NATIONAL CHARACTER VARYING(125),
LOCAL_KEY_PREFERRED_SUPPLIER NATIONAL CHARACTER VARYING(125),
CH_SUPPL_SELECT_MANDATE_ID INTEGER not null,
CH_SERVICE_CHARGE_METHOD_ID INTEGER not null,
PRIMARY KEY ( LEASE_SERVICE_AGREEMENT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."LEASE_SERVICE_AGREEMENT" ( -- Number of


Columns = 12
"LEASE_SERVICE_ID" INTEGER not null,
"CUSTOMER_SLA_ID" BIGINT not null,
"LEASE_SERVICE_AGREEMENT_ID" BIGINT not null,
"PREFERRED_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_CONS" NATIONAL CHARACTER VARYING(125),
"SERVICE_INCLUSION" CHARACTER(1),
"LOAD_DATE" DATE,
"LOCAL_KEY_LEASE_SERVICE_AGREEM" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_PREFERRED_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"CH_SUPPL_SELECT_MANDATE_ID" INTEGER not null,
"CH_SERVICE_CHARGE_METHOD_ID" INTEGER not null,
PRIMARY KEY ( "LEASE_SERVICE_AGREEMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."LEASE_SERVICE_AGREEMENT" ( -- Number of


Columns = 12
"LEASE_SERVICE_ID" INTEGER not null,
"CUSTOMER_SLA_ID" BIGINT not null,
"LEASE_SERVICE_AGREEMENT_ID" BIGINT not null,
"PREFERRED_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_CONS" NATIONAL CHARACTER VARYING(125),
"SERVICE_INCLUSION" CHARACTER(1),
"LOAD_DATE" DATE,
"LOCAL_KEY_LEASE_SERVICE_AGREEM" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_PREFERRED_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"CH_SUPPL_SELECT_MANDATE_ID" INTEGER not null,
"CH_SERVICE_CHARGE_METHOD_ID" INTEGER not null,
PRIMARY KEY ( "LEASE_SERVICE_AGREEMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."LEASE_SERVICE_AGREEMENT" ( -- Number of


Columns = 12
"LEASE_SERVICE_ID" INTEGER not null,
"CUSTOMER_SLA_ID" BIGINT not null,
"LEASE_SERVICE_AGREEMENT_ID" BIGINT not null,
"PREFERRED_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_CONS" NATIONAL CHARACTER VARYING(125),
"SERVICE_INCLUSION" CHARACTER(1),
"LOAD_DATE" DATE,
"LOCAL_KEY_LEASE_SERVICE_AGREEM" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_PREFERRED_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"CH_SUPPL_SELECT_MANDATE_ID" INTEGER not null,
"CH_SERVICE_CHARGE_METHOD_ID" INTEGER not null,
PRIMARY KEY ( "LEASE_SERVICE_AGREEMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."LEASE_SERVICE_AGREEMENT" ( -- Number of


Columns = 12
"LEASE_SERVICE_ID" INTEGER not null,
"CUSTOMER_SLA_ID" BIGINT not null,
"LEASE_SERVICE_AGREEMENT_ID" BIGINT not null,
"PREFERRED_SUPPLIER_NUMBER" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_NAME" NATIONAL CHARACTER VARYING(125),
"PREFERRED_SUPPLIER_CONS" NATIONAL CHARACTER VARYING(125),
"SERVICE_INCLUSION" CHARACTER(1),
"LOAD_DATE" DATE,
"LOCAL_KEY_LEASE_SERVICE_AGREEM" NATIONAL CHARACTER VARYING(125),
"LOCAL_KEY_PREFERRED_SUPPLIER" NATIONAL CHARACTER VARYING(125),
"CH_SUPPL_SELECT_MANDATE_ID" INTEGER not null,
"CH_SERVICE_CHARGE_METHOD_ID" INTEGER not null,
PRIMARY KEY ( "LEASE_SERVICE_AGREEMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."LP_INVOICE" ( -- Number of Columns = 16


"LP_INVOICE_ID" BIGINT not null,
"LP_INVOICE_RECEIVER_ID" BIGINT not null,
"INVOICE_AMOUNT_EX_VAT" NUMERIC(11,2),
"INVOICE_AMOUNT_EX_VAT_EUR" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT_EUR" NUMERIC(11,2),
"INVOICE_DATE" DATE,
"INVOICE_DUE_DATE" DATE,
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"INVOICE_PAYMENT_DATE" DATE,
"TOT_INVOICE_AMT_REM_ITEMS" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"LOCAL_KEY_LP_INVOICE" NATIONAL CHARACTER VARYING(125),
"INVOICE_BOOK_PERIOD" NUMERIC(6,0),
"CH_LP_INVOICE_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "LP_INVOICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.LP_INVOICE ( -- Number of Columns = 16


LP_INVOICE_ID BIGINT not null,
LP_INVOICE_RECEIVER_ID BIGINT not null,
INVOICE_AMOUNT_EX_VAT NUMERIC(11,2),
INVOICE_AMOUNT_EX_VAT_EUR NUMERIC(11,2),
INVOICE_AMT_NONRECLAIM_VAT NUMERIC(11,2),
INVOICE_AMT_NONRECLAIM_VAT_EUR NUMERIC(11,2),
INVOICE_DATE DATE,
INVOICE_DUE_DATE DATE,
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125),
INVOICE_PAYMENT_DATE DATE,
TOT_INVOICE_AMT_REM_ITEMS NUMERIC(11,2),
TOT_INVOICE_AMT_REM_ITEMS_EUR NUMERIC(11,2),
LOAD_DATE DATE,
LOCAL_KEY_LP_INVOICE NATIONAL CHARACTER VARYING(125),
INVOICE_BOOK_PERIOD NUMERIC(6,0),
CH_LP_INVOICE_TYPE_ID INTEGER not null
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.LP_INVOICE ( -- Number of Columns = 16


LP_INVOICE_ID BIGINT not null,
LP_INVOICE_RECEIVER_ID BIGINT not null,
INVOICE_AMOUNT_EX_VAT NUMERIC(11,2),
INVOICE_AMOUNT_EX_VAT_EUR NUMERIC(11,2),
INVOICE_AMT_NONRECLAIM_VAT NUMERIC(11,2),
INVOICE_AMT_NONRECLAIM_VAT_EUR NUMERIC(11,2),
INVOICE_DATE DATE,
INVOICE_DUE_DATE DATE,
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125),
INVOICE_PAYMENT_DATE DATE,
TOT_INVOICE_AMT_REM_ITEMS NUMERIC(11,2),
TOT_INVOICE_AMT_REM_ITEMS_EUR NUMERIC(11,2),
LOAD_DATE DATE,
LOCAL_KEY_LP_INVOICE NATIONAL CHARACTER VARYING(125),
INVOICE_BOOK_PERIOD NUMERIC(6,0),
CH_LP_INVOICE_TYPE_ID INTEGER not null,
PRIMARY KEY ( LP_INVOICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."LP_INVOICE" ( -- Number of Columns = 16


"LP_INVOICE_ID" BIGINT not null,
"LP_INVOICE_RECEIVER_ID" BIGINT not null,
"INVOICE_AMOUNT_EX_VAT" NUMERIC(11,2),
"INVOICE_AMOUNT_EX_VAT_EUR" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT_EUR" NUMERIC(11,2),
"INVOICE_DATE" DATE,
"INVOICE_DUE_DATE" DATE,
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"INVOICE_PAYMENT_DATE" DATE,
"TOT_INVOICE_AMT_REM_ITEMS" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"LOCAL_KEY_LP_INVOICE" NATIONAL CHARACTER VARYING(125),
"INVOICE_BOOK_PERIOD" NUMERIC(6,0),
"CH_LP_INVOICE_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "LP_INVOICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.LP_INVOICE ( -- Number of Columns = 16


LP_INVOICE_ID BIGINT not null,
LP_INVOICE_RECEIVER_ID BIGINT not null,
INVOICE_AMOUNT_EX_VAT NUMERIC(11,2),
INVOICE_AMOUNT_EX_VAT_EUR NUMERIC(11,2),
INVOICE_AMT_NONRECLAIM_VAT NUMERIC(11,2),
INVOICE_AMT_NONRECLAIM_VAT_EUR NUMERIC(11,2),
INVOICE_DATE DATE,
INVOICE_DUE_DATE DATE,
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125),
INVOICE_PAYMENT_DATE DATE,
TOT_INVOICE_AMT_REM_ITEMS NUMERIC(11,2),
TOT_INVOICE_AMT_REM_ITEMS_EUR NUMERIC(11,2),
LOAD_DATE DATE,
LOCAL_KEY_LP_INVOICE NATIONAL CHARACTER VARYING(125),
INVOICE_BOOK_PERIOD NUMERIC(6,0),
CH_LP_INVOICE_TYPE_ID INTEGER not null,
PRIMARY KEY ( LP_INVOICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.LP_INVOICE ( -- Number of Columns = 16


LP_INVOICE_ID BIGINT not null,
LP_INVOICE_RECEIVER_ID BIGINT not null,
INVOICE_AMOUNT_EX_VAT NUMERIC(11,2),
INVOICE_AMOUNT_EX_VAT_EUR NUMERIC(11,2),
INVOICE_AMT_NONRECLAIM_VAT NUMERIC(11,2),
INVOICE_AMT_NONRECLAIM_VAT_EUR NUMERIC(11,2),
INVOICE_DATE DATE,
INVOICE_DUE_DATE DATE,
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125),
INVOICE_PAYMENT_DATE DATE,
TOT_INVOICE_AMT_REM_ITEMS NUMERIC(11,2),
TOT_INVOICE_AMT_REM_ITEMS_EUR NUMERIC(11,2),
LOAD_DATE DATE,
LOCAL_KEY_LP_INVOICE NATIONAL CHARACTER VARYING(125),
INVOICE_BOOK_PERIOD NUMERIC(6,0),
CH_LP_INVOICE_TYPE_ID INTEGER not null,
PRIMARY KEY ( LP_INVOICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.LP_INVOICE ( -- Number of Columns = 16


LP_INVOICE_ID BIGINT not null,
LP_INVOICE_RECEIVER_ID BIGINT not null,
INVOICE_AMOUNT_EX_VAT NUMERIC(11,2),
INVOICE_AMOUNT_EX_VAT_EUR NUMERIC(11,2),
INVOICE_AMT_NONRECLAIM_VAT NUMERIC(11,2),
INVOICE_AMT_NONRECLAIM_VAT_EUR NUMERIC(11,2),
INVOICE_DATE DATE,
INVOICE_DUE_DATE DATE,
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125),
INVOICE_PAYMENT_DATE DATE,
TOT_INVOICE_AMT_REM_ITEMS NUMERIC(11,2),
TOT_INVOICE_AMT_REM_ITEMS_EUR NUMERIC(11,2),
LOAD_DATE DATE,
LOCAL_KEY_LP_INVOICE NATIONAL CHARACTER VARYING(125),
INVOICE_BOOK_PERIOD NUMERIC(6,0),
CH_LP_INVOICE_TYPE_ID INTEGER not null,
PRIMARY KEY ( LP_INVOICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."LP_INVOICE" ( -- Number of Columns = 16


"LP_INVOICE_ID" BIGINT not null,
"LP_INVOICE_RECEIVER_ID" BIGINT not null,
"INVOICE_AMOUNT_EX_VAT" NUMERIC(11,2),
"INVOICE_AMOUNT_EX_VAT_EUR" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT_EUR" NUMERIC(11,2),
"INVOICE_DATE" DATE,
"INVOICE_DUE_DATE" DATE,
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"INVOICE_PAYMENT_DATE" DATE,
"TOT_INVOICE_AMT_REM_ITEMS" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"LOCAL_KEY_LP_INVOICE" NATIONAL CHARACTER VARYING(125),
"INVOICE_BOOK_PERIOD" NUMERIC(6,0),
"CH_LP_INVOICE_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "LP_INVOICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."LP_INVOICE" ( -- Number of Columns = 16


"LP_INVOICE_ID" BIGINT not null,
"LP_INVOICE_RECEIVER_ID" BIGINT not null,
"INVOICE_AMOUNT_EX_VAT" NUMERIC(11,2),
"INVOICE_AMOUNT_EX_VAT_EUR" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT_EUR" NUMERIC(11,2),
"INVOICE_DATE" DATE,
"INVOICE_DUE_DATE" DATE,
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"INVOICE_PAYMENT_DATE" DATE,
"TOT_INVOICE_AMT_REM_ITEMS" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"LOCAL_KEY_LP_INVOICE" NATIONAL CHARACTER VARYING(125),
"INVOICE_BOOK_PERIOD" NUMERIC(6,0),
"CH_LP_INVOICE_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "LP_INVOICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."LP_INVOICE" ( -- Number of Columns = 16


"LP_INVOICE_ID" BIGINT not null,
"LP_INVOICE_RECEIVER_ID" BIGINT not null,
"INVOICE_AMOUNT_EX_VAT" NUMERIC(11,2),
"INVOICE_AMOUNT_EX_VAT_EUR" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT_EUR" NUMERIC(11,2),
"INVOICE_DATE" DATE,
"INVOICE_DUE_DATE" DATE,
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"INVOICE_PAYMENT_DATE" DATE,
"TOT_INVOICE_AMT_REM_ITEMS" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"LOCAL_KEY_LP_INVOICE" NATIONAL CHARACTER VARYING(125),
"INVOICE_BOOK_PERIOD" NUMERIC(6,0),
"CH_LP_INVOICE_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "LP_INVOICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."LP_INVOICE" ( -- Number of Columns = 16


"LP_INVOICE_ID" BIGINT not null,
"LP_INVOICE_RECEIVER_ID" BIGINT not null,
"INVOICE_AMOUNT_EX_VAT" NUMERIC(11,2),
"INVOICE_AMOUNT_EX_VAT_EUR" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT_EUR" NUMERIC(11,2),
"INVOICE_DATE" DATE,
"INVOICE_DUE_DATE" DATE,
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"INVOICE_PAYMENT_DATE" DATE,
"TOT_INVOICE_AMT_REM_ITEMS" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"LOCAL_KEY_LP_INVOICE" NATIONAL CHARACTER VARYING(125),
"INVOICE_BOOK_PERIOD" NUMERIC(6,0),
"CH_LP_INVOICE_TYPE_ID" INTEGER not null,
PRIMARY KEY ( "LP_INVOICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."PRODUCT" ( -- Number of Columns = 9


"PRODUCT_ID" BIGINT not null,
"LOCAL_KEY_PRODUCT" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NUMBER" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NAME" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_CODE" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_DESCRIPTION" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NAME_CONS" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "PRODUCT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.PRODUCT ( -- Number of Columns = 9


PRODUCT_ID BIGINT not null,
LOCAL_KEY_PRODUCT NATIONAL CHARACTER VARYING(125),
PRODUCT_NUMBER NATIONAL CHARACTER VARYING(125),
PRODUCT_NAME NATIONAL CHARACTER VARYING(125),
PRODUCT_TYPE_CODE NATIONAL CHARACTER VARYING(125),
PRODUCT_TYPE_DESCRIPTION NATIONAL CHARACTER VARYING(125),
PRODUCT_NAME_CONS NATIONAL CHARACTER VARYING(125),
PRODUCT_TYPE_CONS NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.PRODUCT ( -- Number of Columns = 9


PRODUCT_ID BIGINT not null,
LOCAL_KEY_PRODUCT NATIONAL CHARACTER VARYING(125),
PRODUCT_NUMBER NATIONAL CHARACTER VARYING(125),
PRODUCT_NAME NATIONAL CHARACTER VARYING(125),
PRODUCT_TYPE_CODE NATIONAL CHARACTER VARYING(125),
PRODUCT_TYPE_DESCRIPTION NATIONAL CHARACTER VARYING(125),
PRODUCT_NAME_CONS NATIONAL CHARACTER VARYING(125),
PRODUCT_TYPE_CONS NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PRIMARY KEY ( PRODUCT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."PRODUCT" ( -- Number of Columns = 9


"PRODUCT_ID" BIGINT not null,
"LOCAL_KEY_PRODUCT" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NUMBER" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NAME" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_CODE" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_DESCRIPTION" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NAME_CONS" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "PRODUCT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.PRODUCT ( -- Number of Columns = 9


PRODUCT_ID BIGINT not null,
LOCAL_KEY_PRODUCT NATIONAL CHARACTER VARYING(125),
PRODUCT_NUMBER NATIONAL CHARACTER VARYING(125),
PRODUCT_NAME NATIONAL CHARACTER VARYING(125),
PRODUCT_TYPE_CODE NATIONAL CHARACTER VARYING(125),
PRODUCT_TYPE_DESCRIPTION NATIONAL CHARACTER VARYING(125),
PRODUCT_NAME_CONS NATIONAL CHARACTER VARYING(125),
PRODUCT_TYPE_CONS NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PRIMARY KEY ( PRODUCT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.PRODUCT ( -- Number of Columns = 9


PRODUCT_ID BIGINT not null,
LOCAL_KEY_PRODUCT NATIONAL CHARACTER VARYING(125),
PRODUCT_NUMBER NATIONAL CHARACTER VARYING(125),
PRODUCT_NAME NATIONAL CHARACTER VARYING(125),
PRODUCT_TYPE_CODE NATIONAL CHARACTER VARYING(125),
PRODUCT_TYPE_DESCRIPTION NATIONAL CHARACTER VARYING(125),
PRODUCT_NAME_CONS NATIONAL CHARACTER VARYING(125),
PRODUCT_TYPE_CONS NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PRIMARY KEY ( PRODUCT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.PRODUCT ( -- Number of Columns = 9


PRODUCT_ID BIGINT not null,
LOCAL_KEY_PRODUCT NATIONAL CHARACTER VARYING(125),
PRODUCT_NUMBER NATIONAL CHARACTER VARYING(125),
PRODUCT_NAME NATIONAL CHARACTER VARYING(125),
PRODUCT_TYPE_CODE NATIONAL CHARACTER VARYING(125),
PRODUCT_TYPE_DESCRIPTION NATIONAL CHARACTER VARYING(125),
PRODUCT_NAME_CONS NATIONAL CHARACTER VARYING(125),
PRODUCT_TYPE_CONS NATIONAL CHARACTER VARYING(125),
LOAD_DATE DATE,
PRIMARY KEY ( PRODUCT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."PRODUCT" ( -- Number of Columns = 9


"PRODUCT_ID" BIGINT not null,
"LOCAL_KEY_PRODUCT" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NUMBER" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NAME" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_CODE" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_DESCRIPTION" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NAME_CONS" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "PRODUCT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."PRODUCT" ( -- Number of Columns = 9


"PRODUCT_ID" BIGINT not null,
"LOCAL_KEY_PRODUCT" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NUMBER" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NAME" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_CODE" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_DESCRIPTION" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NAME_CONS" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "PRODUCT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."PRODUCT" ( -- Number of Columns = 9


"PRODUCT_ID" BIGINT not null,
"LOCAL_KEY_PRODUCT" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NUMBER" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NAME" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_CODE" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_DESCRIPTION" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NAME_CONS" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "PRODUCT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."PRODUCT" ( -- Number of Columns = 9


"PRODUCT_ID" BIGINT not null,
"LOCAL_KEY_PRODUCT" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NUMBER" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NAME" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_CODE" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_DESCRIPTION" NATIONAL CHARACTER VARYING(125),
"PRODUCT_NAME_CONS" NATIONAL CHARACTER VARYING(125),
"PRODUCT_TYPE_CONS" NATIONAL CHARACTER VARYING(125),
"LOAD_DATE" DATE,
PRIMARY KEY ( "PRODUCT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."SUPPLIER_INVOICE" ( -- Number of Columns = 15


"SUPPLIER_INVOICE_ID" BIGINT not null,
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"INVOICE_DATE" DATE,
"INVOICE_BOOK_PERIOD" NUMERIC(6,0),
"INVOICE_AMOUNT_EX_VAT" NUMERIC(13,2),
"INVOICE_AMOUNT_EX_VAT_EUR" NUMERIC(13,2),
"INVOICE_AMT_NONRECLAIM_VAT" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT_EUR" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"SUPPLIER_INVOICE_SENDER_ID" BIGINT not null,
"LOCAL_KEY_SUPPLIER_INVOICE" NATIONAL CHARACTER VARYING(125),
"CH_SUPPLIER_INVOICE_TYPE_ID" INTEGER not null,
"APPROVAL_HEADER_ID" BIGINT,
PRIMARY KEY ( "SUPPLIER_INVOICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE ( -- Number of Columns = 15


SUPPLIER_INVOICE_ID BIGINT not null,
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125),
INVOICE_DATE DATE,
INVOICE_BOOK_PERIOD NUMERIC(6,0),
INVOICE_AMOUNT_EX_VAT NUMERIC(13,2),
INVOICE_AMOUNT_EX_VAT_EUR NUMERIC(13,2),
INVOICE_AMT_NONRECLAIM_VAT NUMERIC(11,2),
INVOICE_AMT_NONRECLAIM_VAT_EUR NUMERIC(11,2),
TOT_INVOICE_AMT_REM_ITEMS NUMERIC(11,2),
TOT_INVOICE_AMT_REM_ITEMS_EUR NUMERIC(11,2),
LOAD_DATE DATE,
SUPPLIER_INVOICE_SENDER_ID BIGINT not null,
LOCAL_KEY_SUPPLIER_INVOICE NATIONAL CHARACTER VARYING(125),
CH_SUPPLIER_INVOICE_TYPE_ID INTEGER not null,
APPROVAL_HEADER_ID BIGINT
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE ( -- Number of Columns = 15


SUPPLIER_INVOICE_ID BIGINT not null,
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125),
INVOICE_DATE DATE,
INVOICE_BOOK_PERIOD NUMERIC(6,0),
INVOICE_AMOUNT_EX_VAT NUMERIC(13,2),
INVOICE_AMOUNT_EX_VAT_EUR NUMERIC(13,2),
INVOICE_AMT_NONRECLAIM_VAT NUMERIC(11,2),
INVOICE_AMT_NONRECLAIM_VAT_EUR NUMERIC(11,2),
TOT_INVOICE_AMT_REM_ITEMS NUMERIC(11,2),
TOT_INVOICE_AMT_REM_ITEMS_EUR NUMERIC(11,2),
LOAD_DATE DATE,
SUPPLIER_INVOICE_SENDER_ID BIGINT not null,
LOCAL_KEY_SUPPLIER_INVOICE NATIONAL CHARACTER VARYING(125),
CH_SUPPLIER_INVOICE_TYPE_ID INTEGER not null,
APPROVAL_HEADER_ID BIGINT,
PRIMARY KEY ( SUPPLIER_INVOICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."SUPPLIER_INVOICE" ( -- Number of Columns = 15


"SUPPLIER_INVOICE_ID" BIGINT not null,
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"INVOICE_DATE" DATE,
"INVOICE_BOOK_PERIOD" NUMERIC(6,0),
"INVOICE_AMOUNT_EX_VAT" NUMERIC(13,2),
"INVOICE_AMOUNT_EX_VAT_EUR" NUMERIC(13,2),
"INVOICE_AMT_NONRECLAIM_VAT" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT_EUR" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"SUPPLIER_INVOICE_SENDER_ID" BIGINT not null,
"LOCAL_KEY_SUPPLIER_INVOICE" NATIONAL CHARACTER VARYING(125),
"CH_SUPPLIER_INVOICE_TYPE_ID" INTEGER not null,
"APPROVAL_HEADER_ID" BIGINT,
PRIMARY KEY ( "SUPPLIER_INVOICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.SUPPLIER_INVOICE ( -- Number of Columns = 15


SUPPLIER_INVOICE_ID BIGINT not null,
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125),
INVOICE_DATE DATE,
INVOICE_BOOK_PERIOD NUMERIC(6,0),
INVOICE_AMOUNT_EX_VAT NUMERIC(13,2),
INVOICE_AMOUNT_EX_VAT_EUR NUMERIC(13,2),
INVOICE_AMT_NONRECLAIM_VAT NUMERIC(11,2),
INVOICE_AMT_NONRECLAIM_VAT_EUR NUMERIC(11,2),
TOT_INVOICE_AMT_REM_ITEMS NUMERIC(11,2),
TOT_INVOICE_AMT_REM_ITEMS_EUR NUMERIC(11,2),
LOAD_DATE DATE,
SUPPLIER_INVOICE_SENDER_ID BIGINT not null,
LOCAL_KEY_SUPPLIER_INVOICE NATIONAL CHARACTER VARYING(125),
CH_SUPPLIER_INVOICE_TYPE_ID INTEGER not null,
APPROVAL_HEADER_ID BIGINT,
PRIMARY KEY ( SUPPLIER_INVOICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE ( -- Number of Columns = 15


SUPPLIER_INVOICE_ID BIGINT not null,
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125),
INVOICE_DATE DATE,
INVOICE_BOOK_PERIOD NUMERIC(6,0),
INVOICE_AMOUNT_EX_VAT NUMERIC(13,2),
INVOICE_AMOUNT_EX_VAT_EUR NUMERIC(13,2),
INVOICE_AMT_NONRECLAIM_VAT NUMERIC(11,2),
INVOICE_AMT_NONRECLAIM_VAT_EUR NUMERIC(11,2),
TOT_INVOICE_AMT_REM_ITEMS NUMERIC(11,2),
TOT_INVOICE_AMT_REM_ITEMS_EUR NUMERIC(11,2),
LOAD_DATE DATE,
SUPPLIER_INVOICE_SENDER_ID BIGINT not null,
LOCAL_KEY_SUPPLIER_INVOICE NATIONAL CHARACTER VARYING(125),
CH_SUPPLIER_INVOICE_TYPE_ID INTEGER not null,
APPROVAL_HEADER_ID BIGINT,
PRIMARY KEY ( SUPPLIER_INVOICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.SUPPLIER_INVOICE ( -- Number of Columns = 15


SUPPLIER_INVOICE_ID BIGINT not null,
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125),
INVOICE_DATE DATE,
INVOICE_BOOK_PERIOD NUMERIC(6,0),
INVOICE_AMOUNT_EX_VAT NUMERIC(13,2),
INVOICE_AMOUNT_EX_VAT_EUR NUMERIC(13,2),
INVOICE_AMT_NONRECLAIM_VAT NUMERIC(11,2),
INVOICE_AMT_NONRECLAIM_VAT_EUR NUMERIC(11,2),
TOT_INVOICE_AMT_REM_ITEMS NUMERIC(11,2),
TOT_INVOICE_AMT_REM_ITEMS_EUR NUMERIC(11,2),
LOAD_DATE DATE,
SUPPLIER_INVOICE_SENDER_ID BIGINT not null,
LOCAL_KEY_SUPPLIER_INVOICE NATIONAL CHARACTER VARYING(125),
CH_SUPPLIER_INVOICE_TYPE_ID INTEGER not null,
APPROVAL_HEADER_ID BIGINT,
PRIMARY KEY ( SUPPLIER_INVOICE_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."SUPPLIER_INVOICE" ( -- Number of Columns =


15
"SUPPLIER_INVOICE_ID" BIGINT not null,
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"INVOICE_DATE" DATE,
"INVOICE_BOOK_PERIOD" NUMERIC(6,0),
"INVOICE_AMOUNT_EX_VAT" NUMERIC(13,2),
"INVOICE_AMOUNT_EX_VAT_EUR" NUMERIC(13,2),
"INVOICE_AMT_NONRECLAIM_VAT" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT_EUR" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"SUPPLIER_INVOICE_SENDER_ID" BIGINT not null,
"LOCAL_KEY_SUPPLIER_INVOICE" NATIONAL CHARACTER VARYING(125),
"CH_SUPPLIER_INVOICE_TYPE_ID" INTEGER not null,
"APPROVAL_HEADER_ID" BIGINT,
PRIMARY KEY ( "SUPPLIER_INVOICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."SUPPLIER_INVOICE" ( -- Number of Columns = 15


"SUPPLIER_INVOICE_ID" BIGINT not null,
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"INVOICE_DATE" DATE,
"INVOICE_BOOK_PERIOD" NUMERIC(6,0),
"INVOICE_AMOUNT_EX_VAT" NUMERIC(13,2),
"INVOICE_AMOUNT_EX_VAT_EUR" NUMERIC(13,2),
"INVOICE_AMT_NONRECLAIM_VAT" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT_EUR" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"SUPPLIER_INVOICE_SENDER_ID" BIGINT not null,
"LOCAL_KEY_SUPPLIER_INVOICE" NATIONAL CHARACTER VARYING(125),
"CH_SUPPLIER_INVOICE_TYPE_ID" INTEGER not null,
"APPROVAL_HEADER_ID" BIGINT,
PRIMARY KEY ( "SUPPLIER_INVOICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."SUPPLIER_INVOICE" ( -- Number of Columns =


15
"SUPPLIER_INVOICE_ID" BIGINT not null,
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"INVOICE_DATE" DATE,
"INVOICE_BOOK_PERIOD" NUMERIC(6,0),
"INVOICE_AMOUNT_EX_VAT" NUMERIC(13,2),
"INVOICE_AMOUNT_EX_VAT_EUR" NUMERIC(13,2),
"INVOICE_AMT_NONRECLAIM_VAT" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT_EUR" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"SUPPLIER_INVOICE_SENDER_ID" BIGINT not null,
"LOCAL_KEY_SUPPLIER_INVOICE" NATIONAL CHARACTER VARYING(125),
"CH_SUPPLIER_INVOICE_TYPE_ID" INTEGER not null,
"APPROVAL_HEADER_ID" BIGINT,
PRIMARY KEY ( "SUPPLIER_INVOICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."SUPPLIER_INVOICE" ( -- Number of Columns = 15


"SUPPLIER_INVOICE_ID" BIGINT not null,
"INVOICE_NUMBER" NATIONAL CHARACTER VARYING(125),
"INVOICE_DATE" DATE,
"INVOICE_BOOK_PERIOD" NUMERIC(6,0),
"INVOICE_AMOUNT_EX_VAT" NUMERIC(13,2),
"INVOICE_AMOUNT_EX_VAT_EUR" NUMERIC(13,2),
"INVOICE_AMT_NONRECLAIM_VAT" NUMERIC(11,2),
"INVOICE_AMT_NONRECLAIM_VAT_EUR" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS" NUMERIC(11,2),
"TOT_INVOICE_AMT_REM_ITEMS_EUR" NUMERIC(11,2),
"LOAD_DATE" DATE,
"SUPPLIER_INVOICE_SENDER_ID" BIGINT not null,
"LOCAL_KEY_SUPPLIER_INVOICE" NATIONAL CHARACTER VARYING(125),
"CH_SUPPLIER_INVOICE_TYPE_ID" INTEGER not null,
"APPROVAL_HEADER_ID" BIGINT,
PRIMARY KEY ( "SUPPLIER_INVOICE_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUK_DMA_ENTITY_REPORT."VEHICLE_EQUIPMENT" ( -- Number of Columns =


15
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"VEHICLE_EQUIPMENT_ID" BIGINT not null,
"OPTION_ACCESSORY_STANDARD" NATIONAL CHARACTER VARYING(125),
"CATALOGUE_PRICE" NUMERIC(11,2),
"CATALOGUE_PRICE_EUR" NUMERIC(11,2),
"COMMERCIAL_DISCOUNT_AMOUNT" NUMERIC(11,2),
"COMMERCIAL_DISCOUNT_AMOUNT_EUR" NUMERIC(11,2),
"TAX_AMOUNT_NON_RECLAIMABLE" NUMERIC(11,2),
"TAX_AMOUNT_NON_RECLAIMABLE_EUR" NUMERIC(11,2),
"VAT_PERCENTAGE" NUMERIC(6,3),
"LOAD_DATE" DATE,
"LOCAL_KEY_VEHICLE_EQUIPMENT" NATIONAL CHARACTER VARYING(125),
"VEHICLE_EQUIPMENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"CH_EQUIPMENT_TYPE_ID" INTEGER not null,
"CH_EQUIPMENT_GROUP_ID" INTEGER not null,
PRIMARY KEY ( "VEHICLE_EQUIPMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT ( -- Number of Columns = 15


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
VEHICLE_EQUIPMENT_ID BIGINT not null,
OPTION_ACCESSORY_STANDARD NATIONAL CHARACTER VARYING(125),
CATALOGUE_PRICE NUMERIC(11,2),
CATALOGUE_PRICE_EUR NUMERIC(11,2),
COMMERCIAL_DISCOUNT_AMOUNT NUMERIC(11,2),
COMMERCIAL_DISCOUNT_AMOUNT_EUR NUMERIC(11,2),
TAX_AMOUNT_NON_RECLAIMABLE NUMERIC(11,2),
TAX_AMOUNT_NON_RECLAIMABLE_EUR NUMERIC(11,2),
VAT_PERCENTAGE NUMERIC(6,3),
LOAD_DATE DATE,
LOCAL_KEY_VEHICLE_EQUIPMENT NATIONAL CHARACTER VARYING(125),
VEHICLE_EQUIPMENT_NUMBER NATIONAL CHARACTER VARYING(125),
CH_EQUIPMENT_TYPE_ID INTEGER not null,
CH_EQUIPMENT_GROUP_ID INTEGER not null
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT ( -- Number of Columns = 15


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
VEHICLE_EQUIPMENT_ID BIGINT not null,
OPTION_ACCESSORY_STANDARD NATIONAL CHARACTER VARYING(125),
CATALOGUE_PRICE NUMERIC(11,2),
CATALOGUE_PRICE_EUR NUMERIC(11,2),
COMMERCIAL_DISCOUNT_AMOUNT NUMERIC(11,2),
COMMERCIAL_DISCOUNT_AMOUNT_EUR NUMERIC(11,2),
TAX_AMOUNT_NON_RECLAIMABLE NUMERIC(11,2),
TAX_AMOUNT_NON_RECLAIMABLE_EUR NUMERIC(11,2),
VAT_PERCENTAGE NUMERIC(6,3),
LOAD_DATE DATE,
LOCAL_KEY_VEHICLE_EQUIPMENT NATIONAL CHARACTER VARYING(125),
VEHICLE_EQUIPMENT_NUMBER NATIONAL CHARACTER VARYING(125),
CH_EQUIPMENT_TYPE_ID INTEGER not null,
CH_EQUIPMENT_GROUP_ID INTEGER not null,
PRIMARY KEY ( VEHICLE_EQUIPMENT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPUS_DMA_ENTITY_REPORT."VEHICLE_EQUIPMENT" ( -- Number of Columns =


15
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"VEHICLE_EQUIPMENT_ID" BIGINT not null,
"OPTION_ACCESSORY_STANDARD" NATIONAL CHARACTER VARYING(125),
"CATALOGUE_PRICE" NUMERIC(11,2),
"CATALOGUE_PRICE_EUR" NUMERIC(11,2),
"COMMERCIAL_DISCOUNT_AMOUNT" NUMERIC(11,2),
"COMMERCIAL_DISCOUNT_AMOUNT_EUR" NUMERIC(11,2),
"TAX_AMOUNT_NON_RECLAIMABLE" NUMERIC(11,2),
"TAX_AMOUNT_NON_RECLAIMABLE_EUR" NUMERIC(11,2),
"VAT_PERCENTAGE" NUMERIC(6,3),
"LOAD_DATE" DATE,
"LOCAL_KEY_VEHICLE_EQUIPMENT" NATIONAL CHARACTER VARYING(125),
"VEHICLE_EQUIPMENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"CH_EQUIPMENT_TYPE_ID" INTEGER not null,
"CH_EQUIPMENT_GROUP_ID" INTEGER not null,
PRIMARY KEY ( "VEHICLE_EQUIPMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPRO_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT ( -- Number of Columns = 15


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
VEHICLE_EQUIPMENT_ID BIGINT not null,
OPTION_ACCESSORY_STANDARD NATIONAL CHARACTER VARYING(125),
CATALOGUE_PRICE NUMERIC(11,2),
CATALOGUE_PRICE_EUR NUMERIC(11,2),
COMMERCIAL_DISCOUNT_AMOUNT NUMERIC(11,2),
COMMERCIAL_DISCOUNT_AMOUNT_EUR NUMERIC(11,2),
TAX_AMOUNT_NON_RECLAIMABLE NUMERIC(11,2),
TAX_AMOUNT_NON_RECLAIMABLE_EUR NUMERIC(11,2),
VAT_PERCENTAGE NUMERIC(6,3),
LOAD_DATE DATE,
LOCAL_KEY_VEHICLE_EQUIPMENT NATIONAL CHARACTER VARYING(125),
VEHICLE_EQUIPMENT_NUMBER NATIONAL CHARACTER VARYING(125),
CH_EQUIPMENT_TYPE_ID INTEGER not null,
CH_EQUIPMENT_GROUP_ID INTEGER not null,
PRIMARY KEY ( VEHICLE_EQUIPMENT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT ( -- Number of Columns = 15


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
VEHICLE_EQUIPMENT_ID BIGINT not null,
OPTION_ACCESSORY_STANDARD NATIONAL CHARACTER VARYING(125),
CATALOGUE_PRICE NUMERIC(11,2),
CATALOGUE_PRICE_EUR NUMERIC(11,2),
COMMERCIAL_DISCOUNT_AMOUNT NUMERIC(11,2),
COMMERCIAL_DISCOUNT_AMOUNT_EUR NUMERIC(11,2),
TAX_AMOUNT_NON_RECLAIMABLE NUMERIC(11,2),
TAX_AMOUNT_NON_RECLAIMABLE_EUR NUMERIC(11,2),
VAT_PERCENTAGE NUMERIC(6,3),
LOAD_DATE DATE,
LOCAL_KEY_VEHICLE_EQUIPMENT NATIONAL CHARACTER VARYING(125),
VEHICLE_EQUIPMENT_NUMBER NATIONAL CHARACTER VARYING(125),
CH_EQUIPMENT_TYPE_ID INTEGER not null,
CH_EQUIPMENT_GROUP_ID INTEGER not null,
PRIMARY KEY ( VEHICLE_EQUIPMENT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPNO_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT ( -- Number of Columns = 15


LEASE_CONTRACT_VEHICLE_ID BIGINT not null,
VEHICLE_EQUIPMENT_ID BIGINT not null,
OPTION_ACCESSORY_STANDARD NATIONAL CHARACTER VARYING(125),
CATALOGUE_PRICE NUMERIC(11,2),
CATALOGUE_PRICE_EUR NUMERIC(11,2),
COMMERCIAL_DISCOUNT_AMOUNT NUMERIC(11,2),
COMMERCIAL_DISCOUNT_AMOUNT_EUR NUMERIC(11,2),
TAX_AMOUNT_NON_RECLAIMABLE NUMERIC(11,2),
TAX_AMOUNT_NON_RECLAIMABLE_EUR NUMERIC(11,2),
VAT_PERCENTAGE NUMERIC(6,3),
LOAD_DATE DATE,
LOCAL_KEY_VEHICLE_EQUIPMENT NATIONAL CHARACTER VARYING(125),
VEHICLE_EQUIPMENT_NUMBER NATIONAL CHARACTER VARYING(125),
CH_EQUIPMENT_TYPE_ID INTEGER not null,
CH_EQUIPMENT_GROUP_ID INTEGER not null,
PRIMARY KEY ( VEHICLE_EQUIPMENT_ID )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT2."VEHICLE_EQUIPMENT" ( -- Number of Columns =


15
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"VEHICLE_EQUIPMENT_ID" BIGINT not null,
"OPTION_ACCESSORY_STANDARD" NATIONAL CHARACTER VARYING(125),
"CATALOGUE_PRICE" NUMERIC(11,2),
"CATALOGUE_PRICE_EUR" NUMERIC(11,2),
"COMMERCIAL_DISCOUNT_AMOUNT" NUMERIC(11,2),
"COMMERCIAL_DISCOUNT_AMOUNT_EUR" NUMERIC(11,2),
"TAX_AMOUNT_NON_RECLAIMABLE" NUMERIC(11,2),
"TAX_AMOUNT_NON_RECLAIMABLE_EUR" NUMERIC(11,2),
"VAT_PERCENTAGE" NUMERIC(6,3),
"LOAD_DATE" DATE,
"LOCAL_KEY_VEHICLE_EQUIPMENT" NATIONAL CHARACTER VARYING(125),
"VEHICLE_EQUIPMENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"CH_EQUIPMENT_TYPE_ID" INTEGER not null,
"CH_EQUIPMENT_GROUP_ID" INTEGER not null,
PRIMARY KEY ( "VEHICLE_EQUIPMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPAT_DMA_ENTITY_REPORT."VEHICLE_EQUIPMENT" ( -- Number of Columns =


15
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"VEHICLE_EQUIPMENT_ID" BIGINT not null,
"OPTION_ACCESSORY_STANDARD" NATIONAL CHARACTER VARYING(125),
"CATALOGUE_PRICE" NUMERIC(11,2),
"CATALOGUE_PRICE_EUR" NUMERIC(11,2),
"COMMERCIAL_DISCOUNT_AMOUNT" NUMERIC(11,2),
"COMMERCIAL_DISCOUNT_AMOUNT_EUR" NUMERIC(11,2),
"TAX_AMOUNT_NON_RECLAIMABLE" NUMERIC(11,2),
"TAX_AMOUNT_NON_RECLAIMABLE_EUR" NUMERIC(11,2),
"VAT_PERCENTAGE" NUMERIC(6,3),
"LOAD_DATE" DATE,
"LOCAL_KEY_VEHICLE_EQUIPMENT" NATIONAL CHARACTER VARYING(125),
"VEHICLE_EQUIPMENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"CH_EQUIPMENT_TYPE_ID" INTEGER not null,
"CH_EQUIPMENT_GROUP_ID" INTEGER not null,
PRIMARY KEY ( "VEHICLE_EQUIPMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT2."VEHICLE_EQUIPMENT" ( -- Number of Columns =


15
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"VEHICLE_EQUIPMENT_ID" BIGINT not null,
"OPTION_ACCESSORY_STANDARD" NATIONAL CHARACTER VARYING(125),
"CATALOGUE_PRICE" NUMERIC(11,2),
"CATALOGUE_PRICE_EUR" NUMERIC(11,2),
"COMMERCIAL_DISCOUNT_AMOUNT" NUMERIC(11,2),
"COMMERCIAL_DISCOUNT_AMOUNT_EUR" NUMERIC(11,2),
"TAX_AMOUNT_NON_RECLAIMABLE" NUMERIC(11,2),
"TAX_AMOUNT_NON_RECLAIMABLE_EUR" NUMERIC(11,2),
"VAT_PERCENTAGE" NUMERIC(6,3),
"LOAD_DATE" DATE,
"LOCAL_KEY_VEHICLE_EQUIPMENT" NATIONAL CHARACTER VARYING(125),
"VEHICLE_EQUIPMENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"CH_EQUIPMENT_TYPE_ID" INTEGER not null,
"CH_EQUIPMENT_GROUP_ID" INTEGER not null,
PRIMARY KEY ( "VEHICLE_EQUIPMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

CREATE TABLE LPFR_DMA_ENTITY_REPORT."VEHICLE_EQUIPMENT" ( -- Number of Columns =


15
"LEASE_CONTRACT_VEHICLE_ID" BIGINT not null,
"VEHICLE_EQUIPMENT_ID" BIGINT not null,
"OPTION_ACCESSORY_STANDARD" NATIONAL CHARACTER VARYING(125),
"CATALOGUE_PRICE" NUMERIC(11,2),
"CATALOGUE_PRICE_EUR" NUMERIC(11,2),
"COMMERCIAL_DISCOUNT_AMOUNT" NUMERIC(11,2),
"COMMERCIAL_DISCOUNT_AMOUNT_EUR" NUMERIC(11,2),
"TAX_AMOUNT_NON_RECLAIMABLE" NUMERIC(11,2),
"TAX_AMOUNT_NON_RECLAIMABLE_EUR" NUMERIC(11,2),
"VAT_PERCENTAGE" NUMERIC(6,3),
"LOAD_DATE" DATE,
"LOCAL_KEY_VEHICLE_EQUIPMENT" NATIONAL CHARACTER VARYING(125),
"VEHICLE_EQUIPMENT_NUMBER" NATIONAL CHARACTER VARYING(125),
"CH_EQUIPMENT_TYPE_ID" INTEGER not null,
"CH_EQUIPMENT_GROUP_ID" INTEGER not null,
PRIMARY KEY ( "VEHICLE_EQUIPMENT_ID" )
) DISTRIBUTE ON RANDOM;
\echo -n .

\echo 'done(418 tables).'

-- View Definitions

\echo -n 'Creating Views'


CREATE VIEW LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_DEPRECIATION (
"LEASE_CONTRACT_VEHICLE_ID",
DEPRECIATION_COSTS,
DEPRECIATION_COSTS_EUR
) as SELECT DS.LEASE_CONTRACT_VEHICLE_ID, SUM(DS.DELIVERED_SERVICE_AMOUNT) AS
DEPRECIATION_COSTS, SUM(DS.DELIVERED_SERVICE_AMOUNT_EUR) AS DEPRECIATION_COSTS_EUR
FROM (LPGR_DMA_ENTITY_REPORT2.F_DELIVERED_SERVICE DS JOIN
LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE LS ON ((DS.LEASE_SERVICE_ID =
LS.LEASE_SERVICE_ID))) WHERE ((DS.AMOUNT_TYPE = 'C'::BPCHAR) AND
(LS.LEASE_SERVICE_CODE IN (('EX011'::"NVARCHAR")::NVARCHAR(125),
('EX840'::"NVARCHAR")::NVARCHAR(125), ('EX841'::"NVARCHAR")::NVARCHAR(125)))) GROUP
BY DS.LEASE_CONTRACT_VEHICLE_ID;
\echo -n .

CREATE VIEW LP_ALL_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE_TEST (


LEASE_CONTRACT_VEHICLE_ID,
CUSTOMER_ID,
LC_LEASE_CONTRACT_NUMBER,
LC_COST_CENTER_NAME,
LC_SLB_FLAG,
LC_START_DATE_LEASECONTRACT,
LC_END_DATE_LEASECONTRACT,
LC_BUDG_END_DATE_LEASECONTRACT,
LC_STARTMILEAGELEASECONTRACTKM,
LC_ENDMILEAGELEASECONTRACT,
LC_CONTRACT_DURATION,
LC_CONTRACT_MILEAGE,
LC_DISCONMONTHLY_LEASEINST,
LC_MONTHLY_LEASEINSTALMENT,
LC_MVA_FEE_OVER_MILEAGE,
LC_MVA_REPAY_UNDER_MILEAGE,
LC_ACTUAL_INVEST_AMOUNT,
LC_BUDGETED_INVEST_AMOUNT,
LC_INVEST_INTEREST_BASE,
LC_PREPAYMNT_INTEREST_BASE,
LC_UFWT_AMOUNT,
LC_EXTENSION_PENALTY,
LC_EARLY_TERM_PENALTY,
VEH_VEHICLE_NUMBER,
VEH_MODEL_TYPE_DESCRIPTION,
VEH_CATALOGUE_PRICE,
VEH_CATALOGUE_PRICE_EUR,
VEH_ACTUAL_DISCOUNT_PERC,
VEH_COMMERCIAL_DISCNT_AMT,
VEH_COMMERCIAL_DISCNT_AMT_EUR,
VEH_TAX_AMT_NON_RECLAIM,
VEH_TAX_AMT_NON_RECLAIM_EUR,
VEH_VAT_PERCENTAGE,
VEH_TOT_OPTIONS_AMT,
VEH_TOTAL_OPTIONS_AMT_EUR,
VEH_TOT_ACCESSOIRIES_AMT,
VEH_TOT_ACCESSOIRIES_AMT_EUR,
VEH_DELIVERY_COSTS,
VEH_DELIVERY_COSTS_EUR,
VEH_REGISTRATION_NUMBER,
VEH_REGISTRATION_DATE,
VEH_VEH_IDENTIFICATION_NUMBER,
VEH_NUMBER_OF_DOORS,
VEH_ENGINE_CAPACITY,
VEH_ENGINE_POWER,
VEH_NUMBER_OF_CYLINDERS,
VEH_TARE_WEIGHT,
VEH_GROSS_WEIGHT,
VEH_FUEL_CONSUMPT_MANUFACTURER,
VEH_EXTERNAL_REFERENCE,
VEH_TYRE_SIZE_AT_DELIVERY,
VEH_STANDARD_DISCOUNT_PERC,
LOAD_DATE,
MNGSERV_TOT_RESIDUAL_VALUE,
MNGSERV_INTEREST_PERC_INVESTM,
MNGSERV_INTEREST_PERC_PREPAYM,
MNGSERV_TOT_RESIDUAL_VALUE_EUR,
LC_MONTHLY_LEASEINSTALMENT_EUR,
LC_MVA_FEE_OVER_MILEAGE_EUR,
LC_MVA_REPAY_UNDER_MILEAGE_EUR,
LC_ACTUAL_INVEST_AMOUNT_EUR,
LC_BUDGETED_INVEST_AMOUNT_EUR,
LC_INVEST_INTEREST_BASE_EUR,
LC_PREPAYMNT_INTEREST_BASE_EUR,
LC_UFWT_AMOUNT_EUR,
LC_EXTENSION_PENALTY_EUR,
LC_EARLY_TERM_PENALTY_EUR,
OR_ORDER_NUMBER,
OR_ORDER_DATE,
OR_ESTIMATED_DELIVERY_DATE,
CUSTOMER_SLA_ID,
LC_DRIVER_NUMBER,
LC_DRIVER_NAME,
OR_ORDER_SUPPLIER_NUMBER,
OR_ORDER_SUPPLIER_NAME,
LC_LOCAL_KEY_LEASE_CONTRACT,
VEH_LOCAL_KEY_VEHICLE,
OR_LOCAL_KEY_ORDER,
LC_LOCAL_KEY_COST_CENTER,
LC_LOCAL_KEY_DRIVER,
OR_LOCAL_KEY_ORDER_SUPPLIER,
CH_LEASE_CONTRACT_STATUS_ID,
CH_CONTRACT_TERMINATION_ID,
CH_CONTRACT_STOP_REASON_ID,
CH_REGISTRATION_STATUS_ID,
CH_PURCHASED_BY_ID,
CH_WINTER_TYRES_INCLUDED_ID,
CH_MAKE_CODE_ID,
CH_MODEL_CODE_ID,
CH_BODY_STYLE_ID,
CH_DRIVING_METHOD_ID,
CH_EXTERIOR_COLOUR_ID,
CH_EXTERIOR_COLOUR_TYPE_ID,
CH_PRIMARY_FUEL_TYPE_ID,
CH_TRANSMISSION_TYPE_ID,
CH_UPHOLSTERY_TYPE_ID,
CH_VEHICLE_TYPE_ID,
CH_FLEET_REPORT_CATEGORY_ID,
CH_PRODUCT_CATEGORY_TYPE_ID,
PRODUCT_ID,
LC_BOOK_VALUE,
CH_ASSET_TYPE_ID,
CH_VEHICLE_SEGMENT_ID,
CH_OEM_ID,
LC_STARTMILEAGELEASECONTRACT,
LC_ENDMILEAGELEASECONTRACTKM,
LC_CONTRACT_MILEAGE_KM,
LC_BOOK_VALUE_EUR,
LC_DISCONMONTHLY_LEASEINST_EUR,
CH_VEHICLE_SEGMENT_LOCAL_ID,
CH_MVA_SYSTEM_ID,
CH_BUY_BACK_CODE,
CH_RISK_RULING_CODE,
CH_VEHICLE_GROUP_CODE,
CH_DATA_SUPPLIER_VEHICLE_CODE,
CH_OWN_DAMAGE_RISK_ID,
CH_UFWT_TYPE_ID,
CH_MVA_SETTLEMENT_ID,
LC_CUSTOMER_DRIVER_ID,
VEH_CO2_LEVEL_COMBINED,
CH_SECONDARY_FUEL_TYPE,
CH_NUMBER_OF_FORWARD_GEARS,
VEH_INDICATOR_NEW_MODEL,
VEH_MODEL_END_DATE,
VEH_MODEL_INTRO_DATE,
VEH_MODEL_FACELIFT_INTRO_DATE,
VEH_MODEL_FACELIFT_END_DATE,
VEH_NUMBER_OF_SEATS,
LC_DRIVER_SET_SEND_DATE,
LC_INTEREST_LOSS_AT_TERM,
LC_INTEREST_LOSS_AT_TERM_EUR,
LC_MVA_FEE_MIN_OVERMILEAGE,
LC_MVA_FEE_MIN_OVERMILEAGE_EUR,
LC_MVA_FEE_MID_OVERMILEAGE,
LC_MVA_FEE_MID_OVERMILEAGE_EUR,
LC_MVA_FEE_MAX_OVERMILEAGE,
LC_MVA_FEE_MAX_OVERMILEAGE_EUR,
LC_MVAREPAY_MINUNDERMILEAGE,
LC_MVAREPAY_MINUNDERMILEAGEEUR,
LC_MVAREPAY_MIDUNDERMILEAGE,
LC_MVAREPAY_MIDUNDERMILEAGEEUR,
LC_MVAREPAY_MAXUNDERMILEAGE,
LC_MVAREPAY_MAXUNDERMILEAGEEUR,
LC_MVA_THRESHHIGH_OVER_MILEAGE,
LC_MVA_THESHHIGH_UNDER_MILEAGE,
LC_MVA_THRESHLOW_UNDER_MILEAGE,
LC_MVA_THRESHLOW_OVER_MILEAGE,
LC_TERMINATION_PROCESS_DATE,
LC_CREATION_DATE_LEASECONTRACT,
LC_FORMAL_EXTENSION_APPLICABLE,
LC_ACTIVATION_DATE_FORMAL_EXT,
LC_CONTRACT_DURATION_FORMAL_EX,
LC_CONTRACT_MILEAGE_FORMAL_EXT,
LC_RESIDUAL_VALUE_FORM_EXT,
LC_RESIDUAL_VALUE_FORM_EXT_EUR,
LC_CAR_INSPEC_ENG_DAM_AM,
LC_CAR_INSPEC_ENG_DAM_AM_EUR,
LC_CAR_INSPEC_EXT_DAM_AM,
LC_CAR_INSPEC_EXT_DAM_AM_EUR,
LC_CAR_INSPEC_INT_DAM_AM,
LC_CAR_INSPEC_INT_DAM_AM_EUR,
LC_MVA_UM_LIMIT_PERCENTAGE,
LC_MVA_OM_LIMIT_PERCENTAGE,
LC_MVA_UM_FACTOR,
LC_MVA_OM_FACTOR,
CH_TYRE_WIDTH_FRONT,
CH_TYRE_WIDTH_REAR,
CH_TYRE_RIM_DIAM_FRONT,
CH_TYRE_RIM_DIAM_REAR,
VEH_CONSUMER_PRICE,
VEH_CONSUMER_PRICE_EUR,
VEH_LUXURY_TAX_AM,
VEH_LUXURY_TAX_AM_EUR,
VEH_ENROLMENT_TAX_AM,
VEH_ENROLMENT_TAX_AM_EUR,
LC_UFWT_TOTAL_ASSESSED_AM,
LC_UFWT_TOTAL_ASSESSED_AM_EUR,
LC_RESIDUAL_VALUE_BASE,
LC_RESIDUAL_VALUE_BASE_EUR,
LC_INSURANCE_LOSS_RATIO,
LC_LAST_KNOWN_MILEAGE,
LC_LAST_KNOWN_MILEAGE_DATE,
LC_CONTRACT_DURATION_FP,
LC_CONTRACT_MILEAGE_FP,
LC_MONTHLY_LEASEINSTALM_FP,
LC_BUDGETED_INVEST_AM_FP,
LC_MONTHLY_LEASEINSTALM_FP_EUR,
LC_BUDGETED_INVEST_AM_FP_EUR,
LC_START_DATE_LEASECONTRACT_FP,
LC_END_DATE_LEASECONTRACT_FP,
OR_CREATION_DATE_ORDER,
LC_REGISTRATIONDATE_START,
LC_REGISTRATIONDT_TERMINATION,
LC_MVA_DEPR_TO_BE_INVOICED,
LC_MVA_RM_TO_BE_INVOICED,
LC_MVA_TYRES_TO_BE_INVOICED,
LC_UFWT_TO_BE_INVOICED,
LC_INVOICINGENDDATE_LC,
CH_ACTIVATIONTYPE_LC,
CH_DEACTIVATIONTYPE_LC,
LC_LASTRECOGNIZEDOBJMILEAGE,
LC_LASTRECOGNIZEDOBJMILEAGEDT,
CH_USAGE_BY_CUSTOMER_ID,
LC_LOCAL_KEY_BUSINESS_UNIT,
LC_BUSINESS_UNIT_NAME,
LC_DRIVER_FIRST_NAME,
LC_DRIVER_LAST_NAME,
LC_SHORT_TERM_RENTAL_INDICATOR,
LC_ALLOCATION_STATUS_INDICATOR,
LC_NUMBER_OF_TYRES_IN_CONTRACT,
TELEMATICS_DEV_INSTALL_FLAG,
TELEMATICS_DEV_INSTALL_DATE,
TELEMATICS_DEV_DEINSTALL_DATE,
PRECEDING_LEASECONTRVEHICLE_ID,
LC_RENEWAL_INDICATOR,
LC_RELEASING_INDICATOR,
LC_RELEASING_START_DATE,
CH_ORDER_STATUS_ID,
OR_ACTUAL_DELIVERY_DATE,
OR_ORDER_RECEIPT_CONFIRM_DATE,
OR_CERTIFICATE_RECEIPT_DATE,
OR_FIRSTDRIVERAPPOINTMENT_DATE,
OR_DRIVER_APPOINTMENT_DATE,
OR_ORDER_CANCELLATION_DATE,
OR_NUMBEROF_DRIVERAPPOINTMENTS,
OR_ADVANCE_PURCHASE_INDICATOR,
LC_DOWNPAYMENT_INVESTMENT_AM,
LC_DOWNPAYMENT_INVESTMENT_AM_EUR
) as (SELECT
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LEASE_CONTRACT_VEHICLE_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CUSTOMER_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LEASE_CONTRACT_NUMBER,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_COST_CENTER_NAME,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_SLB_FLAG,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_START_DATE_LEASECONTRACT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_END_DATE_LEASECONTRACT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_BUDG_END_DATE_LEASECONTRACT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_STARTMILEAGELEASECONTRACTKM,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_ENDMILEAGELEASECONTRACT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CONTRACT_DURATION,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CONTRACT_MILEAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DISCONMONTHLY_LEASEINST,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MONTHLY_LEASEINSTALMENT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_FEE_OVER_MILEAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_REPAY_UNDER_MILEAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_ACTUAL_INVEST_AMOUNT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_BUDGETED_INVEST_AMOUNT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_INVEST_INTEREST_BASE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_PREPAYMNT_INTEREST_BASE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_UFWT_AMOUNT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_EXTENSION_PENALTY,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_EARLY_TERM_PENALTY,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_VEHICLE_NUMBER,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_MODEL_TYPE_DESCRIPTION,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_CATALOGUE_PRICE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_CATALOGUE_PRICE_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_ACTUAL_DISCOUNT_PERC,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_COMMERCIAL_DISCNT_AMT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_COMMERCIAL_DISCNT_AMT_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_TAX_AMT_NON_RECLAIM,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_TAX_AMT_NON_RECLAIM_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_VAT_PERCENTAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_TOT_OPTIONS_AMT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_TOTAL_OPTIONS_AMT_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_TOT_ACCESSOIRIES_AMT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_TOT_ACCESSOIRIES_AMT_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_DELIVERY_COSTS,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_DELIVERY_COSTS_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_REGISTRATION_NUMBER,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_REGISTRATION_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_VEH_IDENTIFICATION_NUMBER,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_NUMBER_OF_DOORS,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_ENGINE_CAPACITY,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_ENGINE_POWER,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_NUMBER_OF_CYLINDERS,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_TARE_WEIGHT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_GROSS_WEIGHT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_FUEL_CONSUMPT_MANUFACTURER,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_EXTERNAL_REFERENCE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_TYRE_SIZE_AT_DELIVERY,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_STANDARD_DISCOUNT_PERC,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LOAD_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.MNGSERV_TOT_RESIDUAL_VALUE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.MNGSERV_INTEREST_PERC_INVESTM,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.MNGSERV_INTEREST_PERC_PREPAYM,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.MNGSERV_TOT_RESIDUAL_VALUE_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MONTHLY_LEASEINSTALMENT_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_FEE_OVER_MILEAGE_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_REPAY_UNDER_MILEAGE_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_ACTUAL_INVEST_AMOUNT_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_BUDGETED_INVEST_AMOUNT_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_INVEST_INTEREST_BASE_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_PREPAYMNT_INTEREST_BASE_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_UFWT_AMOUNT_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_EXTENSION_PENALTY_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_EARLY_TERM_PENALTY_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ORDER_NUMBER,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ORDER_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ESTIMATED_DELIVERY_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CUSTOMER_SLA_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DRIVER_NUMBER,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DRIVER_NAME,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ORDER_SUPPLIER_NUMBER,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ORDER_SUPPLIER_NAME,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LOCAL_KEY_LEASE_CONTRACT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_LOCAL_KEY_VEHICLE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_LOCAL_KEY_ORDER,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LOCAL_KEY_COST_CENTER,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LOCAL_KEY_DRIVER,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_LOCAL_KEY_ORDER_SUPPLIER,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_LEASE_CONTRACT_STATUS_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_CONTRACT_TERMINATION_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_CONTRACT_STOP_REASON_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_REGISTRATION_STATUS_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_PURCHASED_BY_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_WINTER_TYRES_INCLUDED_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_MAKE_CODE_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_MODEL_CODE_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_BODY_STYLE_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_DRIVING_METHOD_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_EXTERIOR_COLOUR_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_EXTERIOR_COLOUR_TYPE_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_PRIMARY_FUEL_TYPE_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_TRANSMISSION_TYPE_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_UPHOLSTERY_TYPE_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_VEHICLE_TYPE_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_FLEET_REPORT_CATEGORY_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_PRODUCT_CATEGORY_TYPE_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.PRODUCT_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_BOOK_VALUE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_ASSET_TYPE_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_VEHICLE_SEGMENT_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_OEM_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_STARTMILEAGELEASECONTRACT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_ENDMILEAGELEASECONTRACTKM,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CONTRACT_MILEAGE_KM,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_BOOK_VALUE_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DISCONMONTHLY_LEASEINST_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_VEHICLE_SEGMENT_LOCAL_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_MVA_SYSTEM_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_BUY_BACK_CODE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_RISK_RULING_CODE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_VEHICLE_GROUP_CODE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_DATA_SUPPLIER_VEHICLE_CODE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_OWN_DAMAGE_RISK_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_UFWT_TYPE_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_MVA_SETTLEMENT_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CUSTOMER_DRIVER_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_CO2_LEVEL_COMBINED,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_SECONDARY_FUEL_TYPE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_NUMBER_OF_FORWARD_GEARS,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_INDICATOR_NEW_MODEL,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_MODEL_END_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_MODEL_INTRO_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_MODEL_FACELIFT_INTRO_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_MODEL_FACELIFT_END_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_NUMBER_OF_SEATS,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DRIVER_SET_SEND_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_INTEREST_LOSS_AT_TERM,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_INTEREST_LOSS_AT_TERM_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_FEE_MIN_OVERMILEAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_FEE_MIN_OVERMILEAGE_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_FEE_MID_OVERMILEAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_FEE_MID_OVERMILEAGE_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_FEE_MAX_OVERMILEAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_FEE_MAX_OVERMILEAGE_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVAREPAY_MINUNDERMILEAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVAREPAY_MINUNDERMILEAGEEUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVAREPAY_MIDUNDERMILEAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVAREPAY_MIDUNDERMILEAGEEUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVAREPAY_MAXUNDERMILEAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVAREPAY_MAXUNDERMILEAGEEUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_THRESHHIGH_OVER_MILEAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_THESHHIGH_UNDER_MILEAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_THRESHLOW_UNDER_MILEAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_THRESHLOW_OVER_MILEAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_TERMINATION_PROCESS_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CREATION_DATE_LEASECONTRACT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_FORMAL_EXTENSION_APPLICABLE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_ACTIVATION_DATE_FORMAL_EXT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CONTRACT_DURATION_FORMAL_EX,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CONTRACT_MILEAGE_FORMAL_EXT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_RESIDUAL_VALUE_FORM_EXT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_RESIDUAL_VALUE_FORM_EXT_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CAR_INSPEC_ENG_DAM_AM,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CAR_INSPEC_ENG_DAM_AM_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CAR_INSPEC_EXT_DAM_AM,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CAR_INSPEC_EXT_DAM_AM_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CAR_INSPEC_INT_DAM_AM,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CAR_INSPEC_INT_DAM_AM_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_UM_LIMIT_PERCENTAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_OM_LIMIT_PERCENTAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_UM_FACTOR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_OM_FACTOR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_TYRE_WIDTH_FRONT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_TYRE_WIDTH_REAR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_TYRE_RIM_DIAM_FRONT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_TYRE_RIM_DIAM_REAR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_CONSUMER_PRICE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_CONSUMER_PRICE_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_LUXURY_TAX_AM,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_LUXURY_TAX_AM_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_ENROLMENT_TAX_AM,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_ENROLMENT_TAX_AM_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_UFWT_TOTAL_ASSESSED_AM,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_UFWT_TOTAL_ASSESSED_AM_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_RESIDUAL_VALUE_BASE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_RESIDUAL_VALUE_BASE_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_INSURANCE_LOSS_RATIO,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LAST_KNOWN_MILEAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LAST_KNOWN_MILEAGE_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CONTRACT_DURATION_FP,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CONTRACT_MILEAGE_FP,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MONTHLY_LEASEINSTALM_FP,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_BUDGETED_INVEST_AM_FP,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MONTHLY_LEASEINSTALM_FP_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_BUDGETED_INVEST_AM_FP_EUR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_START_DATE_LEASECONTRACT_FP,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_END_DATE_LEASECONTRACT_FP,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_CREATION_DATE_ORDER,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_REGISTRATIONDATE_START,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_REGISTRATIONDT_TERMINATION,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_DEPR_TO_BE_INVOICED,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_RM_TO_BE_INVOICED,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_TYRES_TO_BE_INVOICED,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_UFWT_TO_BE_INVOICED,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_INVOICINGENDDATE_LC,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_ACTIVATIONTYPE_LC,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_DEACTIVATIONTYPE_LC,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LASTRECOGNIZEDOBJMILEAGE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LASTRECOGNIZEDOBJMILEAGEDT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_USAGE_BY_CUSTOMER_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LOCAL_KEY_BUSINESS_UNIT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_BUSINESS_UNIT_NAME,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DRIVER_FIRST_NAME,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DRIVER_LAST_NAME,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_SHORT_TERM_RENTAL_INDICATOR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_ALLOCATION_STATUS_INDICATOR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_NUMBER_OF_TYRES_IN_CONTRACT,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.TELEMATICS_DEV_INSTALL_FLAG,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.TELEMATICS_DEV_INSTALL_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.TELEMATICS_DEV_DEINSTALL_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.PRECEDING_LEASECONTRVEHICLE_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_RENEWAL_INDICATOR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_RELEASING_INDICATOR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_RELEASING_START_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_ORDER_STATUS_ID,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ACTUAL_DELIVERY_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ORDER_RECEIPT_CONFIRM_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_CERTIFICATE_RECEIPT_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_FIRSTDRIVERAPPOINTMENT_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_DRIVER_APPOINTMENT_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ORDER_CANCELLATION_DATE,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_NUMBEROF_DRIVERAPPOINTMENTS,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ADVANCE_PURCHASE_INDICATOR,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DOWNPAYMENT_INVESTMENT_AM,
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DOWNPAYMENT_INVESTMENT_AM_EUR
FROM LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE) UNION ALL (SELECT
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LEASE_CONTRACT_VEHICLE_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CUSTOMER_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LEASE_CONTRACT_NUMBER,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_COST_CENTER_NAME,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_SLB_FLAG,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_START_DATE_LEASECONTRACT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_END_DATE_LEASECONTRACT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_BUDG_END_DATE_LEASECONTRACT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_STARTMILEAGELEASECONTRACTKM,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_ENDMILEAGELEASECONTRACT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CONTRACT_DURATION,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CONTRACT_MILEAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DISCONMONTHLY_LEASEINST,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MONTHLY_LEASEINSTALMENT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_FEE_OVER_MILEAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_REPAY_UNDER_MILEAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_ACTUAL_INVEST_AMOUNT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_BUDGETED_INVEST_AMOUNT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_INVEST_INTEREST_BASE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_PREPAYMNT_INTEREST_BASE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_UFWT_AMOUNT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_EXTENSION_PENALTY,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_EARLY_TERM_PENALTY,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_VEHICLE_NUMBER,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_MODEL_TYPE_DESCRIPTION,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_CATALOGUE_PRICE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_CATALOGUE_PRICE_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_ACTUAL_DISCOUNT_PERC,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_COMMERCIAL_DISCNT_AMT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_COMMERCIAL_DISCNT_AMT_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_TAX_AMT_NON_RECLAIM,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_TAX_AMT_NON_RECLAIM_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_VAT_PERCENTAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_TOT_OPTIONS_AMT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_TOTAL_OPTIONS_AMT_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_TOT_ACCESSOIRIES_AMT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_TOT_ACCESSOIRIES_AMT_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_DELIVERY_COSTS,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_DELIVERY_COSTS_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_REGISTRATION_NUMBER,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_REGISTRATION_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_VEH_IDENTIFICATION_NUMBER,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_NUMBER_OF_DOORS,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_ENGINE_CAPACITY,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_ENGINE_POWER,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_NUMBER_OF_CYLINDERS,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_TARE_WEIGHT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_GROSS_WEIGHT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_FUEL_CONSUMPT_MANUFACTURER,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_EXTERNAL_REFERENCE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_TYRE_SIZE_AT_DELIVERY,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_STANDARD_DISCOUNT_PERC,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LOAD_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.MNGSERV_TOT_RESIDUAL_VALUE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.MNGSERV_INTEREST_PERC_INVESTM,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.MNGSERV_INTEREST_PERC_PREPAYM,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.MNGSERV_TOT_RESIDUAL_VALUE_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MONTHLY_LEASEINSTALMENT_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_FEE_OVER_MILEAGE_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_REPAY_UNDER_MILEAGE_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_ACTUAL_INVEST_AMOUNT_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_BUDGETED_INVEST_AMOUNT_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_INVEST_INTEREST_BASE_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_PREPAYMNT_INTEREST_BASE_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_UFWT_AMOUNT_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_EXTENSION_PENALTY_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_EARLY_TERM_PENALTY_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ORDER_NUMBER,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ORDER_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ESTIMATED_DELIVERY_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CUSTOMER_SLA_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DRIVER_NUMBER,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DRIVER_NAME,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ORDER_SUPPLIER_NUMBER,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ORDER_SUPPLIER_NAME,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LOCAL_KEY_LEASE_CONTRACT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_LOCAL_KEY_VEHICLE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_LOCAL_KEY_ORDER,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LOCAL_KEY_COST_CENTER,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LOCAL_KEY_DRIVER,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_LOCAL_KEY_ORDER_SUPPLIER,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_LEASE_CONTRACT_STATUS_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_CONTRACT_TERMINATION_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_CONTRACT_STOP_REASON_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_REGISTRATION_STATUS_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_PURCHASED_BY_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_WINTER_TYRES_INCLUDED_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_MAKE_CODE_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_MODEL_CODE_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_BODY_STYLE_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_DRIVING_METHOD_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_EXTERIOR_COLOUR_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_EXTERIOR_COLOUR_TYPE_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_PRIMARY_FUEL_TYPE_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_TRANSMISSION_TYPE_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_UPHOLSTERY_TYPE_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_VEHICLE_TYPE_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_FLEET_REPORT_CATEGORY_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_PRODUCT_CATEGORY_TYPE_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.PRODUCT_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_BOOK_VALUE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_ASSET_TYPE_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_VEHICLE_SEGMENT_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_OEM_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_STARTMILEAGELEASECONTRACT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_ENDMILEAGELEASECONTRACTKM,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CONTRACT_MILEAGE_KM,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_BOOK_VALUE_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DISCONMONTHLY_LEASEINST_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_VEHICLE_SEGMENT_LOCAL_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_MVA_SYSTEM_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_BUY_BACK_CODE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_RISK_RULING_CODE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_VEHICLE_GROUP_CODE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_DATA_SUPPLIER_VEHICLE_CODE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_OWN_DAMAGE_RISK_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_UFWT_TYPE_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_MVA_SETTLEMENT_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CUSTOMER_DRIVER_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_CO2_LEVEL_COMBINED,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_SECONDARY_FUEL_TYPE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_NUMBER_OF_FORWARD_GEARS,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_INDICATOR_NEW_MODEL,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_MODEL_END_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_MODEL_INTRO_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_MODEL_FACELIFT_INTRO_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_MODEL_FACELIFT_END_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_NUMBER_OF_SEATS,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DRIVER_SET_SEND_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_INTEREST_LOSS_AT_TERM,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_INTEREST_LOSS_AT_TERM_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_FEE_MIN_OVERMILEAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_FEE_MIN_OVERMILEAGE_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_FEE_MID_OVERMILEAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_FEE_MID_OVERMILEAGE_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_FEE_MAX_OVERMILEAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_FEE_MAX_OVERMILEAGE_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVAREPAY_MINUNDERMILEAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVAREPAY_MINUNDERMILEAGEEUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVAREPAY_MIDUNDERMILEAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVAREPAY_MIDUNDERMILEAGEEUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVAREPAY_MAXUNDERMILEAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVAREPAY_MAXUNDERMILEAGEEUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_THRESHHIGH_OVER_MILEAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_THESHHIGH_UNDER_MILEAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_THRESHLOW_UNDER_MILEAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_THRESHLOW_OVER_MILEAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_TERMINATION_PROCESS_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CREATION_DATE_LEASECONTRACT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_FORMAL_EXTENSION_APPLICABLE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_ACTIVATION_DATE_FORMAL_EXT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CONTRACT_DURATION_FORMAL_EX,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CONTRACT_MILEAGE_FORMAL_EXT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_RESIDUAL_VALUE_FORM_EXT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_RESIDUAL_VALUE_FORM_EXT_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CAR_INSPEC_ENG_DAM_AM,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CAR_INSPEC_ENG_DAM_AM_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CAR_INSPEC_EXT_DAM_AM,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CAR_INSPEC_EXT_DAM_AM_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CAR_INSPEC_INT_DAM_AM,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CAR_INSPEC_INT_DAM_AM_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_UM_LIMIT_PERCENTAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_OM_LIMIT_PERCENTAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_UM_FACTOR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_OM_FACTOR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_TYRE_WIDTH_FRONT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_TYRE_WIDTH_REAR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_TYRE_RIM_DIAM_FRONT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_TYRE_RIM_DIAM_REAR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_CONSUMER_PRICE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_CONSUMER_PRICE_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_LUXURY_TAX_AM,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_LUXURY_TAX_AM_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_ENROLMENT_TAX_AM,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.VEH_ENROLMENT_TAX_AM_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_UFWT_TOTAL_ASSESSED_AM,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_UFWT_TOTAL_ASSESSED_AM_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_RESIDUAL_VALUE_BASE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_RESIDUAL_VALUE_BASE_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_INSURANCE_LOSS_RATIO,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LAST_KNOWN_MILEAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LAST_KNOWN_MILEAGE_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CONTRACT_DURATION_FP,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_CONTRACT_MILEAGE_FP,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MONTHLY_LEASEINSTALM_FP,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_BUDGETED_INVEST_AM_FP,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MONTHLY_LEASEINSTALM_FP_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_BUDGETED_INVEST_AM_FP_EUR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_START_DATE_LEASECONTRACT_FP,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_END_DATE_LEASECONTRACT_FP,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_CREATION_DATE_ORDER,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_REGISTRATIONDATE_START,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_REGISTRATIONDT_TERMINATION,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_DEPR_TO_BE_INVOICED,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_RM_TO_BE_INVOICED,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_MVA_TYRES_TO_BE_INVOICED,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_UFWT_TO_BE_INVOICED,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_INVOICINGENDDATE_LC,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_ACTIVATIONTYPE_LC,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_DEACTIVATIONTYPE_LC,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LASTRECOGNIZEDOBJMILEAGE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LASTRECOGNIZEDOBJMILEAGEDT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_USAGE_BY_CUSTOMER_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_LOCAL_KEY_BUSINESS_UNIT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_BUSINESS_UNIT_NAME,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DRIVER_FIRST_NAME,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DRIVER_LAST_NAME,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_SHORT_TERM_RENTAL_INDICATOR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_ALLOCATION_STATUS_INDICATOR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_NUMBER_OF_TYRES_IN_CONTRACT,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.TELEMATICS_DEV_INSTALL_FLAG,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.TELEMATICS_DEV_INSTALL_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.TELEMATICS_DEV_DEINSTALL_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.PRECEDING_LEASECONTRVEHICLE_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_RENEWAL_INDICATOR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_RELEASING_INDICATOR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_RELEASING_START_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.CH_ORDER_STATUS_ID,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ACTUAL_DELIVERY_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ORDER_RECEIPT_CONFIRM_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_CERTIFICATE_RECEIPT_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_FIRSTDRIVERAPPOINTMENT_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_DRIVER_APPOINTMENT_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ORDER_CANCELLATION_DATE,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_NUMBEROF_DRIVERAPPOINTMENTS,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.OR_ADVANCE_PURCHASE_INDICATOR,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DOWNPAYMENT_INVESTMENT_AM,
LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE.LC_DOWNPAYMENT_INVESTMENT_AM_EUR
FROM LPNO_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE);
\echo -n .

CREATE VIEW LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE_VW (


LEASE_CONTRACT_VEHICLE_ID,
CUSTOMER_ID,
LC_LEASE_CONTRACT_NUMBER,
LC_COST_CENTER_NAME,
LC_SLB_FLAG,
LC_START_DATE_LEASECONTRACT,
LC_END_DATE_LEASECONTRACT,
LC_BUDG_END_DATE_LEASECONTRACT,
LC_STARTMILEAGELEASECONTRACTKM,
LC_ENDMILEAGELEASECONTRACT,
LC_CONTRACT_DURATION,
LC_CONTRACT_MILEAGE,
LC_DISCONMONTHLY_LEASEINST,
LC_MONTHLY_LEASEINSTALMENT,
LC_MVA_FEE_OVER_MILEAGE,
LC_MVA_REPAY_UNDER_MILEAGE,
LC_ACTUAL_INVEST_AMOUNT,
LC_BUDGETED_INVEST_AMOUNT,
LC_INVEST_INTEREST_BASE,
LC_PREPAYMNT_INTEREST_BASE,
LC_UFWT_AMOUNT,
LC_EXTENSION_PENALTY,
LC_EARLY_TERM_PENALTY,
VEH_VEHICLE_NUMBER,
VEH_MODEL_TYPE_DESCRIPTION,
VEH_CATALOGUE_PRICE,
VEH_CATALOGUE_PRICE_EUR,
VEH_ACTUAL_DISCOUNT_PERC,
VEH_COMMERCIAL_DISCNT_AMT,
VEH_COMMERCIAL_DISCNT_AMT_EUR,
VEH_TAX_AMT_NON_RECLAIM,
VEH_TAX_AMT_NON_RECLAIM_EUR,
VEH_VAT_PERCENTAGE,
VEH_TOT_OPTIONS_AMT,
VEH_TOTAL_OPTIONS_AMT_EUR,
VEH_TOT_ACCESSOIRIES_AMT,
VEH_TOT_ACCESSOIRIES_AMT_EUR,
VEH_DELIVERY_COSTS,
VEH_DELIVERY_COSTS_EUR,
VEH_REGISTRATION_NUMBER,
VEH_REGISTRATION_DATE,
VEH_VEH_IDENTIFICATION_NUMBER,
VEH_NUMBER_OF_DOORS,
VEH_ENGINE_CAPACITY,
VEH_ENGINE_POWER,
VEH_NUMBER_OF_CYLINDERS,
VEH_TARE_WEIGHT,
VEH_GROSS_WEIGHT,
VEH_FUEL_CONSUMPT_MANUFACTURER,
VEH_EXTERNAL_REFERENCE,
VEH_TYRE_SIZE_AT_DELIVERY,
VEH_STANDARD_DISCOUNT_PERC,
LOAD_DATE,
MNGSERV_TOT_RESIDUAL_VALUE,
MNGSERV_INTEREST_PERC_INVESTM,
MNGSERV_INTEREST_PERC_PREPAYM,
MNGSERV_TOT_RESIDUAL_VALUE_EUR,
LC_MONTHLY_LEASEINSTALMENT_EUR,
LC_MVA_FEE_OVER_MILEAGE_EUR,
LC_MVA_REPAY_UNDER_MILEAGE_EUR,
LC_ACTUAL_INVEST_AMOUNT_EUR,
LC_BUDGETED_INVEST_AMOUNT_EUR,
LC_INVEST_INTEREST_BASE_EUR,
LC_PREPAYMNT_INTEREST_BASE_EUR,
LC_UFWT_AMOUNT_EUR,
LC_EXTENSION_PENALTY_EUR,
LC_EARLY_TERM_PENALTY_EUR,
OR_ORDER_NUMBER,
OR_ORDER_DATE,
OR_ESTIMATED_DELIVERY_DATE,
CUSTOMER_SLA_ID,
LC_DRIVER_NUMBER,
LC_DRIVER_NAME,
OR_ORDER_SUPPLIER_NUMBER,
OR_ORDER_SUPPLIER_NAME,
LC_LOCAL_KEY_LEASE_CONTRACT,
VEH_LOCAL_KEY_VEHICLE,
OR_LOCAL_KEY_ORDER,
LC_LOCAL_KEY_COST_CENTER,
LC_LOCAL_KEY_DRIVER,
OR_LOCAL_KEY_ORDER_SUPPLIER,
CH_LEASE_CONTRACT_STATUS_ID,
CH_CONTRACT_TERMINATION_ID,
CH_CONTRACT_STOP_REASON_ID,
CH_REGISTRATION_STATUS_ID,
CH_PURCHASED_BY_ID,
CH_WINTER_TYRES_INCLUDED_ID,
CH_MAKE_CODE_ID,
CH_MODEL_CODE_ID,
CH_BODY_STYLE_ID,
CH_DRIVING_METHOD_ID,
CH_EXTERIOR_COLOUR_ID,
CH_EXTERIOR_COLOUR_TYPE_ID,
CH_PRIMARY_FUEL_TYPE_ID,
CH_TRANSMISSION_TYPE_ID,
CH_UPHOLSTERY_TYPE_ID,
CH_VEHICLE_TYPE_ID,
CH_FLEET_REPORT_CATEGORY_ID,
CH_PRODUCT_CATEGORY_TYPE_ID,
PRODUCT_ID,
LC_BOOK_VALUE,
LC_BOOK_VALUE_BUDG,
CH_ASSET_TYPE_ID,
CH_VEHICLE_SEGMENT_ID,
CH_OEM_ID,
LC_STARTMILEAGELEASECONTRACT,
LC_ENDMILEAGELEASECONTRACTKM,
LC_CONTRACT_MILEAGE_KM,
LC_BOOK_VALUE_EUR,
LC_BOOK_VALUE_BUDG_EUR,
LC_DISCONMONTHLY_LEASEINST_EUR,
CH_VEHICLE_SEGMENT_LOCAL_ID,
CH_MVA_SYSTEM_ID,
CH_BUY_BACK_CODE,
CH_RISK_RULING_CODE,
CH_VEHICLE_GROUP_CODE,
CH_DATA_SUPPLIER_VEHICLE_CODE,
CH_OWN_DAMAGE_RISK_ID,
CH_UFWT_TYPE_ID,
CH_MVA_SETTLEMENT_ID,
LC_CUSTOMER_DRIVER_ID,
VEH_CO2_LEVEL_COMBINED,
CH_SECONDARY_FUEL_TYPE,
CH_NUMBER_OF_FORWARD_GEARS,
VEH_INDICATOR_NEW_MODEL,
VEH_MODEL_END_DATE,
VEH_MODEL_INTRO_DATE,
VEH_MODEL_FACELIFT_INTRO_DATE,
VEH_MODEL_FACELIFT_END_DATE,
VEH_NUMBER_OF_SEATS,
LC_DRIVER_SET_SEND_DATE,
LC_INTEREST_LOSS_AT_TERM,
LC_INTEREST_LOSS_AT_TERM_EUR,
LC_MVA_FEE_MIN_OVERMILEAGE,
LC_MVA_FEE_MIN_OVERMILEAGE_EUR,
LC_MVA_FEE_MID_OVERMILEAGE,
LC_MVA_FEE_MID_OVERMILEAGE_EUR,
LC_MVA_FEE_MAX_OVERMILEAGE,
LC_MVA_FEE_MAX_OVERMILEAGE_EUR,
LC_MVAREPAY_MINUNDERMILEAGE,
LC_MVAREPAY_MINUNDERMILEAGEEUR,
LC_MVAREPAY_MIDUNDERMILEAGE,
LC_MVAREPAY_MIDUNDERMILEAGEEUR,
LC_MVAREPAY_MAXUNDERMILEAGE,
LC_MVAREPAY_MAXUNDERMILEAGEEUR,
LC_MVA_THRESHHIGH_OVER_MILEAGE,
LC_MVA_THESHHIGH_UNDER_MILEAGE,
LC_MVA_THRESHLOW_UNDER_MILEAGE,
LC_MVA_THRESHLOW_OVER_MILEAGE,
LC_TERMINATION_PROCESS_DATE,
LC_CREATION_DATE_LEASECONTRACT,
LC_FORMAL_EXTENSION_APPLICABLE,
LC_ACTIVATION_DATE_FORMAL_EXT,
LC_CONTRACT_DURATION_FORMAL_EX,
LC_CONTRACT_MILEAGE_FORMAL_EXT,
LC_RESIDUAL_VALUE_FORM_EXT,
LC_RESIDUAL_VALUE_FORM_EXT_EUR,
LC_CAR_INSPEC_ENG_DAM_AM,
LC_CAR_INSPEC_ENG_DAM_AM_EUR,
LC_CAR_INSPEC_EXT_DAM_AM,
LC_CAR_INSPEC_EXT_DAM_AM_EUR,
LC_CAR_INSPEC_INT_DAM_AM,
LC_CAR_INSPEC_INT_DAM_AM_EUR,
LC_MVA_UM_LIMIT_PERCENTAGE,
LC_MVA_OM_LIMIT_PERCENTAGE,
LC_MVA_UM_FACTOR,
LC_MVA_OM_FACTOR,
CH_TYRE_WIDTH_FRONT,
CH_TYRE_WIDTH_REAR,
CH_TYRE_RIM_DIAM_FRONT,
CH_TYRE_RIM_DIAM_REAR,
VEH_CONSUMER_PRICE,
VEH_CONSUMER_PRICE_EUR,
VEH_LUXURY_TAX_AM,
VEH_LUXURY_TAX_AM_EUR,
VEH_ENROLMENT_TAX_AM,
VEH_ENROLMENT_TAX_AM_EUR,
LC_UFWT_TOTAL_ASSESSED_AM,
LC_UFWT_TOTAL_ASSESSED_AM_EUR,
LC_RESIDUAL_VALUE_BASE,
LC_RESIDUAL_VALUE_BASE_EUR,
LC_INSURANCE_LOSS_RATIO,
LC_LAST_KNOWN_MILEAGE,
LC_LAST_KNOWN_MILEAGE_DATE,
LC_CONTRACT_DURATION_FP,
LC_CONTRACT_MILEAGE_FP,
LC_MONTHLY_LEASEINSTALM_FP,
LC_BUDGETED_INVEST_AM_FP,
LC_MONTHLY_LEASEINSTALM_FP_EUR,
LC_BUDGETED_INVEST_AM_FP_EUR,
LC_START_DATE_LEASECONTRACT_FP,
LC_END_DATE_LEASECONTRACT_FP,
OR_CREATION_DATE_ORDER,
LC_REGISTRATIONDATE_START,
LC_REGISTRATIONDT_TERMINATION,
LC_MVA_DEPR_TO_BE_INVOICED,
LC_MVA_RM_TO_BE_INVOICED,
LC_MVA_TYRES_TO_BE_INVOICED,
LC_UFWT_TO_BE_INVOICED,
LC_INVOICINGENDDATE_LC,
CH_ACTIVATIONTYPE_LC,
CH_DEACTIVATIONTYPE_LC,
LC_LASTRECOGNIZEDOBJMILEAGE,
LC_LASTRECOGNIZEDOBJMILEAGEDT,
CH_USAGE_BY_CUSTOMER_ID,
LC_LOCAL_KEY_BUSINESS_UNIT,
LC_BUSINESS_UNIT_NAME,
LC_DRIVER_FIRST_NAME,
LC_DRIVER_LAST_NAME,
LC_SHORT_TERM_RENTAL_INDICATOR,
LC_ALLOCATION_STATUS_INDICATOR,
LC_NUMBER_OF_TYRES_IN_CONTRACT,
TELEMATICS_DEV_INSTALL_FLAG,
TELEMATICS_DEV_INSTALL_DATE,
TELEMATICS_DEV_DEINSTALL_DATE,
PRECEDING_LEASECONTRVEHICLE_ID,
LC_RENEWAL_INDICATOR,
LC_RELEASING_INDICATOR,
LC_RELEASING_START_DATE,
CH_ORDER_STATUS_ID,
OR_ACTUAL_DELIVERY_DATE,
OR_ORDER_RECEIPT_CONFIRM_DATE,
OR_CERTIFICATE_RECEIPT_DATE,
OR_FIRSTDRIVERAPPOINTMENT_DATE,
OR_DRIVER_APPOINTMENT_DATE,
OR_ORDER_CANCELLATION_DATE,
OR_NUMBEROF_DRIVERAPPOINTMENTS,
OR_ADVANCE_PURCHASE_INDICATOR,
LC_DOWNPAYMENT_INVESTMENT_AM,
LC_DOWNPAYMENT_INVESTMENT_AM_EUR
) as SELECT LCV.LEASE_CONTRACT_VEHICLE_ID, LCV.CUSTOMER_ID,
LCV.LC_LEASE_CONTRACT_NUMBER, LCV.LC_COST_CENTER_NAME, LCV.LC_SLB_FLAG,
LCV.LC_START_DATE_LEASECONTRACT, LCV.LC_END_DATE_LEASECONTRACT,
LCV.LC_BUDG_END_DATE_LEASECONTRACT, LCV.LC_STARTMILEAGELEASECONTRACTKM,
LCV.LC_ENDMILEAGELEASECONTRACT, LCV.LC_CONTRACT_DURATION, LCV.LC_CONTRACT_MILEAGE,
LCV.LC_DISCONMONTHLY_LEASEINST, LCV.LC_MONTHLY_LEASEINSTALMENT,
LCV.LC_MVA_FEE_OVER_MILEAGE, LCV.LC_MVA_REPAY_UNDER_MILEAGE,
LCV.LC_ACTUAL_INVEST_AMOUNT, LCV.LC_BUDGETED_INVEST_AMOUNT,
LCV.LC_INVEST_INTEREST_BASE, LCV.LC_PREPAYMNT_INTEREST_BASE, LCV.LC_UFWT_AMOUNT,
LCV.LC_EXTENSION_PENALTY, LCV.LC_EARLY_TERM_PENALTY, LCV.VEH_VEHICLE_NUMBER,
LCV.VEH_MODEL_TYPE_DESCRIPTION, LCV.VEH_CATALOGUE_PRICE,
LCV.VEH_CATALOGUE_PRICE_EUR, LCV.VEH_ACTUAL_DISCOUNT_PERC,
LCV.VEH_COMMERCIAL_DISCNT_AMT, LCV.VEH_COMMERCIAL_DISCNT_AMT_EUR,
LCV.VEH_TAX_AMT_NON_RECLAIM, LCV.VEH_TAX_AMT_NON_RECLAIM_EUR,
LCV.VEH_VAT_PERCENTAGE, LCV.VEH_TOT_OPTIONS_AMT, LCV.VEH_TOTAL_OPTIONS_AMT_EUR,
LCV.VEH_TOT_ACCESSOIRIES_AMT, LCV.VEH_TOT_ACCESSOIRIES_AMT_EUR,
LCV.VEH_DELIVERY_COSTS, LCV.VEH_DELIVERY_COSTS_EUR, LCV.VEH_REGISTRATION_NUMBER,
LCV.VEH_REGISTRATION_DATE, LCV.VEH_VEH_IDENTIFICATION_NUMBER,
LCV.VEH_NUMBER_OF_DOORS, LCV.VEH_ENGINE_CAPACITY, LCV.VEH_ENGINE_POWER,
LCV.VEH_NUMBER_OF_CYLINDERS, LCV.VEH_TARE_WEIGHT, LCV.VEH_GROSS_WEIGHT,
LCV.VEH_FUEL_CONSUMPT_MANUFACTURER, LCV.VEH_EXTERNAL_REFERENCE,
LCV.VEH_TYRE_SIZE_AT_DELIVERY, LCV.VEH_STANDARD_DISCOUNT_PERC, LCV.LOAD_DATE,
LCV.MNGSERV_TOT_RESIDUAL_VALUE, LCV.MNGSERV_INTEREST_PERC_INVESTM,
LCV.MNGSERV_INTEREST_PERC_PREPAYM, LCV.MNGSERV_TOT_RESIDUAL_VALUE_EUR,
LCV.LC_MONTHLY_LEASEINSTALMENT_EUR, LCV.LC_MVA_FEE_OVER_MILEAGE_EUR,
LCV.LC_MVA_REPAY_UNDER_MILEAGE_EUR, LCV.LC_ACTUAL_INVEST_AMOUNT_EUR,
LCV.LC_BUDGETED_INVEST_AMOUNT_EUR, LCV.LC_INVEST_INTEREST_BASE_EUR,
LCV.LC_PREPAYMNT_INTEREST_BASE_EUR, LCV.LC_UFWT_AMOUNT_EUR,
LCV.LC_EXTENSION_PENALTY_EUR, LCV.LC_EARLY_TERM_PENALTY_EUR, LCV.OR_ORDER_NUMBER,
LCV.OR_ORDER_DATE, LCV.OR_ESTIMATED_DELIVERY_DATE, LCV.CUSTOMER_SLA_ID,
LCV.LC_DRIVER_NUMBER, LCV.LC_DRIVER_NAME, LCV.OR_ORDER_SUPPLIER_NUMBER,
LCV.OR_ORDER_SUPPLIER_NAME, LCV.LC_LOCAL_KEY_LEASE_CONTRACT,
LCV.VEH_LOCAL_KEY_VEHICLE, LCV.OR_LOCAL_KEY_ORDER, LCV.LC_LOCAL_KEY_COST_CENTER,
LCV.LC_LOCAL_KEY_DRIVER, LCV.OR_LOCAL_KEY_ORDER_SUPPLIER,
LCV.CH_LEASE_CONTRACT_STATUS_ID, LCV.CH_CONTRACT_TERMINATION_ID,
LCV.CH_CONTRACT_STOP_REASON_ID, LCV.CH_REGISTRATION_STATUS_ID,
LCV.CH_PURCHASED_BY_ID, LCV.CH_WINTER_TYRES_INCLUDED_ID, LCV.CH_MAKE_CODE_ID,
LCV.CH_MODEL_CODE_ID, LCV.CH_BODY_STYLE_ID, LCV.CH_DRIVING_METHOD_ID,
LCV.CH_EXTERIOR_COLOUR_ID, LCV.CH_EXTERIOR_COLOUR_TYPE_ID,
LCV.CH_PRIMARY_FUEL_TYPE_ID, LCV.CH_TRANSMISSION_TYPE_ID,
LCV.CH_UPHOLSTERY_TYPE_ID, LCV.CH_VEHICLE_TYPE_ID, LCV.CH_FLEET_REPORT_CATEGORY_ID,
LCV.CH_PRODUCT_CATEGORY_TYPE_ID, LCV.PRODUCT_ID, LCV.LC_BOOK_VALUE, CASE WHEN
(LCD.DEPRECIATION_COSTS NOTNULL) THEN ((LCV.LC_BUDGETED_INVEST_AMOUNT -
LCV.LC_DOWNPAYMENT_INVESTMENT_AM) - LCD.DEPRECIATION_COSTS) ELSE
(LCV.LC_BUDGETED_INVEST_AMOUNT - LCV.LC_DOWNPAYMENT_INVESTMENT_AM) END AS
LC_BOOK_VALUE_BUDG, LCV.CH_ASSET_TYPE_ID, LCV.CH_VEHICLE_SEGMENT_ID, LCV.CH_OEM_ID,
LCV.LC_STARTMILEAGELEASECONTRACT, LCV.LC_ENDMILEAGELEASECONTRACTKM,
LCV.LC_CONTRACT_MILEAGE_KM, LCV.LC_BOOK_VALUE_EUR, CASE WHEN
(LCD.DEPRECIATION_COSTS_EUR NOTNULL) THEN ((LCV.LC_BUDGETED_INVEST_AMOUNT_EUR -
LCV.LC_DOWNPAYMENT_INVESTMENT_AM_EUR) - LCD.DEPRECIATION_COSTS_EUR) ELSE
(LCV.LC_BUDGETED_INVEST_AMOUNT_EUR - LCV.LC_DOWNPAYMENT_INVESTMENT_AM_EUR) END AS
LC_BOOK_VALUE_BUDG_EUR, LCV.LC_DISCONMONTHLY_LEASEINST_EUR,
LCV.CH_VEHICLE_SEGMENT_LOCAL_ID, LCV.CH_MVA_SYSTEM_ID, LCV.CH_BUY_BACK_CODE,
LCV.CH_RISK_RULING_CODE, LCV.CH_VEHICLE_GROUP_CODE,
LCV.CH_DATA_SUPPLIER_VEHICLE_CODE, LCV.CH_OWN_DAMAGE_RISK_ID, LCV.CH_UFWT_TYPE_ID,
LCV.CH_MVA_SETTLEMENT_ID, LCV.LC_CUSTOMER_DRIVER_ID, LCV.VEH_CO2_LEVEL_COMBINED,
LCV.CH_SECONDARY_FUEL_TYPE, LCV.CH_NUMBER_OF_FORWARD_GEARS,
LCV.VEH_INDICATOR_NEW_MODEL, LCV.VEH_MODEL_END_DATE, LCV.VEH_MODEL_INTRO_DATE,
LCV.VEH_MODEL_FACELIFT_INTRO_DATE, LCV.VEH_MODEL_FACELIFT_END_DATE,
LCV.VEH_NUMBER_OF_SEATS, LCV.LC_DRIVER_SET_SEND_DATE, LCV.LC_INTEREST_LOSS_AT_TERM,
LCV.LC_INTEREST_LOSS_AT_TERM_EUR, LCV.LC_MVA_FEE_MIN_OVERMILEAGE,
LCV.LC_MVA_FEE_MIN_OVERMILEAGE_EUR, LCV.LC_MVA_FEE_MID_OVERMILEAGE,
LCV.LC_MVA_FEE_MID_OVERMILEAGE_EUR, LCV.LC_MVA_FEE_MAX_OVERMILEAGE,
LCV.LC_MVA_FEE_MAX_OVERMILEAGE_EUR, LCV.LC_MVAREPAY_MINUNDERMILEAGE,
LCV.LC_MVAREPAY_MINUNDERMILEAGEEUR, LCV.LC_MVAREPAY_MIDUNDERMILEAGE,
LCV.LC_MVAREPAY_MIDUNDERMILEAGEEUR, LCV.LC_MVAREPAY_MAXUNDERMILEAGE,
LCV.LC_MVAREPAY_MAXUNDERMILEAGEEUR, LCV.LC_MVA_THRESHHIGH_OVER_MILEAGE,
LCV.LC_MVA_THESHHIGH_UNDER_MILEAGE, LCV.LC_MVA_THRESHLOW_UNDER_MILEAGE,
LCV.LC_MVA_THRESHLOW_OVER_MILEAGE, LCV.LC_TERMINATION_PROCESS_DATE,
LCV.LC_CREATION_DATE_LEASECONTRACT, LCV.LC_FORMAL_EXTENSION_APPLICABLE,
LCV.LC_ACTIVATION_DATE_FORMAL_EXT, LCV.LC_CONTRACT_DURATION_FORMAL_EX,
LCV.LC_CONTRACT_MILEAGE_FORMAL_EXT, LCV.LC_RESIDUAL_VALUE_FORM_EXT,
LCV.LC_RESIDUAL_VALUE_FORM_EXT_EUR, LCV.LC_CAR_INSPEC_ENG_DAM_AM,
LCV.LC_CAR_INSPEC_ENG_DAM_AM_EUR, LCV.LC_CAR_INSPEC_EXT_DAM_AM,
LCV.LC_CAR_INSPEC_EXT_DAM_AM_EUR, LCV.LC_CAR_INSPEC_INT_DAM_AM,
LCV.LC_CAR_INSPEC_INT_DAM_AM_EUR, LCV.LC_MVA_UM_LIMIT_PERCENTAGE,
LCV.LC_MVA_OM_LIMIT_PERCENTAGE, LCV.LC_MVA_UM_FACTOR, LCV.LC_MVA_OM_FACTOR,
LCV.CH_TYRE_WIDTH_FRONT, LCV.CH_TYRE_WIDTH_REAR, LCV.CH_TYRE_RIM_DIAM_FRONT,
LCV.CH_TYRE_RIM_DIAM_REAR, LCV.VEH_CONSUMER_PRICE, LCV.VEH_CONSUMER_PRICE_EUR,
LCV.VEH_LUXURY_TAX_AM, LCV.VEH_LUXURY_TAX_AM_EUR, LCV.VEH_ENROLMENT_TAX_AM,
LCV.VEH_ENROLMENT_TAX_AM_EUR, LCV.LC_UFWT_TOTAL_ASSESSED_AM,
LCV.LC_UFWT_TOTAL_ASSESSED_AM_EUR, LCV.LC_RESIDUAL_VALUE_BASE,
LCV.LC_RESIDUAL_VALUE_BASE_EUR, LCV.LC_INSURANCE_LOSS_RATIO,
LCV.LC_LAST_KNOWN_MILEAGE, LCV.LC_LAST_KNOWN_MILEAGE_DATE,
LCV.LC_CONTRACT_DURATION_FP, LCV.LC_CONTRACT_MILEAGE_FP,
LCV.LC_MONTHLY_LEASEINSTALM_FP, LCV.LC_BUDGETED_INVEST_AM_FP,
LCV.LC_MONTHLY_LEASEINSTALM_FP_EUR, LCV.LC_BUDGETED_INVEST_AM_FP_EUR,
LCV.LC_START_DATE_LEASECONTRACT_FP, LCV.LC_END_DATE_LEASECONTRACT_FP,
LCV.OR_CREATION_DATE_ORDER, LCV.LC_REGISTRATIONDATE_START,
LCV.LC_REGISTRATIONDT_TERMINATION, LCV.LC_MVA_DEPR_TO_BE_INVOICED,
LCV.LC_MVA_RM_TO_BE_INVOICED, LCV.LC_MVA_TYRES_TO_BE_INVOICED,
LCV.LC_UFWT_TO_BE_INVOICED, LCV.LC_INVOICINGENDDATE_LC, LCV.CH_ACTIVATIONTYPE_LC,
LCV.CH_DEACTIVATIONTYPE_LC, LCV.LC_LASTRECOGNIZEDOBJMILEAGE,
LCV.LC_LASTRECOGNIZEDOBJMILEAGEDT, LCV.CH_USAGE_BY_CUSTOMER_ID,
LCV.LC_LOCAL_KEY_BUSINESS_UNIT, LCV.LC_BUSINESS_UNIT_NAME,
LCV.LC_DRIVER_FIRST_NAME, LCV.LC_DRIVER_LAST_NAME,
LCV.LC_SHORT_TERM_RENTAL_INDICATOR, LCV.LC_ALLOCATION_STATUS_INDICATOR,
LCV.LC_NUMBER_OF_TYRES_IN_CONTRACT, LCV.TELEMATICS_DEV_INSTALL_FLAG,
LCV.TELEMATICS_DEV_INSTALL_DATE, LCV.TELEMATICS_DEV_DEINSTALL_DATE,
LCV.PRECEDING_LEASECONTRVEHICLE_ID, LCV.LC_RENEWAL_INDICATOR,
LCV.LC_RELEASING_INDICATOR, LCV.LC_RELEASING_START_DATE, LCV.CH_ORDER_STATUS_ID,
LCV.OR_ACTUAL_DELIVERY_DATE, LCV.OR_ORDER_RECEIPT_CONFIRM_DATE,
LCV.OR_CERTIFICATE_RECEIPT_DATE, LCV.OR_FIRSTDRIVERAPPOINTMENT_DATE,
LCV.OR_DRIVER_APPOINTMENT_DATE, LCV.OR_ORDER_CANCELLATION_DATE,
LCV.OR_NUMBEROF_DRIVERAPPOINTMENTS, LCV.OR_ADVANCE_PURCHASE_INDICATOR,
LCV.LC_DOWNPAYMENT_INVESTMENT_AM, LCV.LC_DOWNPAYMENT_INVESTMENT_AM_EUR FROM
(LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE LCV LEFT JOIN
LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_DEPRECIATION LCD ON
((LCV.LEASE_CONTRACT_VEHICLE_ID = LCD.LEASE_CONTRACT_VEHICLE_ID)));
\echo -n .

\echo 'done(3 views).'

-- Load Statistics.
-- Template of stats output, fields are separated by TABs.
-- relname, relrefs, reltuples, relpages, attnum, attname, datatype, attdispersion,
staop, stanullfrac, stacommonfrac, starecent, stacommonval, staloval, stahival
--
\echo -n 'Updating Statistics'

------------- LPGR_DMA_ENTITY_REPORT.CHARACTERISTICS -------------

-- LPGR_DMA_ENTITY_REPORT.CHARACTERISTICS f 0 579 1 1
CHARACTERISTIC_ID INTEGER -1 97 0 0 85 -3
999992584 0 0 10305056 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 579,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-3 ', '999992584 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CHARACTERISTICS f 0 579 1 2
CHARACTERISTIC_TYPE_ID INTEGER 0.00636943 97 0 0 85
0 1064 0 0
10305056 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00636943 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '1064 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CHARACTERISTICS f 0 579 1 3
CHARACTERISTIC_TYPE_DESC NATIONAL CHARACTER VARYING(125) 0.00625
1022 0.00345423 0 85 Activation type Lease contract
Year Country ISO 3
67 12180 10305056 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00625 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0.00345423 as float)),
(CAST(0 as float)), '85', '',
'Activation type Lease contract
', 'Year Country ISO 3
', 67, 12180
);

-- LPGR_DMA_ENTITY_REPORT.CHARACTERISTICS f 0 579 1 4
CHARACTERISTIC_MAIN_CODE NATIONAL CHARACTER VARYING(125) 0.00420168
1022 0 0 85
Z
22 6831 10305056 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00420168 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Z
', 22, 6831
);

-- LPGR_DMA_ENTITY_REPORT.CHARACTERISTICS f 0 579 1 5
CHARACTERISTIC_SUB_CODE NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 -
Service Not Supplied
22 1772 10305056 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-
', 'Service Not Supplied
', 22, 1772
);

-- LPGR_DMA_ENTITY_REPORT.CHARACTERISTICS f 0 579 1 6
CHARACTERISTIC_DESC NATIONAL CHARACTER VARYING(125) 0.00338983 1022
0 0 85 AGCO Corporation
Φίλτρο λαδιού
48 11706 10305056 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00338983 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'AGCO Corporation
', 'Φίλτρο λαδιού
', 48, 11706
);

-- LPGR_DMA_ENTITY_REPORT.CHARACTERISTICS f 0 579 1 7
CHARACTERISTIC_CONS NATIONAL CHARACTER VARYING(125) 0.0666667 1022
0 0 85 B2B
UCL
32 8693 10305056 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0666667 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'B2B
', 'UCL
', 32, 8693
);

-- LPGR_DMA_ENTITY_REPORT.CHARACTERISTICS f 0 579 1 8 LOAD_DATE


DATE 1 1095 0 0 85 2021-12-06
2021-12-06
0 0 10305056 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2021-12-06
', '2021-12-06
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CHARACTERISTICS f 0 579 1 9
ORGANISATION_CODE CHARACTER(4) 0.333333 1058 0 0 85
LPGP
N/AV
0 0 10305056 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'LPGP
', 'N/AV
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.CUSTOMER_MIDAS_DATA -------------

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_MIDAS_DATA f 0 0 10 1
MIDAS_DATA_ID BIGINT 0 412 0 0 16554
0 0 10305057 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 10
WHERE
oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_MIDAS_DATA f 0 0 10 2
LOCAL_KEY_MIDAS_DATA NATIONAL CHARACTER VARYING(125) 0 1022 0
0 16554

0 0 10305057 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_MIDAS_DATA f 0 0 10 3
CUSTOMER_ID BIGINT 0 412 0 0 16554
0 0 10305057 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_MIDAS_DATA f 0 0 10 4
CH_CLIENT_STATUS_ID INTEGER 0 97 0 0 16554
0 0 10305057 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_MIDAS_DATA f 0 0 10 5
CLIENT_STATUS_REMARKS NATIONAL CHARACTER VARYING(125) 0 1022 0
0 16554

0 0 10305057 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_MIDAS_DATA f 0 0 10 6
TOTAL_CVFLEET_POTENTIAL NUMERIC(6,0) 0 1754 0 0 16554
0 0 10305057
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_MIDAS_DATA f 0 0 10 7
REALISTIC_CVFLEET_POTENTIAL NUMERIC(6,0) 0 1754 0 0 16554

0 0 10305057 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_MIDAS_DATA f 0 0 10 8
CURRENT_YEAR_CVFLEET_POTENTIAL NUMERIC(6,0) 0 1754 0 0
16554
0 0 10305057 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_MIDAS_DATA f 0 0 10 9
LOAD_DATE DATE 0 1095 0 0 16554

0 0 10305057 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_MIDAS_DATA f 0 0 10 10
CH_INTERNATIONALCUSTOMERSTATUS INTEGER 0 97 0 0 16554
0 0
10305057 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA -------------

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 1
CUSTOMER_SLA_ID BIGINT -1 412 0 0 85 0
0 0 0 10305058 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 1,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 2 CUSTOMER_ID
BIGINT 1 412 0 0 85 0
0 0 0 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 3 PRODUCT_ID
BIGINT 1 412 0 0 85 0
0 0 0 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 4
CH_DATA_EXTRACT_METH_AGREED_ID INTEGER 1 97 0 0 85
999990408 999990408 0 0
10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990408 ', '999990408 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 5
CH_REGISTRATION_STAT_AGREED_ID INTEGER 1 97 0 0 85
999990420 999990420 0 0
10305058 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990420 ', '999990420 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 6
CH_SALE_CHANNEL_ID INTEGER 1 97 0 0 85
999990421 999990421 0 0
10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990421 ', '999990421 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 7
CH_SALES_SUB_CHANNEL_ID INTEGER 1 97 0 0 85
999990422 999990422 0 0
10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990422 ', '999990422 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 8
CH_WINTER_TYRES_AGREED_ID INTEGER 1 97 0 0 85
999990432 999990432 0 0
10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990432 ', '999990432 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 9
CH_QUOTATION_MEDIUM_AGREED_ID INTEGER 1 97 0 0 85
999990446 999990446 0 0
10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990446 ', '999990446 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 10
CH_PURCHASE_OPTION_AGREED_ID INTEGER 1 97 0 0 85
999990445 999990445 0 0
10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990445 ', '999990445 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 11
CH_LEASEPLAN_BRAND_ID INTEGER 1 97 0 0 85
999990449 999990449 0 0
10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990449 ', '999990449 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 12
LOCAL_KEY_CUSTOMER_SLA NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 13
CUSTOMER_SLA_NUMBER NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 14
PROFIT_SHARING_PERCENTAGE NUMERIC(6,3) 1 1754 0 0 85
0.000 0.000
0 0 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 15
INVOICE_PAYMENT_TERM NUMERIC(3,0) 1 1754 0 0 85
0 0
0 0 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 16
DIRECT_DEBIT_APPLICABLE CHARACTER(1) 1 1058 0 0 85

0 0 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 17
CAR_COLLECTION_INCLUDED INTEGER 1 97 0 0 85 0
0 0 0 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 18
INTEREST_MARGIN NUMERIC(6,3) 1 1754 0 0 85 0.000
0.000 0 0 10305058
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 19
ACCOUNT_MANAGER_NUMBER NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 20
ACCOUNT_MANAGER_NAME NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 21
ACCOUNT_EXECUTIVE_NUMBER NATIONAL CHARACTER VARYING(125) 1 1022
0 0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 22
ACCOUNT_EXECUTIVE_NAME NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 23
ACCOUNT_COORDINATOR_NUMBER NATIONAL CHARACTER VARYING(125) 1 1022
0 0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
23, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 24
ACCOUNT_COORDINATOR_NAME NATIONAL CHARACTER VARYING(125) 1 1022
0 0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
24, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 25
ACCOUNT_SUPPORT_NUMBER NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
25, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 26
ACCOUNT_SUPPORT_NAME NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
26, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 27
SALES_MANAGER_NUMBER NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
27, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 28
SALES_MANAGER_NAME NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
28, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 29
SALES_EXECUTIVE_NUMBER NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
29, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 30
SALES_EXECUTIVE_NAME NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
30, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 31
SALES_COORDINATOR_NUMBER NATIONAL CHARACTER VARYING(125) 1 1022
0 0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 31 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 31 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
31, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 32
SALES_COORDINATOR_NAME NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 32 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 32 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
32, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 33
SALES_SUPPORT_NUMBER NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 33 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 33 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
33, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 34
SALES_SUPPORT_NAME NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 Error in delivery
Error in delivery
19 19 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 34 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 34 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
34, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 35 LOAD_DATE
DATE 1 1095 0 0 85 2021-12-06
2021-12-06
0 0 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 35 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 35 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
35, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2021-12-06
', '2021-12-06
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 36
CH_FINANCIAL_SETTLEMENT_ID INTEGER 1 97 0 0 85
999990633 999990633 0 0
10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 36 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 36 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
36, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990633 ', '999990633 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 37
MIN_NUMBER_OF_OBJECTS_IN_FS NUMERIC(3,0) 1 1754 0 0 85
0 0
0 0 10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 37 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 37 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
37, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.CUSTOMER_SLA f 0 1 1 38
CH_MVA_SETTLEMENT_TYPE_ID INTEGER 1 97 0 0 85
999990762 999990762 0 0
10305058 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 38 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 38 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
38, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990762 ', '999990762 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.D_ORG -------------

-- LPGR_DMA_ENTITY_REPORT.D_ORG f 0 1 1 1 ORG_KEY BIGINT


1 412 0 0 85 275 275
0 0 10305059 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 1,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'275 ', '275 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.D_ORG f 0 1 1 2 ORGANISATION_CODE
CHARACTER(4) 1 1058 0 0 85 LPGR
LPGR
0 0 10305059 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'LPGR
', 'LPGR
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.D_ORG f 0 1 1 3
LP_ORGANISATION_NAME NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 LeasePlan Greece
LeasePlan Greece
18 18 10305059 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'LeasePlan Greece
', 'LeasePlan Greece
', 18, 18
);

-- LPGR_DMA_ENTITY_REPORT.D_ORG f 0 1 1 4 LP_REGION_NAME
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85

2 2 10305059 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 2, 2
);

-- LPGR_DMA_ENTITY_REPORT.D_ORG f 0 1 1 5 CURRENCY_CODE
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 EUR
EUR
5 5 10305059 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'EUR
', 'EUR
', 5, 5
);

-- LPGR_DMA_ENTITY_REPORT.D_ORG f 0 1 1 6 DISTANCE_UNIT_DESC
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85
Kilometers
Kilometers
12 12 10305059 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Kilometers
', 'Kilometers
', 12, 12
);

-- LPGR_DMA_ENTITY_REPORT.D_ORG f 0 1 1 7 DISTANCE_UNIT
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 km
km
4 4 10305059 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'km
', 'km
', 4, 4
);

-- LPGR_DMA_ENTITY_REPORT.D_ORG f 0 1 1 8 VOLUME_UNIT
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 l
l
3 3 10305059 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'l
', 'l
', 3, 3
);

-- LPGR_DMA_ENTITY_REPORT.D_ORG f 0 1 1 9 VOLUME_UNIT_DESC
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 Litres
Litres
8 8 10305059 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Litres
', 'Litres
', 8, 8
);

-- LPGR_DMA_ENTITY_REPORT.D_ORG f 0 1 1 10 LAST_EXTRACT_DATE
DATE 1 1095 0 0 85 2000-01-01
2000-01-01
0 0 10305059 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.D_ORG f 0 1 1 11 LOAD_DATE DATE


1 1095 0 0 85 2021-12-06
2021-12-06
0 0 10305059 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2021-12-06
', '2021-12-06
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.D_ORG f 0 1 1 12 LAST_TRN_ID
CHARACTER(10) 1 1058 0 0 85 GRTRN1000
GRTRN1000
0 0 10305059 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'GRTRN1000
', 'GRTRN1000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.D_ORG f 0 1 1 13
EXCHANGE_RATE_TO_EURO NUMERIC(15,7) 1 1754 0 0 85
1.0000000 1.0000000
0 0 10305059 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1.0000000 ', '1.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.D_ORG f 0 1 1 14 REPORT_PERIOD
NUMERIC(6,0) 1 1754 0 0 85 202110
202110 0 0 10305059
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'202110 ', '202110
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.D_TIME -------------

-- LPGR_DMA_ENTITY_REPORT.D_TIME f 0 36892 11 1 DATE DATE -1


1095 0 0 341 0001-01-01
9999-12-31
0 0 10305060 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 36892,
relrefs = 0,
relpages = 11
WHERE
oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.D_TIME f 0 36892 11 2 YEAR INTEGER


0.00970874 97 0 0 341 1 9999
0 0 10305060 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00970874 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1 ', '9999 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.D_TIME f 0 36892 11 3 MONTH INTEGER


0.0833333 97 0 0 341 1 12
0 0 10305060 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0833333 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1 ', '12 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.D_TIME f 0 36892 11 4 MONTH_DESC


NATIONAL CHARACTER VARYING(125) 0.0833333 1022 0 0 341
April
September
11 300643 10305060 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0833333 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'April
', 'September
', 11, 300643
);

-- LPGR_DMA_ENTITY_REPORT.D_TIME f 0 36892 11 5 LOAD_DATE DATE


1 1095 0 0 341 2021-12-06
2021-12-06
0 0 10305060 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2021-12-06
', '2021-12-06
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.D_TIME f 0 36892 11 6 PERIOD


NUMERIC(6,0) 0.000823723 1754 0 0 341 101
999912 0 0 10305060
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000823723 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'101 ', '999912
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.D_TIME f 0 36892 11 7 WEEK INTEGER


0.0188679 97 0 0 341 1 53
0 0 10305060 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0188679 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1 ', '53 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM -------------

-- LPGR_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM f 0 0 0 1
ADDL_INSURANCE_COVER_ITEM_ID BIGINT -1 412 0 0 16554
0 0 10305061 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM f 0 0 0 2
LOCAL_KEY_ADDL_INSCOVER_ITEM NATIONAL CHARACTER VARYING(125) 0.0277778
1022 0 0 16554

0 0 10305061 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0277778 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM f 0 0 0 3
INSURANCE_COVER_ID BIGINT 0.111111 412 0 0 16554
0 0 10305061 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM f 0 0 0 4
CH_INSCOVERITEM_CATEGORY_ID INTEGER 0.5 97 0 0 16554
0 0 10305061 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM f 0 0 0 5
CH_INSCOVERITEM_SUBCATEGORY_ID INTEGER 0.166667 97 0 0
16554 0
0 10305061 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM f 0 0 0 6
CH_INSCOVER_ITEM_DATA_TYPE_ID INTEGER 1 97 0 0 16554
0 0 10305061 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM f 0 0 0 7
INSCOVER_ITEM_AMOUNTVALUE NUMERIC(11,2) 0.125 1754 0 0 16554

0 0 10305061 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.125 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM f 0 0 0 8
INSCOVER_ITEM_AMOUNTVALUE_EUR NUMERIC(11,2) 0.125 1754 0 0 16554

0 0 10305061 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.125 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM f 0 0 0 9
INSCOVER_ITEM_NUMERICVALUE NUMERIC(17,5) 1 1754 0 0 16554

0 0 10305061 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM f 0 0 0 10
INSCOVER_ITEM_PERCENTAGEVALUE NUMERIC(6,3) 1 1754 0 0 16554

0 0 10305061 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM f 0 0 0 11
INSCOVER_ITEM_TEXTVALUE NATIONAL CHARACTER VARYING(125) 1 1022 0
0 16554

0 0 10305061 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM f 0 0 0 12
INSCOVER_ITEM_FLAGVALUE CHARACTER(1) 1 1058 0 0 16554

0 0 10305061 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_ADDL_INSURANCE_COVER_ITEM f 0 0 0 13
LOAD_DATE DATE 1 1095 0 0 16554

0 0 10305061 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_DETAIL -------------

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_DETAIL f 0 0 0 1
APPROVAL_DETAIL_ID BIGINT -1 412 0 0 16554
0 0 10305062 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_DETAIL f 0 0 0 2
LOCAL_KEY_APPROVAL_DETAIL NATIONAL CHARACTER VARYING(125) 2.84013e-06
1022 0 0 16554

0 0 10305062 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (2.84013e-06 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_DETAIL f 0 0 0 3
CH_MAINTENANCE_DESCRIPTION_ID INTEGER 0.0344828 97 0 0 16554
0 0
10305062 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0344828 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_DETAIL f 0 0 0 4
CH_RECORD_STATUS_ID INTEGER 0.333333 97 0 0 16554
0 0 10305062 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_DETAIL f 0 0 0 5
LEASE_SERVICE_ID INTEGER 0.0714286 97 0 0 16554
0 0 10305062 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0714286 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_DETAIL f 0 0 0 6
LEASE_CONTRACT_VEHICLE_ID BIGINT 3.36644e-05 412 0 0 16554
0 0
10305062 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.36644e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_DETAIL f 0 0 0 7
APPROVAL_HEADER_ID BIGINT 6.19648e-06 412 0 0 16554
0 0 10305062 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (6.19648e-06 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_DETAIL f 0 0 0 8
APPROVAL_NUMBER NATIONAL CHARACTER VARYING(125) 6.23982e-06 1022 0
0 16554

0 0 10305062 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (6.23982e-06 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_DETAIL f 0 0 0 9
APPROVAL_LINE_AMOUNT NUMERIC(11,2) 0.0001365 1754 0 0 16554

0 0 10305062 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0001365 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_DETAIL f 0 0 0 10
APPROVAL_PASSED_ON_LINE_AMOUNT NUMERIC(11,2) 0.000775194 1754 0
0 16554
0 0 10305062 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000775194 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_DETAIL f 0 0 0 11
LOAD_DATE DATE 1 1095 0 0 16554

0 0 10305062 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER -------------

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER f 0 2 1 1
APPROVAL_HEADER_ID BIGINT -1 412 0 0 85 0
999999999999999998 0 0 10305063 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 2,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '999999999999999998 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER f 0 2 1 2
CH_APPROVAL_TYPE_ID INTEGER 0.5 97 0 0 85
999990569 999991569 0 0
10305063 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990569 ', '999991569 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER f 0 2 1 3
CH_APPROVAL_JOB_STATUS_ID INTEGER 0.5 97 0 0 85
999990568 999991568 0 0
10305063 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990568 ', '999991568 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER f 0 2 1 4
LOCAL_KEY_APPROVAL_HEADER NATIONAL CHARACTER VARYING(125) 0.5 1022
0 0 85 Error in delivery
Not Applicable
19 35 10305063 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER f 0 2 1 5
SERVICE_AUTORISATION_ID BIGINT 1 412 0 0 85 0
0 0 0 10305063 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER f 0 2 1 6
LEASE_CONTRACT_VEHICLE_ID BIGINT 1 412 0 0 85
0 0 0 0
10305063 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER f 0 2 1 7
SUPPLIER_ID BIGINT 1 412 0 0 85 0
0 0 0 10305063 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER f 0 2 1 8
DAMAGE_ID BIGINT 1 412 0 0 85 0
0 0 0 10305063 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER f 0 2 1 9
APPROVAL_NUMBER NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0
85 Error in delivery
Not Applicable
19 35 10305063 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER f 0 2 1 10
IND_PASSED_ON CHARACTER(4) 1 1058 0 0 85

0 0 10305063 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER f 0 2 1 11
APPROVAL_BOOKED_AMOUNT NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 10305063 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER f 0 2 1 12
APPROVAL_AMOUNT NUMERIC(11,2) 1 1754 0 0 85 0.00
0.00 0 0 10305063
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER f 0 2 1 13
EXTRA_GOODWILL_AMOUNT NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 10305063 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER f 0 2 1 14
APPROVAL_CREATION_TIMESTAMP TIMESTAMP 1 1322 0 0 85
2000-01-01 00:00:00
2000-01-01 00:00:00
0 0 10305063 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1322, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01 00:00:00
', '2000-01-01 00:00:00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER f 0 2 1 15
APPROVAL_LAST_UPD_TIMESTAMP TIMESTAMP 1 1322 0 0 85
2000-01-01 00:00:00
2000-01-01 00:00:00
0 0 10305063 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1322, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01 00:00:00
', '2000-01-01 00:00:00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_APPROVAL_HEADER f 0 2 1 16
LOAD_DATE DATE 1 1095 0 0 85 2021-12-06
2021-12-06
0 0 10305063 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2021-12-06
', '2021-12-06
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_CALCULATION -------------

-- LPGR_DMA_ENTITY_REPORT.F_CALCULATION f 0 0 0 1
LEASE_CONTRACT_VEHICLE_ID BIGINT 2.62847e-05 412 0 0 16554
0 0
10305064 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (2.62847e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CALCULATION f 0 0 0 2
CALCULATION_DATE DATE 0.000400641 1095 0 0 16554

0 0 10305064 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000400641 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CALCULATION f 0 0 0 3
PROPOSAL_NUMBER NATIONAL CHARACTER VARYING(125) 4.57796e-06 1022 0
0 16554

0 0 10305064 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (4.57796e-06 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CALCULATION f 0 0 0 4 LOAD_DATE
DATE 1 1095 0 0 16554

0 0 10305064 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CALCULATION f 0 0 0 5
CALCULATION_ID BIGINT -1 412 0 0 16554
0 0 10305064 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CALCULATION f 0 0 0 6
LOCAL_KEY_CALCULATION NATIONAL CHARACTER VARYING(125) 4.5727e-06 1022
0 0 16554

0 0 10305064 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (4.5727e-06 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CALCULATION f 0 0 0 7
CH_CALCULATION_TYPE_ID INTEGER 0.0833333 97 0 0 16554
0 0 10305064 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0833333 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CALCULATION f 0 0 0 8
CH_QUOTATION_MEDIUM_TYPE_ID INTEGER 1 97 0 0 16554
0 0 10305064 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_CLAIM -------------

-- LPGR_DMA_ENTITY_REPORT.F_CLAIM f 0 0 10 1 CLAIM_ID BIGINT


0 412 0 0 16554
0 0 10305065 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 10
WHERE
oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CLAIM f 0 0 10 2 DAMAGE_ID BIGINT


0 412 0 0 16554
0 0 10305065 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CLAIM f 0 0 10 3 LOCAL_KEY_CLAIM
NATIONAL CHARACTER VARYING(125) 0 1022 0 0 16554

0 0 10305065 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CLAIM f 0 0 10 4 CH_CLAIM_TYPE_ID
INTEGER 0 97 0 0 16554
0 0 10305065 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CLAIM f 0 0 10 5 CH_CLAIM_STATUS_ID
INTEGER 0 97 0 0 16554
0 0 10305065 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CLAIM f 0 0 10 6 CLAIM_PAID_AMOUNT
NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305065
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CLAIM f 0 0 10 7
CLAIM_PAID_AMOUNT_EUR NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305065
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CLAIM f 0 0 10 8
CLAIM_RESERVE_AMOUNT NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305065
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CLAIM f 0 0 10 9
CLAIM_RESERVE_AMOUNT_EUR NUMERIC(11,2) 0 1754 0 0 16554

0 0 10305065 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CLAIM f 0 0 10 10
CLAIM_DEDUCTIBLE_AMOUNT NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305065
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CLAIM f 0 0 10 11
CLAIM_DEDUCTIBLE_AMOUNT_EUR NUMERIC(11,2) 0 1754 0 0 16554

0 0 10305065 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.F_CLAIM f 0 0 10 12
LOSS_EXPENSES_PAID_AMOUNT NUMERIC(11,2) 0 1754 0 0 16554

0 0 10305065 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CLAIM f 0 0 10 13
LOSS_EXPENSES_PAID_AMOUNT_EUR NUMERIC(11,2) 0 1754 0 0 16554

0 0 10305065 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CLAIM f 0 0 10 14 LOAD_DATE DATE


0 1095 0 0 16554

0 0 10305065 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_CONTACT_EVENTS -------------

-- LPGR_DMA_ENTITY_REPORT.F_CONTACT_EVENTS f 0 0 0 1
CONTACT_EVENT_ID BIGINT -1 412 0 0 16554
0 0 10305066 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CONTACT_EVENTS f 0 0 0 2
CUSTOMER_ID BIGINT 0.000616143 412 0 0 16554
0 0 10305066 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000616143 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CONTACT_EVENTS f 0 0 0 3
LEASEPLAN_ID BIGINT 0.0178571 412 0 0 16554
0 0 10305066 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0178571 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.F_CONTACT_EVENTS f 0 0 0 4
LOCAL_KEY_CONTACT_EVENT NATIONAL CHARACTER VARYING(125) 5.68214e-06 1022
0 0 16554

0 0 10305066 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (5.68214e-06 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.F_CONTACT_EVENTS f 0 0 0 5
EVENTDATE DATE 0.000449035 1095 0 0 16554

0 0 10305066 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000449035 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.F_CONTACT_EVENTS f 0 0 0 6
NUMBER_OF_CALLS INTEGER 1 97 0 0 16554
0 0 10305066 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CONTACT_EVENTS f 0 0 0 7
CH_CALL_TYPE_ID INTEGER 0.0178571 97 0 0 16554
0 0 10305066 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0178571 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CONTACT_EVENTS f 0 0 0 8
CH_OUTCOME_TYPE_ID INTEGER 0.2 97 0 0 16554
0 0 10305066 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CONTACT_EVENTS f 0 0 0 9
LOAD_DATE DATE 1 1095 0 0 16554

0 0 10305066 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_CUSTOMER_MONTHLY_INVOICED -------------

-- LPGR_DMA_ENTITY_REPORT.F_CUSTOMER_MONTHLY_INVOICED f 0 0 10 1
CUSTOMER_MONTHLY_INVOICED_ID BIGINT 0 412 0 0 16554
0 0 10305067 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 10
WHERE
oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CUSTOMER_MONTHLY_INVOICED f 0 0 10 2
LEASE_CONTRACT_VEHICLE_ID BIGINT 0 412 0 0 16554
0 0 10305067 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CUSTOMER_MONTHLY_INVOICED f 0 0 10 3
LOCAL_KEY_CUSTOMERMONTHLYINV NATIONAL CHARACTER VARYING(125) 0 1022
0 0 16554

0 0 10305067 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CUSTOMER_MONTHLY_INVOICED f 0 0 10 4
BOOK_PERIOD NUMERIC(6,0) 0 1754 0 0 16554
0 0 10305067
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CUSTOMER_MONTHLY_INVOICED f 0 0 10 5
TOTAL_INVOICED_AMOUNT NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305067
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CUSTOMER_MONTHLY_INVOICED f 0 0 10 6
TOTAL_INVOICED_AMOUNT_EUR NUMERIC(11,2) 0 1754 0 0 16554

0 0 10305067 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_CUSTOMER_MONTHLY_INVOICED f 0 0 10 7
LOAD_DATE DATE 0 1095 0 0 16554

0 0 10305067 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_DAMAGE -------------

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 1
LEASE_CONTRACT_VEHICLE_ID BIGINT 1 412 0 0 85
0 0 0 0
10305068 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 2,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 2 DAMAGE_NUMBER
NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0 85 Error
in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 3 DAMAGE_AMOUNT
NUMERIC(11,2) 1 1754 0 0 85 0.00
0.00 0 0 10305068
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 4 DAMAGE_AMOUNT_EUR
NUMERIC(11,2) 1 1754 0 0 85 0.00
0.00 0 0 10305068
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 5
DAMAGE_RECOVERED_AMOUNT NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 6
DAMAGE_RECOVERED_AMOUNT_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 7 LOAD_DATE DATE
1 1095 0 0 85 2021-12-06
2021-12-06
0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2021-12-06
', '2021-12-06
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 8 DAMAGE_DATE DATE


1 1095 0 0 85 2000-01-01
2000-01-01
0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 9 DAMAGE_ID BIGINT


-1 412 0 0 85 999999999999999998
999999999999999999 0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999999999999999998 ', '999999999999999999 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 10 LOCAL_KEY_DAMAGE
NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0 85 Error
in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 11 CH_DAMAGE_CAUSE_ID
INTEGER 1 97 0 0 85 0
0 0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 12
LOCAL_KEY_LP_EXPERT NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 13 LP_EXPERT_NUMBER
NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0 85 Error
in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 14 LP_EXPERT_NAME
NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0 85 Error
in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 15
LOCAL_KEY_DAMAGE_DRIVER NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 16
DAMAGE_DRIVER_NUMBER NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 17 DAMAGE_DRIVER_NAME
NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0 85 Error
in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 18
LOCAL_KEY_DAMGE_REPAIRSHOP NATIONAL CHARACTER VARYING(125) 0.5 1022
0 0 85 Error in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 19
DAMAGE_REPAIRSHOP_NUMBER NATIONAL CHARACTER VARYING(125) 0.5 1022
0 0 85 Error in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 20
DAMAGE_REPAIRSHOP_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 21
DAMAGE_REPAIRSHOP_ADDRESS NATIONAL CHARACTER VARYING(125) 0.5 1022
0 0 85 Error in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 22
LOCAL_KEY_DAMAGE_BROKER NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 23
DAMAGE_BROKER_NUMBER NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
23, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 24 DAMAGE_BROKER_NAME
NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0 85 Error
in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
24, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 25 OWN_RISK_AMOUNT
NUMERIC(11,2) 1 1754 0 0 85 0.00
0.00 0 0 10305068
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
25, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 26
OWN_RISK_AMOUNT_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
26, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 27
OWN_FAULT_INDICATOR CHARACTER(1) 1 1058 0 0 85

0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
27, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 28
CAR_TRANSPORTATION_REQUIRED CHARACTER(1) 1 1058 0 0 85

0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
28, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 29
CH_DAMAGE_CIRCUMSTANCE_ID INTEGER 0.5 97 0 0 85
999990532 999991532 0 0
10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
29, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990532 ', '999991532 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 30 CH_DAMAGE_AREA_ID
INTEGER 0.5 97 0 0 85 999990533
999991533 0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
30, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990533 ', '999991533 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 31
CH_DAMAGE_STATUS_ID INTEGER 0.5 97 0 0 85
999990534 999991534 0 0
10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 31 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 31 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
31, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990534 ', '999991534 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 32 ACCIDENT_ADDRESS
NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0 85 Error
in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 32 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 32 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
32, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 33
DAMAGE_CREATION_DATE DATE 1 1095 0 0 85 2000-01-01
2000-01-01
0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 33 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 33 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
33, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 34
DAMAGE_ASSESSMENT_DATE DATE 1 1095 0 0 85 2000-01-01
2000-01-01
0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 34 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 34 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
34, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 35
REPAIRSHOP_ENTRY_DATE DATE 1 1095 0 0 85 2000-01-01
2000-01-01
0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 35 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 35 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
35, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 36
DAMAGEREPAIR_BUDGETAPPR_DATE DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 36 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 36 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
36, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 37
DAMAGEREPAIR_START_DATE DATE 1 1095 0 0 85 2000-01-01
2000-01-01
0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 37 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 37 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
37, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 38
PLANNED_DAMAGEREPAIR_END_DATE DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 38 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 38 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
38, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 39
ACTUAL_DAMAGEREPAIR_END_DATE DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 39 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 39 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
39, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 40
DAMAGEREPAIR_DURATION NUMERIC(3,0) 1 1754 0 0 85
0 0
0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 40 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 40 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
40, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 41
CH_DAMAGE_CATEGORY_ID INTEGER 0.5 97 0 0 85
999990552 999991552 0 0
10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 41 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 41 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
41, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990552 ', '999991552 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 42
LOCAL_KEY_DRIVER_AT_ACCIDENT NATIONAL CHARACTER VARYING(125) 0.5 1022
0 0 85 Error in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 42 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 42 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
42, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 43
DRIVER_AT_ACCIDENT_NUMBER NATIONAL CHARACTER VARYING(125) 0.5 1022
0 0 85 Error in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 43 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 43 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
43, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 44
DRIVER_AT_ACCIDENT_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 44 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 44 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
44, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 45 AT_FAULT_INDICATOR
CHARACTER(1) 1 1058 0 0 85

0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 45 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 45 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
45, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 46
CH_DAMAGE_FILE_STATUS_ID INTEGER 0.5 97 0 0 85
999990534 999991534 0 0
10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 46 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 46 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
46, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990534 ', '999991534 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 47
DAMAGE_NOTIFICATION_DATE DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 47 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 47 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
47, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 48
CH_OD_ACCIDENT_TYPE_ID INTEGER 1 97 0 0 85
999992578 999992578 0 0
10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 48 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 48 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
48, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999992578 ', '999992578 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 49
CH_TPL_ACCIDENT_TYPE_ID INTEGER 1 97 0 0 85
999992580 999992580 0 0
10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 49 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 49 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
49, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999992580 ', '999992580 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 50
MILEAGE_AT_DAMAGEEVENTMOMENT NUMERIC(7,0) 1 1754 0 0 85
0 0
0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 50 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 50 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
50, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 51
BODILY_INJURY_INDICATOR CHARACTER(1) 1 1058 0 0 85

0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 51 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 51 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
51, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 52 DAMAGE_DESCRIPTION
NATIONAL CHARACTER VARYING(500) 0.5 1022 0 0 85 Error
in delivery
Not Applicable
19 35 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 52 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 52 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
52, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Applicable
', 19, 35
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 53
RECOVERABLE_INDICATOR CHARACTER(1) 1 1058 0 0 85

0 0 10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 53 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 53 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
53, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_DAMAGE f 0 2 1 54
CH_LEGAL_LIABILITY_TYPE_ID INTEGER 0.5 97 0 0 85
999990760 999991760 0 0
10305068 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 54 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 54 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
54, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990760 ', '999991760 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_EARNED_INSURANCE_PREMIUM -------------

-- LPGR_DMA_ENTITY_REPORT.F_EARNED_INSURANCE_PREMIUM f 0 0 0 1
EARNED_PREMIUN_ID BIGINT -1 412 0 0 16554
0 0 10305070 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_EARNED_INSURANCE_PREMIUM f 0 0 0 2
LOCAL_KEY_EARNED_PREMIUM NATIONAL CHARACTER VARYING(125) 0.0333333
1022 0 0 16554

0 0 10305070 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0333333 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_EARNED_INSURANCE_PREMIUM f 0 0 0 3
INSURANCE_COVER_ID BIGINT 0.0555556 412 0 0 16554
0 0 10305070 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0555556 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_EARNED_INSURANCE_PREMIUM f 0 0 0 4
CH_COVER_TYPE_ID INTEGER 0.5 97 0 0 16554
0 0 10305070 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_EARNED_INSURANCE_PREMIUM f 0 0 0 5
START_DATE_EARNED_PREMIUM DATE 0.125 1095 0 0 16554

0 0 10305070 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.125 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_EARNED_INSURANCE_PREMIUM f 0 0 0 6
END_DATE_EARNED_PREMIUM DATE 0.0714286 1095 0 0 16554

0 0 10305070 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0714286 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_EARNED_INSURANCE_PREMIUM f 0 0 0 7
EARNED_PREMIUM_AMOUNT NUMERIC(11,2) 0.0769231 1754 0 0 16554

0 0 10305070 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0769231 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_EARNED_INSURANCE_PREMIUM f 0 0 0 8
EARNED_PREMIUM_AM_EUR NUMERIC(11,2) 0.0769231 1754 0 0 16554

0 0 10305070 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0769231 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_EARNED_INSURANCE_PREMIUM f 0 0 0 9
STOP_LOSS_EARNED_AMOUNT NUMERIC(11,2) 1 1754 0 0 16554
0 0 10305070
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_EARNED_INSURANCE_PREMIUM f 0 0 0 10
STOP_LOSS_EARNED_AMOUNT_EUR NUMERIC(11,2) 1 1754 0 0 16554

0 0 10305070 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_EARNED_INSURANCE_PREMIUM f 0 0 0 11
LOAD_DATE DATE 1 1095 0 0 16554

0 0 10305070 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_FINAL_TOTALS -------------

-- LPGR_DMA_ENTITY_REPORT.F_FINAL_TOTALS f 0 0 10 1
FINAL_TOTALS_ID BIGINT 0 412 0 0 16554
0 0 10305071 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 10
WHERE
oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_FINAL_TOTALS f 0 0 10 2
LOCAL_KEY_FINAL_TOTALS NATIONAL CHARACTER VARYING(125) 0 1022 0
0 16554
0 0 10305071 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_FINAL_TOTALS f 0 0 10 3 BOOKPERIOD
DATE 0 1095 0 0 16554
0 0 10305071 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_FINAL_TOTALS f 0 0 10 4 COST_AMOUNT
NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305071
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_FINAL_TOTALS f 0 0 10 5
CUMULATIVE_COST NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305071
10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_FINAL_TOTALS f 0 0 10 6
INVOICED_AMOUNT NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305071
10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_FINAL_TOTALS f 0 0 10 7
CUMULATIVE_INVOICED NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305071
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_FINAL_TOTALS f 0 0 10 8
PREPAID_AMOUNT NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305071
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_FINAL_TOTALS f 0 0 10 9
CUMULATIVE_PREPAID NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305071
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_FINAL_TOTALS f 0 0 10 10
LEASE_CONTRACT_ID BIGINT 0 412 0 0 16554
0 0 10305071 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_FINAL_TOTALS f 0 0 10 11
CH_REPORTTYPE_ID INTEGER 0 97 0 0 16554
0 0 10305071 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_FINAL_TOTALS f 0 0 10 12
CH_SERVICE_ID INTEGER 0 97 0 0 16554
0 0 10305071 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_FINAL_TOTALS f 0 0 10 13
CH_LEASE_CONTRACT_STATUS_ID INTEGER 0 97 0 0 16554
0 0 10305071 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_FINAL_TOTALS f 0 0 10 14 LOAD_DATE
DATE 0 1095 0 0 16554

0 0 10305071 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER -------------

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 1
INSURANCE_COVER_ID BIGINT -1 412 0 0 16554
0 0 10305072 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 2
LOCAL_KEY_INSURANCE_COVER NATIONAL CHARACTER VARYING(125) 0.0104167
1022 0 0 16554
0 0 10305072 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0104167 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 3
INSURANCE_AGREEMENT_ID BIGINT 0.5 412 0 0 16554
0 0 10305072 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 4
INSURER_ID BIGINT 1 412 0 0 16554
0 0 10305072 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 5
LEASE_CONTRACT_VEHICLE_ID BIGINT 0.011236 412 0 0 16554
0 0
10305072 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.011236 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 6
CH_COVER_TYPE_ID INTEGER 0.333333 97 0 0 16554
0 0 10305072 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 7
CH_PREMIUM_PERIOD_TYPE_ID INTEGER 1 97 0 0 16554
0 0 10305072 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 8
VEHICLE_REMOVED_DATE DATE 0.111111 1095 0 0 16554

0 0 10305072 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 9
VEHICLE_ADDED_DATE DATE 0.0833333 1095 0 0 16554

0 0 10305072 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0833333 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 10
MULTI_YEAR_COVER_INDICATOR CHARACTER(1) 1 1058 0 0 16554

0 0 10305072 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 11
GROSS_WRITTEN_PREMIUM_AM NUMERIC(11,2) 0.5 1754 0 0 16554

0 0 10305072 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 12
GROSS_WRITTEN_PREMIUM_AM_EUR NUMERIC(11,2) 0.5 1754 0 0 16554

0 0 10305072 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 13
PREMIUM_MARGIN_AM NUMERIC(11,2) 1 1754 0 0 16554
0 0 10305072
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 14
PREMIUM_MARGIN_AM_EUR NUMERIC(11,2) 1 1754 0 0 16554
0 0 10305072
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 15
STOP_LOSS_WRITTEN_AM NUMERIC(11,2) 1 1754 0 0 16554
0 0 10305072
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 16
STOP_LOSS_WRITTEN_AM_EUR NUMERIC(11,2) 1 1754 0 0 16554

0 0 10305072 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 17
VEHICLE_WRITE_OFF_INDICATOR CHARACTER(1) 1 1058 0 0 16554

0 0 10305072 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 18
AGGREGATE_DEDUCTABLE_INDICATOR CHARACTER(1) 1 1058 0 0
16554

0 0 10305072 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 19
FIXED_PREMIUM_DURATION NUMERIC(2,0) 1 1754 0 0 16554
0 0 10305072
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 20
CLAIM_FRANCHISE_AM NUMERIC(11,2) 1 1754 0 0 16554
0 0 10305072
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 21
CLAIM_FRANCHISE_AM_EUR NUMERIC(11,2) 1 1754 0 0 16554
0 0 10305072
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INSURANCE_COVER f 0 0 0 22
LOAD_DATE DATE 1 1095 0 0 16554

0 0 10305072 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_INVOICE_PAYMENT_DETAILS -------------

-- LPGR_DMA_ENTITY_REPORT.F_INVOICE_PAYMENT_DETAILS f 0 0 0 1
INVOICE_PAYMENTS_ID BIGINT -1 412 0 0 16554
0 0 10305073 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;
UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INVOICE_PAYMENT_DETAILS f 0 0 0 2
INVOICE_ID BIGINT 1 412 0 0 16554
0 0 10305073 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INVOICE_PAYMENT_DETAILS f 0 0 0 3
DEBTOR_ID BIGINT 0.000401284 412 0 0 16554
0 0 10305073 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000401284 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INVOICE_PAYMENT_DETAILS f 0 0 0 4
LOCAL_KEY_INVOICE_PAYMENTS NATIONAL CHARACTER VARYING(125) 2.56581e-05
1022 0 0 16554

0 0 10305073 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (2.56581e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INVOICE_PAYMENT_DETAILS f 0 0 0 5
BOOKPERIOD DATE 0.0212766 1095 0 0 16554

0 0 10305073 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0212766 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INVOICE_PAYMENT_DETAILS f 0 0 0 6
PAYED_AMOUNT NUMERIC(11,2) 4.70588e-05 1754 0 0 16554
0 0 10305073
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (4.70588e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INVOICE_PAYMENT_DETAILS f 0 0 0 7
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125) 1 1022 0 0
16554

0 0 10305073 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_INVOICE_PAYMENT_DETAILS f 0 0 0 8
LOAD_DATE DATE 1 1095 0 0 16554

0 0 10305073 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_KPI -------------

-- LPGR_DMA_ENTITY_REPORT.F_KPI f 0 0 0 1 KPI_ID BIGINT


-1 412 0 0 16554
0 0 10305074 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.F_KPI f 0 0 0 2 LOCAL_KEY_KPI
NATIONAL CHARACTER VARYING(125) 0.00746269 1022 0 0 16554

0 0 10305074 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00746269 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_KPI f 0 0 0 3 PERIOD DATE


1 1095 0 0 16554

0 0 10305074 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_KPI f 0 0 0 4 VALUE
NUMERIC(11,2) 0.0108696 1754 0 0 16554
0 0 10305074
10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0.0108696 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_KPI f 0 0 0 5 INVOLVED_PARTY_ID
BIGINT 0.0357143 412 0 0 16554
0 0 10305074 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0357143 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_KPI f 0 0 0 6 CH_KPI_ID
INTEGER 0.125 97 0 0 16554
0 0 10305074 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.125 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_KPI f 0 0 0 7 CH_PERIOD_TYPE_ID
INTEGER 1 97 0 0 16554
0 0 10305074 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_KPI f 0 0 0 8 CH_VALUE_TYPE_ID
INTEGER 0.5 97 0 0 16554
0 0 10305074 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_KPI f 0 0 0 9 LOAD_DATE DATE


1 1095 0 0 16554

0 0 10305074 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_LC_STATUS_REGISTRATION_HIST -------------

-- LPGR_DMA_ENTITY_REPORT.F_LC_STATUS_REGISTRATION_HIST f 0 2 1
1 LEASE_CONTRACT_VEHICLE_ID BIGINT 0.5 412 0 0 85
2171462421 2171462473 0 0
10305075 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 2,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2171462421 ', '2171462473 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_LC_STATUS_REGISTRATION_HIST f 0 2 1
2 EFFECTIVE_START_DATE DATE 1 1095 0 0 85 2017-
05-01
2017-05-01
0 0 10305075 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2017-05-01
', '2017-05-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_LC_STATUS_REGISTRATION_HIST f 0 2 1
3 CH_LEASE_CONTRACT_STATUS_ID INTEGER 1 97 0 0 85
1546 1546 0 0
10305075 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1546 ', '1546 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_LC_STATUS_REGISTRATION_HIST f 0 2 1
4 EFFECTIVE_END_DATE DATE 1 1095 0 0 85 9999-
12-31
9999-12-31
0 0 10305075 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'9999-12-31
', '9999-12-31
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_LEASE_CONTRACT_STATUS_HIST -------------

-- LPGR_DMA_ENTITY_REPORT.F_LEASE_CONTRACT_STATUS_HIST f 0 70 1
1 LEASE_CONTRACT_VEHICLE_ID BIGINT 0.5 412 0 0 85
2171462421 2171462473 0 0
10305076 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 70,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2171462421 ', '2171462473 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.F_LEASE_CONTRACT_STATUS_HIST f 0 70 1
2 CUSTOMER_ID BIGINT 1 412 0 0 85 0
0 0 0 10305076 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_LEASE_CONTRACT_STATUS_HIST f 0 70 1
3 STATUS_PERIOD_DATE DATE 0.0285714 1095 0 0 85
2017-05-31
2020-03-31
0 0 10305076 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0285714 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2017-05-31
', '2020-03-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_LEASE_CONTRACT_STATUS_HIST f 0 70 1
4 LOAD_DATE DATE 1 1095 0 0 85 2021-12-06
2021-12-06
0 0 10305076 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2021-12-06
', '2021-12-06
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_LEASE_CONTRACT_STATUS_HIST f 0 70 1
5 LEASE_CONTRACT_PERIOD_STATUS NATIONAL CHARACTER VARYING(125) 1
1022 0 0 85 Unreliable
Unreliable
12 840 10305076 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Unreliable
', 'Unreliable
', 12, 840
);
------------- LPGR_DMA_ENTITY_REPORT.F_LP_ENTITY_LC_STATUS_HIST -------------

-- LPGR_DMA_ENTITY_REPORT.F_LP_ENTITY_LC_STATUS_HIST f 0 35 1 1
PERIOD_DATE DATE 0.0285714 1095 0 0 85 2017-05-31
2020-03-31
0 0 10305077 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 35,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0285714 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2017-05-31
', '2020-03-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_LP_ENTITY_LC_STATUS_HIST f 0 35 1 2
LOAD_DATE DATE 1 1095 0 0 85 2021-12-06
2021-12-06
0 0 10305077 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2021-12-06
', '2021-12-06
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_LP_ENTITY_LC_STATUS_HIST f 0 35 1 3
LEASE_CONTRACT_STATUS NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 Unreliable
Unreliable
12 420 10305077 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Unreliable
', 'Unreliable
', 12, 420
);

-- LPGR_DMA_ENTITY_REPORT.F_LP_ENTITY_LC_STATUS_HIST f 0 35 1 4
LP_ENTITY_LC_STATUS_HIST_KEY NATIONAL CHARACTER VARYING(125) -1 1022
0 0 85 2017-05-31_Unreliable
2020-03-31_Unreliable
23 805 10305077 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2017-05-31_Unreliable
', '2020-03-31_Unreliable
', 23, 805
);

-- LPGR_DMA_ENTITY_REPORT.F_LP_ENTITY_LC_STATUS_HIST f 0 35 1 5
NUMBER_OF_LEASE_CONTRACTS BIGINT 1 412 0 0 85
2 2 0 0
10305077 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2 ', '2 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE -------------

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 1
LEASE_CONTRACT_VEHICLE_ID BIGINT 2.31166e-05 412 0 0 16554
0 0
10305079 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (2.31166e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 2
LEASE_SERVICE_ID INTEGER 0.0555556 97 0 0 16554
0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0555556 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 3
START_DATE_MANAGED_SERVICE DATE 0.000325309 1095 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000325309 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 4
END_DATE_MANAGED_SERVICE DATE 0.000567859 1095 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000567859 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 5
SERVICE_CHARGE NUMERIC(11,2) 4.57813e-05 1754 0 0 16554
0 0 10305079
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (4.57813e-05 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 6
SERVICE_CHARGE_EUR NUMERIC(11,2) 4.57813e-05 1754 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (4.57813e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 7
SERVICE_CHARGE_SLA_MARGIN NUMERIC(11,2) 1 1754 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 8
SERVICE_CHARGE_SLA_MARGIN_EUR NUMERIC(11,2) 1 1754 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 9
SERVICE_CHARGE_LC_MARGIN NUMERIC(11,2) 0.000123487 1754 0 0
16554
0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000123487 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 10
SERVICE_CHARGE_LC_MARGIN_EUR NUMERIC(11,2) 0.000123487 1754 0 0
16554
0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000123487 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 11
SERV_CHARGE_MVA_OVER_MIL NUMERIC(17,7) 0.0014245 1754 0 0
16554
0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0014245 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 12
SERV_CHARGE_MVA_OVER_MIL_EUR NUMERIC(17,7) 0.0014245 1754 0 0
16554
0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0014245 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 13
SERVICE_REPAY_MVA_UNDER_MIL NUMERIC(17,7) 0.00195312 1754 0 0
16554
0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00195312 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 14
SERV_REPAY_MVA_UNDER_MIL_EUR NUMERIC(17,7) 0.00195312 1754 0 0
16554
0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00195312 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 15
RESIDUAL_VALUE NUMERIC(11,2) 9.08265e-05 1754 0 0 16554
0 0 10305079
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (9.08265e-05 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 16
RESIDUAL_VALUE_EUR NUMERIC(11,2) 9.08265e-05 1754 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (9.08265e-05 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 17
RESIDUAL_VALUE_SLA_MARGIN NUMERIC(11,2) 1 1754 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 18
RESIDUAL_VALUE_SLA_MARGIN_EUR NUMERIC(11,2) 1 1754 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 19
RESIDUAL_VALUE_LC_MARGIN NUMERIC(11,2) 0.000112233 1754 0 0
16554
0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000112233 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 20
RESIDUAL_VALUE_LC_MARGIN_EUR NUMERIC(11,2) 0.000112233 1754 0 0
16554
0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000112233 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 21
INTEREST_PERCENTAGE NUMERIC(6,3) 0.00137363 1754 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00137363 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 22
INTEREST_PERCENTAGE_SLA_MARGIN NUMERIC(6,3) 0.00296736 1754 0
0 16554
0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00296736 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 23
INTEREST_PERCENTAGE_LC_MARGIN NUMERIC(6,3) 0.00156986 1754 0 0
16554
0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00156986 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
23, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 24
INTEREST_FIXING_DATE DATE 0.000331126 1095 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000331126 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
24, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 25
LOAD_DATE DATE 1 1095 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
25, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 26
MANAGED_SERVICE_ID BIGINT -1 412 0 0 16554
0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
26, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 27
LOCAL_KEY_MANAGED_SERVICE NATIONAL CHARACTER VARYING(125) 2.62719e-06
1022 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (2.62719e-06 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
27, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 28
CH_SERVICE_CHARGE_METHOD_ID INTEGER 1 97 0 0 16554
0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
28, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 29
SERV_CHARGE_FORMAL_EXT NUMERIC(11,2) 1 1754 0 0 16554
0 0 10305079
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
29, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 30
SERV_CHARGE_FORMAL_EXT_EUR NUMERIC(11,2) 1 1754 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
30, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 31
CALCULATION_VERSION CHARACTER(1) 1 1058 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 31 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 31 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
31, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 32
LOCAL_KEY_SERVICE_SUPPLIER NATIONAL CHARACTER VARYING(125) 0.166667
1022 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 32 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 32 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
32, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 33
SERVICE_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125) 0.166667 1022
0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 33 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 33 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
33, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 34
SERVICE_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125) 0.166667 1022
0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 34 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 34 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
34, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 35
POLICY_NUMBER NATIONAL CHARACTER VARYING(125) 0.00029967 1022 0
0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00029967 as float))
WHERE
attnum = 35 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 35 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
35, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 36
POLICY_START_DATE DATE 0.000736377 1095 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000736377 as float))
WHERE
attnum = 36 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 36 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
36, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 37
POLICY_END_DATE DATE 0.0133333 1095 0 0 16554

0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0133333 as float))
WHERE
attnum = 37 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 37 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
37, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_MANAGED_SERVICE f 0 0 0 38
CH_INSURED_PARTY_TYPE_ID INTEGER 0.5 97 0 0 16554
0 0 10305079 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 38 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 38 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
38, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT -------------

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
1 CUSTOMER_ID BIGINT 0.000219154 412 0 0 16554
0 0 10305080 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000219154 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
2 DEBTOR_ID BIGINT 0.00021978 412 0 0 16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00021978 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
3 BOOK_PERIOD_DATE DATE 0.0175439 1095 0 0 16554

0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0175439 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
4 TOTAL_DEBTOR_AMOUNT NUMERIC(11,2) 5.12295e-05 1754 0 0
16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (5.12295e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
5 TOTAL_DEBTOR_AMOUNT_EUR NUMERIC(11,2) 5.12295e-05 1754 0 0
16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (5.12295e-05 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
6 AGEING_BUCKET0_AMOUNT NUMERIC(11,2) 0.000291715 1754 0 0
16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000291715 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
7 AGEING_BUCKET0_AMOUNT_EUR NUMERIC(11,2) 0.000291715 1754 0
0 16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000291715 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
8 AGEING_BUCKET1_AMOUNT NUMERIC(11,2) 0.000239578 1754 0 0
16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000239578 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
9 AGEING_BUCKET1_AMOUNT_EUR NUMERIC(11,2) 0.000239578 1754 0
0 16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000239578 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
10 AGEING_BUCKET2_AMOUNT NUMERIC(11,2) 0.00105708 1754 0 0
16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00105708 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
11 AGEING_BUCKET2_AMOUNT_EUR NUMERIC(11,2) 0.00105708 1754 0
0 16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00105708 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
12 AGEING_BUCKET3_AMOUNT NUMERIC(11,2) 0.00230415 1754 0 0
16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00230415 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
13 AGEING_BUCKET3_AMOUNT_EUR NUMERIC(11,2) 0.00230415 1754 0
0 16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00230415 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
14 AGEING_BUCKET4_AMOUNT NUMERIC(11,2) 0.00102881 1754 0 0
16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00102881 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
15 AGEING_BUCKET4_AMOUNT_EUR NUMERIC(11,2) 0.00102881 1754 0
0 16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00102881 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
16 AGEING_BUCKET5_AMOUNT NUMERIC(11,2) 0.0018315 1754 0 0
16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0018315 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
17 AGEING_BUCKET5_AMOUNT_EUR NUMERIC(11,2) 0.0018315 1754 0
0 16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0018315 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
18 AGEING_BUCKET6_AMOUNT NUMERIC(11,2) 0.00483092 1754 0 0
16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00483092 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
19 AGEING_BUCKET6_AMOUNT_EUR NUMERIC(11,2) 0.00483092 1754 0
0 16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00483092 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
20 AGEING_BUCKET7_AMOUNT NUMERIC(11,2) 0.000494805 1754 0 0
16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000494805 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
21 AGEING_BUCKET7_AMOUNT_EUR NUMERIC(11,2) 0.000494805 1754 0
0 16554
0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000494805 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
22 OUTSTANDING_INVOICE_AMOUNT_ID BIGINT 1.05667e-05 412 0 0
16554 0
0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1.05667e-05 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
23 LOCAL_KEY_OUTSTANDING_INV_AMNT NATIONAL CHARACTER VARYING(125)
1.1438e-05 1022 0 0 16554

0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1.1438e-05 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
23, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
24 DEBTOR_NUMBER NATIONAL CHARACTER VARYING(125) 0.000179244 1022
0 0 16554

0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000179244 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
24, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_OUTSTANDING_INVOICE_AMOUNT f 0 0 0
25 LOAD_DATE DATE 1 1095 0 0 16554

0 0 10305080 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
25, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_SALE -------------

-- LPGR_DMA_ENTITY_REPORT.F_SALE f 0 0 0 1 BUYER_ID BIGINT


0.000867303 412 0 0 16554
0 0 10305081 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000867303 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SALE f 0 0 0 2
LEASE_CONTRACT_VEHICLE_ID BIGINT 0.00010653 412 0 0 16554
0 0
10305081 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00010653 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SALE f 0 0 0 3 SALE_DATE DATE


0.0010101 1095 0 0 16554

0 0 10305081 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0010101 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SALE f 0 0 0 4 SALE_ID BIGINT


-1 412 0 0 16554
0 0 10305081 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SALE f 0 0 0 5 SALE_NUMBER
NATIONAL CHARACTER VARYING(125) 0.00010367 1022 0 0 16554

0 0 10305081 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00010367 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.F_SALE f 0 0 0 6 SALE_AMOUNT
NUMERIC(11,2) 0.000525486 1754 0 0 16554
0 0 10305081
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000525486 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SALE f 0 0 0 7 SALE_AMOUNT_EUR
NUMERIC(11,2) 0.000525486 1754 0 0 16554
0 0 10305081
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000525486 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SALE f 0 0 0 8 LOAD_DATE DATE


1 1095 0 0 16554

0 0 10305081 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SALE f 0 0 0 9 LOCAL_KEY_SALE
NATIONAL CHARACTER VARYING(125) 0.000103648 1022 0 0 16554

0 0 10305081 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000103648 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SALE f 0 0 0 10 CH_PURCHASE_BY_ID
INTEGER 0.5 97 0 0 16554
0 0 10305081 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SALE f 0 0 0 11
EFFECTIVE_START_DATE DATE 0.333333 1095 0 0 16554

0 0 10305081 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SALE f 0 0 0 12 CREATION_DATE_SALE
DATE 1 1095 0 0 16554

0 0 10305081 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION -------------

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 1
SERVICE_AUTORISATION_ID BIGINT -1 412 0 0 85 0
0 0 0 10305082 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 1,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;
UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 2
LOCAL_KEY_SERV_AUTHORISATION NATIONAL CHARACTER VARYING(125) 1 1022
0 0 85 Error in delivery
Error in delivery
19 19 10305082 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 3
CH_AUTHORISAT_TYPE_ID INTEGER 1 97 0 0 85
999990573 999990573 0 0
10305082 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990573 ', '999990573 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 4
CH_AUTHORISAT_REPAIR_STATUS_ID INTEGER 1 97 0 0 85
999990572 999990572 0 0
10305082 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990572 ', '999990572 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 5
CH_PROCESS_STATUS_ID INTEGER 1 97 0 0 85
999990570 999990570 0 0
10305082 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990570 ', '999990570 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 6
SERVICE_AUTHORISATION_SEQUENCE NUMERIC(3,0) 1 1754 0 0
85 0 0
0 0 10305082 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 7
USER_CREATION NATIONAL CHARACTER VARYING(125) 1 1022 0 0
85 0001-01-01
0001-01-01
12 12 10305082 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '0001-01-01
', 12, 12
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 8
ESTIMATED_DELIVERY_DATE DATE 1 1095 0 0 85 2000-01-01
2000-01-01
0 0 10305082 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 9
AUTHORISATION_FOLLOW_UP NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 Error in delivery
Error in delivery
19 19 10305082 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 10
AUTHORISATION_REPAIR_DESC NATIONAL CHARACTER VARYING(250) 1 1022
0 0 85 Error in delivery
Error in delivery
19 19 10305082 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 11
AUTHORISATION_REPAIR_MILEAGE NUMERIC(7,0) 1 1754 0 0 85
0 0
0 0 10305082 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 12
APPROVAL_DATE_TIME TIMESTAMP 1 1322 0 0 85 2000-
01-01 00:00:00
2000-01-01 00:00:00
0 0 10305082 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1322, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01 00:00:00
', '2000-01-01 00:00:00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 13
APPROVAL_AMOUNT NUMERIC(11,2) 1 1754 0 0 85 0.00
0.00 0 0 10305082
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 14
IND_EMAIL_SEND_REPLACEMENT_CAR CHARACTER(4) 1 1058 0 0
85

0 0 10305082 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 15
IND_NOTIFICATION_SMS_SEND CHARACTER(4) 1 1058 0 0 85

0 0 10305082 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 16
LOAD_DATE DATE 1 1095 0 0 85 2021-12-06
2021-12-06
0 0 10305082 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2021-12-06
', '2021-12-06
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 17
SUPPLIER_ID BIGINT 1 412 0 0 85 0
0 0 0 10305082 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.F_SERVICE_AUTHORISATION f 0 1 1 18
LEASE_CONTRACT_VEHICLE_ID BIGINT 1 412 0 0 85
0 0 0 0
10305082 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.INSURANCE_AGREEMENT -------------

-- LPGR_DMA_ENTITY_REPORT.INSURANCE_AGREEMENT f 0 0 0 1
INSURANCE_AGREEMENT_ID BIGINT -1 412 0 0 16554
0 0 10305083 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INSURANCE_AGREEMENT f 0 0 0 2
LOCAL_KEY_INSURANCE_AGREEMENT NATIONAL CHARACTER VARYING(125) 1 1022
0 0 16554

0 0 10305083 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INSURANCE_AGREEMENT f 0 0 0 3
INSURED_PARTY_ID BIGINT 1 412 0 0 16554
0 0 10305083 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.INSURANCE_AGREEMENT f 0 0 0 4
CH_AGREEMENT_PERIOD_TYPE_ID INTEGER 1 97 0 0 16554
0 0 10305083 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INSURANCE_AGREEMENT f 0 0 0 5
INSURANCE_AGREEMENT_NUMBER NATIONAL CHARACTER VARYING(125) 1 1022
0 0 16554

0 0 10305083 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INSURANCE_AGREEMENT f 0 0 0 6
AGREEMENT_RENEWAL_DAY INTEGER 1 97 0 0 16554
0 0 10305083 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INSURANCE_AGREEMENT f 0 0 0 7
LOAD_DATE DATE 1 1095 0 0 16554

0 0 10305083 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY -------------

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 1
INVOLVED_PARTY_ID BIGINT -1 412 0 0 85 0
518 0 0 10305084 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 20,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '518 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 2
INVOLVED_PARTY_TYPE INTEGER 0.333333 97 0 0 85
0 3 0 0
10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '3 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 3 IS_A_BUYER
CHARACTER(1) 0.5 1058 0 0 85
N
0 0 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 4
IS_A_CUSTOMER CHARACTER(1) 0.5 1058 0 0 85
N
0 0 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 5
IS_A_LP_INVOICE_RECEIVER CHARACTER(1) 0.5 1058 0 0 85

N
0 0 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 6
IS_A_SUPPLIER_INVOICE_SENDER CHARACTER(1) 0.5 1058 0 0 85

N
0 0 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 7
LP_ORGANISATION_CODE CHARACTER(4) 0.5 1058 0 0 85
LPGR
0 0 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'LPGR
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 8
ORGANISATION_TYPE_ID INTEGER 0.5 97 0 0 85 0
7 0 0 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '7 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 9
ORGANISATION_TYPE_LOCAL NATIONAL CHARACTER VARYING(125) 0.333333 1022
0 0 85
Error in delivery
19 67 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 67
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 10
LP_COMPANY_CODE NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0
85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 11 IP_NUMBER
NATIONAL CHARACTER VARYING(125) 0.333333 1022 0 0 85
Error in delivery
19 67 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 67
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 12 IP_NAME
NATIONAL CHARACTER VARYING(125) 0.333333 1022 0 0 85
Error in delivery
Org. not supplied by OpCo
27 532 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Org. not supplied by OpCo
', 27, 532
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 13
IP_SHORT_NAME NATIONAL CHARACTER VARYING(125) 0.333333 1022 0
0 85
Ind. not supplied by OpCo
27 282 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Ind. not supplied by OpCo
', 27, 282
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 14
LPI_CUST_L1_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0
85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 15
LPI_CUST_L2_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0
85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 16
LPI_CUST_L3_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0
85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 17
LPI_CUST_L4_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0
85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 18
LPI_CUST_L5_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0
85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 19
LPI_REGION_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0
85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 20
PRIMARY_CONTACT NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0
85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 21
PRIMARY_TELEPHONE_NUMBER NATIONAL CHARACTER VARYING(125) 0.5 1022
0 0 85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 22
PRIMARY_FAX_NUMBER NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 23 DUNS_NUMBER
NATIONAL CHARACTER VARYING(125) 0.333333 1022 0 0 85
Error in delivery
19 67 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
23, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 67
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 24 VAT_NUMBER
NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0 85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
24, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 25
RISK_WEIGHTING NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0
85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
25, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 26
STREET_NAME_AND_NUMBER NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
26, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 27 POSTAL_CODE
NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0 85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
27, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 28 CITY
NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0 85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
28, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 29 PROVINCE
NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0 85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
29, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 30 LOAD_DATE
DATE 1 1095 0 0 85 2021-12-06
2021-12-06
0 0 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
30, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2021-12-06
', '2021-12-06
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 31
IS_A_SERVICE_SUPPLIER CHARACTER(1) 0.5 1058 0 0 85
N
0 0 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 31 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 31 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
31, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 32 IS_A_DEBTOR
CHARACTER(1) 0.5 1058 0 0 85
N
0 0 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 32 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 32 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
32, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 33
LOCAL_KEY_INVOLVED_PARTY NATIONAL CHARACTER VARYING(125) 0.05 1022
0 0 85 Error in delivery
GR-SAFORG-Not-Supplied
24 475 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.05 as float))
WHERE
attnum = 33 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 33 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
33, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'GR-SAFORG-Not-Supplied
', 24, 475
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 34
LOCAL_KEY_ADDRESS NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0
85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 34 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 34 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
34, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 35 LOCAL_SOURCE
NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0 85 Error
in delivery
Init
19 133 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 35 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 35 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
35, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Init
', 19, 133
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 36
LOCAL_KEY_ULTIMATE_PARENT NATIONAL CHARACTER VARYING(125) 0.05 1022
0 0 85 Error in delivery
GR-SAFORG-Not-Supplied
24 475 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.05 as float))
WHERE
attnum = 36 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 36 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
36, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'GR-SAFORG-Not-Supplied
', 24, 475
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 37
ULTIMATE_PARENT_NUMBER NATIONAL CHARACTER VARYING(125) 0.333333 1022
0 0 85
Error in delivery
19 67 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 37 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 37 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
37, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 67
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 38
ULTIMATE_PARENT_NAME NATIONAL CHARACTER VARYING(125) 0.333333 1022
0 0 85 Error in delivery
Org. not supplied by OpCo
27 532 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 38 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 38 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
38, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Org. not supplied by OpCo
', 27, 532
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 39
CH_BASEL2_BUSINESS_CLASS_ID INTEGER 0.333333 97 0 0 85
1566 999991448 0 0
10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 39 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 39 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
39, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1566 ', '999991448 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 40
CH_BRANCH_CODE_ID INTEGER 0.333333 97 0 0 85 1529
999991435 0 0 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 40 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 40 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
40, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1529 ', '999991435 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 41
CH_CUSTOMER_SEGMENT_ID INTEGER 0.333333 97 0 0 85
1523 999991406 0 0
10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 41 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 41 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
41, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1523 ', '999991406 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 42
CH_CUSTOMER_REGION_ID INTEGER 0.333333 97 0 0 85
1522 999991405 0 0
10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 42 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 42 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
42, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1522 ', '999991405 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 43
LPI_MANAGING_ORGANISATION CHARACTER(4) 1 1058 0 0 85

0 0 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 43 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 43 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
43, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 44
CH_COUNTRY_ID INTEGER 0.5 97 0 0 85 1173190
999990906 0 0 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 44 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 44 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
44, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1173190 ', '999990906 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 45
CH_CUSTOMER_TYPE_ID INTEGER 0.5 97 0 0 85
999990667 999991667 0 0
10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 45 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 45 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
45, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990667 ', '999991667 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 46
CH_LP_RATING_LOCAL_ID INTEGER 0.5 97 0 0 85
999990694 999991694 0 0
10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 46 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 46 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
46, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990694 ', '999991694 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 47
CUST_FINANCIAL_GROUP_NUMBER NATIONAL CHARACTER VARYING(125) 0.333333
1022 0 0 85
Error in delivery
19 67 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 47 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 47 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
47, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 67
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 48
CUST_FINANCIAL_GROUP_NAME NATIONAL CHARACTER VARYING(125) 0.333333
1022 0 0 85 Error in delivery
Org. not supplied by OpCo
27 532 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 48 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 48 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
48, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Org. not supplied by OpCo
', 27, 532
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 49
LOCAL_KEY_CUST_FINANCIAL_GROUP NATIONAL CHARACTER VARYING(125) 0.05
1022 0 0 85 Error in delivery
GR-SAFORG-Not-Supplied
24 475 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.05 as float))
WHERE
attnum = 49 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 49 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
49, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'GR-SAFORG-Not-Supplied
', 24, 475
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 50
LOCAL_KEY_REPORTS_TO NATIONAL CHARACTER VARYING(125) 0.05 1022 0
0 85 Error in delivery
GR-SAFORG-Not-Supplied
24 475 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.05 as float))
WHERE
attnum = 50 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 50 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
50, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'GR-SAFORG-Not-Supplied
', 24, 475
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 51
REPORTS_TO_NUMBER NATIONAL CHARACTER VARYING(125) 0.333333 1022 0
0 85
Error in delivery
19 67 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 51 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 51 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
51, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 67
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 52
REPORTS_TO_NAME NATIONAL CHARACTER VARYING(125) 0.333333 1022 0
0 85 Error in delivery
Org. not supplied by OpCo
27 532 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 52 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 52 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
52, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Org. not supplied by OpCo
', 27, 532
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 53 IS_A_INSURER
CHARACTER(1) 0.5 1058 0 0 85
N
0 0 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 53 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 53 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
53, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 54
RELATIONSHIP_SINCE_DATE DATE 1 1095 0.45 0 85 2000-01-01
2000-01-01
0 0 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 54 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 54 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
54, 1095, (CAST(0.45 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 55
IP_NAME_LOCAL NATIONAL CHARACTER VARYING(125) 1 1022 0.95 0
85 Error in delivery
Error in delivery
19 19 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 55 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 55 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
55, 1022, (CAST(0.95 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 56
IP_FIRST_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0
85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 56 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 56 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
56, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 57 IP_LAST_NAME
NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0 85
Error in delivery
19 57 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 57 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 57 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
57, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Error in delivery
', 19, 57
);

-- LPGR_DMA_ENTITY_REPORT.INVOLVED_PARTY f 0 20 1 58
PREFERRED_SUPPLIER_INDICATOR CHARACTER(1) 1 1058 0.45 0 85

0 0 10305084 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 58 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 58 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
58, 1058, (CAST(0.45 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES -------------

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 1
LOCAL_KEY_LC_FREE_ATTRIBUTES NATIONAL CHARACTER VARYING(125) 0.000379795
1022 0 0 16554

0 0 10332559 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000379795 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 2
LC_FREE_DATE_1 DATE 1 1095 0 0 16554

0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 3
LC_FREE_DATE_2 DATE 1 1095 0 0 16554

0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 4
LC_FREE_DATE_3 DATE 1 1095 0 0 16554

0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 5
LC_FREE_DATE_4 DATE 1 1095 0 0 16554

0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 6
LC_FREE_DATE_5 DATE 1 1095 0 0 16554

0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 7
LC_FREE_AMOUNT_1 NUMERIC(11,2) 1 1754 0 0 16554
0 0 10332559
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 8
LC_FREE_AMOUNT_2 NUMERIC(11,2) 1 1754 0 0 16554
0 0 10332559
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 9
LC_FREE_AMOUNT_3 NUMERIC(11,2) 0.0526316 1754 0 0 16554
0 0 10332559
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0526316 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 10
LC_FREE_AMOUNT_4 NUMERIC(11,2) 1 1754 0 0 16554
0 0 10332559
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 11
LC_FREE_AMOUNT_5 NUMERIC(11,2) 1 1754 0 0 16554
0 0 10332559
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 12
LC_FREE_FLAG_1 CHARACTER(1) 1 1058 0 0 16554

0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 13
LC_FREE_FLAG_2 CHARACTER(1) 1 1058 0 0 16554

0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 14
LC_FREE_FLAG_3 CHARACTER(1) 1 1058 0 0 16554

0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 15
LC_FREE_FLAG_4 CHARACTER(1) 1 1058 0 0 16554

0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 16
LC_FREE_FLAG_5 CHARACTER(1) 1 1058 0 0 16554

0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 17
LC_FREE_TEXT_1 NATIONAL CHARACTER VARYING(125) 1 1022 0 0
16554

0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 18
LC_FREE_TEXT_2 NATIONAL CHARACTER VARYING(125) 1 1022 0 0
16554

0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 19
LC_FREE_TEXT_3 NATIONAL CHARACTER VARYING(125) 1 1022 0 0
16554

0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 20
LC_FREE_TEXT_4 NATIONAL CHARACTER VARYING(125) 1 1022 0 0
16554

0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 21
LC_FREE_TEXT_5 NATIONAL CHARACTER VARYING(125) 1 1022 0 0
16554

0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 22
LOAD_DATE DATE 1 1095 0 0 16554

0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 23
LC_FREE_NUMERIC_1 NUMERIC(11,2) 0.2 1754 0 0 16554
0 0 10332559
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
23, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 24
LC_FREE_NUMERIC_2 NUMERIC(11,2) 0.0833333 1754 0 0 16554
0 0 10332559
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0833333 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
24, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 25
LC_FREE_NUMERIC_3 NUMERIC(11,2) 1 1754 0 0 16554
0 0 10332559
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
25, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 26
LC_FREE_NUMERIC_4 NUMERIC(11,2) 1 1754 0 0 16554
0 0 10332559
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
26, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 27
LC_FREE_NUMERIC_5 NUMERIC(11,2) 1 1754 0 0 16554
0 0 10332559
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
27, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 28
LC_FREE_ATTRIBUTES_ID BIGINT 0.000379651 412 0 0 16554
0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000379651 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
28, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LC_FREE_ATTRIBUTES f 0 0 0 29
LEASE_CONTRACT_VEHICLE_ID BIGINT -1 412 0 0 16554
0 0 10332559 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
29, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS -------------

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
1 LOCAL_KEY_LEASE_CONTRACT NATIONAL CHARACTER VARYING(125)
4.38347e-05 1022 0 0 16554

0 0 10305086 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (4.38347e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
2 INC_DURATION INTEGER 0.0166667 97 0 0 16554
0 0 10305086 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0.0166667 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
3 INC_MILEAGE INTEGER 0.000594177 97 0 0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000594177 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
4 INC_COBF NUMERIC(6,3) 0.00180505 1754 0 0 16554
0 0 10305086
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00180505 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
5 INC_BUDG_INVESTMENT_VALUE NUMERIC(11,2) 0.000112816 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000112816 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
6 INC_STANDARD_RV_AMOUNT NUMERIC(11,2) 0.000113701 1754 0 0
16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000113701 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
7 INC_BUDG_RV_AMOUNT NUMERIC(11,2) 0.000125298 1754 0 0
16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000125298 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
8 INC_BUDG_RV_AMOUNT_SLA_MARGIN NUMERIC(11,2) 1 1754 0 0
16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
9 INC_BUDG_RV_AMOUNT_LC_MARGIN NUMERIC(11,2) 1 1754 0 0
16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
10 INC_BUDG_REPAIR_AMOUNT NUMERIC(11,2) 1 1754 0 0 16554

0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
11 INC_BUDG_MAINTENANCE_AMOUNT NUMERIC(11,2) 0.000169837 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000169837 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
12 INC_BUDG_TYRE_AMOUNT NUMERIC(11,2) 0.000182415 1754 0 0
16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000182415 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
13 INC_BUDG_REPAIR_AMOUNT_SLA_MARGIN NUMERIC(11,2) 1 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
14 INC_BUDG_MAINT_AMOUNT_SLA_MARGIN NUMERIC(11,2) 1 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
15 INC_BUDG_TYRE_AMOUNT_SLA_MARGIN NUMERIC(11,2) 1 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
16 INC_BUDG_REPAIR_AMOUNT_LC_MARGIN NUMERIC(11,2) 1 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
17 INC_BUDG_MAINT_AMOUNT_LC_MARGIN NUMERIC(11,2) 1 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
18 INC_BUDG_TYRE_AMOUNT_LC_MARGIN NUMERIC(11,2) 1 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
19 INC_MILEAGEKM INTEGER 0.000594177 97 0 0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000594177 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
20 INC_BUDG_INVESTMENT_VALUE_EUR NUMERIC(11,2) 0.000112816 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000112816 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
21 INC_STANDARD_RV_AMOUNT_EUR NUMERIC(11,2) 0.000113701 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000113701 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
22 INC_BUDG_RV_AMOUNT_EUR NUMERIC(11,2) 0.000125298 1754 0 0
16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000125298 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
23 INC_BUDG_RV_AMOUNT_SLA_MRG_EUR NUMERIC(11,2) 1 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
23, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
24 INC_BUDG_RV_AMOUNT_LC_MRG_EUR NUMERIC(11,2) 1 1754 0 0
16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
24, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
25 INC_BUDG_REPAIR_AMOUNT_EUR NUMERIC(11,2) 1 1754 0 0
16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
25, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
26 INC_BUDG_MAINTENANCE_AMNT_EUR NUMERIC(11,2) 0.000169837 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000169837 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
26, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
27 INC_BUDG_TYRE_AMOUNT_EUR NUMERIC(11,2) 0.000182415 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000182415 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
27, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
28 INC_BUDG_REPAIR_SLA_MRGN_EUR NUMERIC(11,2) 1 1754 0 0
16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
28, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
29 INC_BUDG_MAINT_SLA_MRGN_EUR NUMERIC(11,2) 1 1754 0 0
16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
29, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
30 INC_BUDG_TYRE_MRGN_EUR NUMERIC(11,2) 1 1754 0 0 16554

0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
30, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
31 INC_BUDG_REPAIR_LC_MRGN_EUR NUMERIC(11,2) 1 1754 0 0
16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 31 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 31 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
31, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
32 INC_BUDG_MAINT_LC_MRGN_EUR NUMERIC(11,2) 1 1754 0 0
16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 32 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 32 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
32, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
33 INC_BUDG_TYRE_LC_MRGN_EUR NUMERIC(11,2) 1 1754 0 0
16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 33 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 33 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
33, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
34 LOAD_DATE DATE 1 1095 0 0 16554

0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 34 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 34 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
34, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
35 INC_STANDARD_MAINT_AMOUNT NUMERIC(11,2) 0.00355872 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00355872 as float))
WHERE
attnum = 35 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 35 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
35, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
36 INC_STANDARD_TYRE_AMOUNT NUMERIC(11,2) 0.00207039 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00207039 as float))
WHERE
attnum = 36 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 36 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
36, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
37 INC_STANDARD_REPAIR_AMOUNT NUMERIC(11,2) 1 1754 0 0
16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 37 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 37 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
37, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
38 INC_STANDARD_MAINT_AMOUNT_EUR NUMERIC(11,2) 0.00355872 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00355872 as float))
WHERE
attnum = 38 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 38 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
38, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
39 INC_STANDARD_TYRE_AMOUNT_EUR NUMERIC(11,2) 0.00207039 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00207039 as float))
WHERE
attnum = 39 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 39 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
39, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
40 INC_STANDARD_REPAIR_AMOUNT_EUR NUMERIC(11,2) 1 1754 0
0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 40 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 40 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
40, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
41 LEASE_CONTRACT_ID BIGINT 4.35939e-05 412 0 0 16554
0 0 10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (4.35939e-05 as float))
WHERE
attnum = 41 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 41 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
41, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 0 0
42 LEASE_CONTRACT_INITIALS_ID BIGINT -1 412 0 0 16554
0 0
10305086 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 42 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 42 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
42, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE -------------

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 1
LEASE_SERVICE_ID INTEGER -1 97 0 0 85 4435
999990442 0 0 10305088 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 2,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'4435 ', '999990442 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 2
LEASE_SERVICE_CODE NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
GR-Not-Supplied
19 36 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'GR-Not-Supplied
', 19, 36
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 3
LEASE_SERVICE_DESC NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Country did not supply a value
Error in delivery
32 51 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Country did not supply a value
', 'Error in delivery
', 32, 51
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 4
LEASE_SERVICE_CONS NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Country did not supply a value
Error in delivery
32 51 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Country did not supply a value
', 'Error in delivery
', 32, 51
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 5 LOAD_DATE
DATE 1 1095 0 0 85 2021-12-06
2021-12-06
0 0 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2021-12-06
', '2021-12-06
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 6
LEASE_SERVICE_CONS_496 NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
Not consolidated
19 37 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not consolidated
', 19, 37
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 7
LEASE_SERVICE_CONS_497 NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
Not consolidated
19 37 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not consolidated
', 19, 37
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 8
LEASE_SERVICE_CONS_RM NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
Not consolidated
19 37 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not consolidated
', 19, 37
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 9
LEASE_SERVICE_CONS_LPI NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
Not consolidated
19 37 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not consolidated
', 19, 37
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 10
IS_A_DELIVERED_LEASE_SERVICE CHARACTER(1) 0.5 1058 0 0 85
N
Y
0 0 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'N
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 11
IS_A_INVOICED_LEASE_SERVICE CHARACTER(1) 0.5 1058 0 0 85
N
Y
0 0 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'N
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 12
IS_A_MANAGED_LEASE_SERVICE CHARACTER(1) 0.5 1058 0 0 85
N
Y
0 0 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'N
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 13
IS_A_AGREED_LEASE_SERVICE CHARACTER(1) 0.5 1058 0 0 85
N
Y
0 0 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'N
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 14
LEASE_SERVICE_L1_CODE NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
GR-Not-Supplied
19 36 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'GR-Not-Supplied
', 19, 36
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 15
LEASE_SERVICE_L1_DESC NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Country did not supply a value
Error in delivery
32 51 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Country did not supply a value
', 'Error in delivery
', 32, 51
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 16
LEASE_SERVICE_L2_CODE NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
GR-Not-Supplied
19 36 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'GR-Not-Supplied
', 19, 36
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 17
LEASE_SERVICE_L3_CODE NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
GR-Not-Supplied
19 36 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'GR-Not-Supplied
', 19, 36
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 18
LEASE_SERVICE_L4_CODE NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
GR-Not-Supplied
19 36 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'GR-Not-Supplied
', 19, 36
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 19
LEASE_SERVICE_L5_CODE NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Error in delivery
GR-Not-Supplied
19 36 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'GR-Not-Supplied
', 19, 36
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 20
LEASE_SERVICE_L2_DESC NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Country did not supply a value
Error in delivery
32 51 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Country did not supply a value
', 'Error in delivery
', 32, 51
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 21
LEASE_SERVICE_L3_DESC NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Country did not supply a value
Error in delivery
32 51 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Country did not supply a value
', 'Error in delivery
', 32, 51
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 22
LEASE_SERVICE_L4_DESC NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Country did not supply a value
Error in delivery
32 51 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Country did not supply a value
', 'Error in delivery
', 32, 51
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 23
LEASE_SERVICE_L5_DESC NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 85 Country did not supply a value
Error in delivery
32 51 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
23, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Country did not supply a value
', 'Error in delivery
', 32, 51
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 24
LEASE_SERVICE_CONS_MODULE NATIONAL CHARACTER VARYING(125) 0.5 1022
0 0 85 Error in delivery
Not consolidated
19 37 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
24, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not consolidated
', 19, 37
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE f 0 2 1 25
IS_A_TOTALIZED_LEASE_SERVICE CHARACTER(1) 0.5 1058 0 0 85
N
Y
0 0 10305088 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
25, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'N
', 'Y
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE_AGREEMENT -------------

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE_AGREEMENT f 0 0 0 1
LEASE_SERVICE_ID INTEGER 0.0192308 97 0 0 16554
0 0 10305089 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0192308 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE_AGREEMENT f 0 0 0 2
CUSTOMER_SLA_ID BIGINT 0.000190186 412 0 0 16554
0 0 10305089 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000190186 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE_AGREEMENT f 0 0 0 3
LEASE_SERVICE_AGREEMENT_ID BIGINT -1 412 0 0 16554
0 0 10305089 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE_AGREEMENT f 0 0 0 4
PREFERRED_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125) 0.111111
1022 0 0 16554

0 0 10305089 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE_AGREEMENT f 0 0 0 5
PREFERRED_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125) 0.111111 1022
0 0 16554

0 0 10305089 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE_AGREEMENT f 0 0 0 6
PREFERRED_SUPPLIER_CONS NATIONAL CHARACTER VARYING(125) 1 1022 0
0 16554

0 0 10305089 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE_AGREEMENT f 0 0 0 7
SERVICE_INCLUSION CHARACTER(1) 0.5 1058 0 0 16554

0 0 10305089 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE_AGREEMENT f 0 0 0 8
LOAD_DATE DATE 1 1095 0 0 16554

0 0 10305089 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE_AGREEMENT f 0 0 0 9
LOCAL_KEY_LEASE_SERVICE_AGREEM NATIONAL CHARACTER VARYING(125)
1.35656e-05 1022 0 0 16554

0 0 10305089 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1.35656e-05 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE_AGREEMENT f 0 0 0 10
LOCAL_KEY_PREFERRED_SUPPLIER NATIONAL CHARACTER VARYING(125) 0.111111
1022 0 0 16554

0 0 10305089 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE_AGREEMENT f 0 0 0 11
CH_SUPPL_SELECT_MANDATE_ID INTEGER 1 97 0 0 16554
0 0 10305089 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.LEASE_SERVICE_AGREEMENT f 0 0 0 12
CH_SERVICE_CHARGE_METHOD_ID INTEGER 0.25 97 0 0 16554
0 0 10305089 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.LP_INVOICE -------------


-- LPGR_DMA_ENTITY_REPORT.LP_INVOICE f 0 0 0 1
LP_INVOICE_ID BIGINT -1 412 0 0 16554
0 0 10305090 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LP_INVOICE f 0 0 0 2
LP_INVOICE_RECEIVER_ID BIGINT 0.000264831 412 0 0 16554
0 0 10305090 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000264831 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LP_INVOICE f 0 0 0 3
INVOICE_AMOUNT_EX_VAT NUMERIC(11,2) 8.49473e-05 1754 0 0 16554

0 0 10305090 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (8.49473e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT.LP_INVOICE f 0 0 0 4
INVOICE_AMOUNT_EX_VAT_EUR NUMERIC(11,2) 8.49473e-05 1754 0 0
16554
0 0 10305090 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (8.49473e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LP_INVOICE f 0 0 0 5
INVOICE_AMT_NONRECLAIM_VAT NUMERIC(11,2) 1 1754 0 0 16554
0 0 10305090 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LP_INVOICE f 0 0 0 6
INVOICE_AMT_NONRECLAIM_VAT_EUR NUMERIC(11,2) 1 1754 0 0
16554
0 0 10305090 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LP_INVOICE f 0 0 0 7 INVOICE_DATE
DATE 0.0151515 1095 0 0 16554

0 0 10305090 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0151515 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LP_INVOICE f 0 0 0 8
INVOICE_DUE_DATE DATE 0.00371747 1095 0 0 16554

0 0 10305090 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00371747 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LP_INVOICE f 0 0 0 9
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125) 4.34858e-05 1022 0
0 16554

0 0 10305090 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (4.34858e-05 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LP_INVOICE f 0 0 0 10
INVOICE_PAYMENT_DATE DATE 1 1095 0 0 16554

0 0 10305090 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LP_INVOICE f 0 0 0 11
TOT_INVOICE_AMT_REM_ITEMS NUMERIC(11,2) 1 1754 0 0 16554

0 0 10305090 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LP_INVOICE f 0 0 0 12
TOT_INVOICE_AMT_REM_ITEMS_EUR NUMERIC(11,2) 1 1754 0 0 16554

0 0 10305090 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LP_INVOICE f 0 0 0 13 LOAD_DATE
DATE 1 1095 0 0 16554

0 0 10305090 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LP_INVOICE f 0 0 0 14
LOCAL_KEY_LP_INVOICE NATIONAL CHARACTER VARYING(125) 4.35161e-05 1022
0 0 16554

0 0 10305090 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (4.35161e-05 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LP_INVOICE f 0 0 0 15
INVOICE_BOOK_PERIOD NUMERIC(6,0) 0.111111 1754 0 0 16554

0 0 10305090 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.LP_INVOICE f 0 0 0 16
CH_LP_INVOICE_TYPE_ID INTEGER 0.2 97 0 0 16554
0 0 10305090 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.PRODUCT -------------

-- LPGR_DMA_ENTITY_REPORT.PRODUCT f 0 1 1 1 PRODUCT_ID BIGINT


-1 412 0 0 85 0 0
0 0 10305091 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 1,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.PRODUCT f 0 1 1 2 LOCAL_KEY_PRODUCT
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 Error
in delivery
Error in delivery
19 19 10305091 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.PRODUCT f 0 1 1 3 PRODUCT_NUMBER
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 Error
in delivery
Error in delivery
19 19 10305091 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.PRODUCT f 0 1 1 4 PRODUCT_NAME
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 Error
in delivery
Error in delivery
19 19 10305091 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.PRODUCT f 0 1 1 5 PRODUCT_TYPE_CODE
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 Error
in delivery
Error in delivery
19 19 10305091 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.PRODUCT f 0 1 1 6
PRODUCT_TYPE_DESCRIPTION NATIONAL CHARACTER VARYING(125) 1 1022
0 0 85 Error in delivery
Error in delivery
19 19 10305091 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.PRODUCT f 0 1 1 7 PRODUCT_NAME_CONS
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 Error
in delivery
Error in delivery
19 19 10305091 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.PRODUCT f 0 1 1 8 PRODUCT_TYPE_CONS
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 Error
in delivery
Error in delivery
19 19 10305091 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Error in delivery
', 19, 19
);

-- LPGR_DMA_ENTITY_REPORT.PRODUCT f 0 1 1 9 LOAD_DATE DATE


1 1095 0 0 85 2021-12-06
2021-12-06
0 0 10305091 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2021-12-06
', '2021-12-06
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE -------------

-- LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE f 0 0 0 1
SUPPLIER_INVOICE_ID BIGINT -1 412 0 0 16554
0 0 10305092 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE f 0 0 0 2
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125) 2.918e-05 1022 0
0 16554

0 0 10305092 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (2.918e-05 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE f 0 0 0 3
INVOICE_DATE DATE 0.00258398 1095 0 0 16554

0 0 10305092 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00258398 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE f 0 0 0 4
INVOICE_BOOK_PERIOD NUMERIC(6,0) 0.0714286 1754 0 0 16554

0 0 10305092 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0714286 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE f 0 0 0 5
INVOICE_AMOUNT_EX_VAT NUMERIC(13,2) 4.25351e-05 1754 0 0 16554

0 0 10305092 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (4.25351e-05 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE f 0 0 0 6
INVOICE_AMOUNT_EX_VAT_EUR NUMERIC(13,2) 4.25351e-05 1754 0 0
16554
0 0 10305092 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (4.25351e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE f 0 0 0 7
INVOICE_AMT_NONRECLAIM_VAT NUMERIC(11,2) 1 1754 0 0 16554

0 0 10305092 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE f 0 0 0 8
INVOICE_AMT_NONRECLAIM_VAT_EUR NUMERIC(11,2) 1 1754 0 0
16554
0 0 10305092 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE f 0 0 0 9
TOT_INVOICE_AMT_REM_ITEMS NUMERIC(11,2) 1 1754 0 0 16554

0 0 10305092 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE f 0 0 0 10
TOT_INVOICE_AMT_REM_ITEMS_EUR NUMERIC(11,2) 1 1754 0 0 16554

0 0 10305092 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE f 0 0 0 11
LOAD_DATE DATE 1 1095 0 0 16554

0 0 10305092 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE f 0 0 0 12
SUPPLIER_INVOICE_SENDER_ID BIGINT 0.00155039 412 0 0 16554
0 0
10305092 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00155039 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE f 0 0 0 13
LOCAL_KEY_SUPPLIER_INVOICE NATIONAL CHARACTER VARYING(125) 1.95271e-05
1022 0 0 16554

0 0 10305092 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1.95271e-05 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE f 0 0 0 14
CH_SUPPLIER_INVOICE_TYPE_ID INTEGER 0.1 97 0 0 16554
0 0 10305092 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.1 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.SUPPLIER_INVOICE f 0 0 0 15
APPROVAL_HEADER_ID BIGINT 7.36377e-05 412 0 0 16554
0 0 10305092 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (7.36377e-05 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT -------------

-- LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT f 0 0 0 1
LEASE_CONTRACT_VEHICLE_ID BIGINT 4.3109e-05 412 0 0 16554
0 0
10305093 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (4.3109e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT f 0 0 0 2
VEHICLE_EQUIPMENT_ID BIGINT -1 412 0 0 16554
0 0 10305093 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT f 0 0 0 3
OPTION_ACCESSORY_STANDARD NATIONAL CHARACTER VARYING(125) 0.166667
1022 0 0 16554

0 0 10305093 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT f 0 0 0 4
CATALOGUE_PRICE NUMERIC(11,2) 0.00011485 1754 0 0 16554
0 0 10305093
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00011485 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT f 0 0 0 5
CATALOGUE_PRICE_EUR NUMERIC(11,2) 0.00011485 1754 0 0 16554

0 0 10305093 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00011485 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT f 0 0 0 6
COMMERCIAL_DISCOUNT_AMOUNT NUMERIC(11,2) 0.000215378 1754 0 0
16554
0 0 10305093 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000215378 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT f 0 0 0 7
COMMERCIAL_DISCOUNT_AMOUNT_EUR NUMERIC(11,2) 0.000215378 1754 0
0 16554
0 0 10305093 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000215378 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT f 0 0 0 8
TAX_AMOUNT_NON_RECLAIMABLE NUMERIC(11,2) 0.00207039 1754 0 0
16554
0 0 10305093 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00207039 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT f 0 0 0 9
TAX_AMOUNT_NON_RECLAIMABLE_EUR NUMERIC(11,2) 0.00207039 1754 0
0 16554
0 0 10305093 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00207039 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT f 0 0 0 10
VAT_PERCENTAGE NUMERIC(6,3) 0.5 1754 0 0 16554
0 0 10305093
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT f 0 0 0 11
LOAD_DATE DATE 1 1095 0 0 16554

0 0 10305093 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT f 0 0 0 12
LOCAL_KEY_VEHICLE_EQUIPMENT NATIONAL CHARACTER VARYING(125) 1.3706e-06
1022 0 0 16554

0 0 10305093 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1.3706e-06 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT f 0 0 0 13
VEHICLE_EQUIPMENT_NUMBER NATIONAL CHARACTER VARYING(125) 3.14535e-05
1022 0 0 16554

0 0 10305093 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.14535e-05 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT f 0 0 0 14
CH_EQUIPMENT_TYPE_ID INTEGER 0.2 97 0 0 16554
0 0 10305093 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT.VEHICLE_EQUIPMENT f 0 0 0 15
CH_EQUIPMENT_GROUP_ID INTEGER 0.5 97 0 0 16554
0 0 10305093 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE -------------

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 1
LEASE_SERVICE_ID INTEGER 0.0204082 97 0 0 16554
0 0 11505949 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
);

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0204082 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 2 SERVICE_DATE
DATE 0.00108814 1095 0 0 16554

0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00108814 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 3
LEASE_CONTRACT_VEHICLE_ID BIGINT 3.52336e-05 412 0 0 16554
0 0
11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.52336e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 4
SUPPLIER_INVOICE_ID BIGINT 1.94556e-05 412 0 0 16554
0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1.94556e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 5 AMOUNT_TYPE
CHARACTER(1) 0.333333 1058 0 0 16554

0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 6
DELIVERED_SERVICE_AMOUNT NUMERIC(11,2) 2.53942e-05 1754 0 0
16554
0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (2.53942e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 7
DELIVERED_SERVICE_AMOUNT_EUR NUMERIC(11,2) 2.53942e-05 1754 0 0
16554
0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (2.53942e-05 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 8
SERVICE_MILEAGE NUMERIC(7,0) 0.000113161 1754 0 0 16554
0 0 11505949
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000113161 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 9
SERVICE_SUPPLIER_ID BIGINT 0.333333 412 0 0 16554
0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
9, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 10
SERVICE_MILEAGE_KM NUMERIC(7,0) 0.000113161 1754 0 0 16554

0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000113161 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 11
SERVICE_QUANTITY NUMERIC(11,2) 1 1754 0 0 16554
0 0 11505949
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 12 LOAD_DATE
DATE 1 1095 0 0 16554

0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
12, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 13 SERVICE_ID
BIGINT -1 412 0 0 16554
0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
13, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 14
CH_SERVICE_TYPE_ID INTEGER 0.5 97 0 0 16554
0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
14, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 15
CH_SUBJECT_TYPE_ID INTEGER 0.5 97 0 0 16554
0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
15, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 16
CH_SUBJECT_BRAND_ID INTEGER 0.5 97 0 0 16554
0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
16, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 17
BOOK_PERIOD_DATE DATE 0.0714286 1095 0 0 16554

0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0714286 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
17, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 18
SERVICE_TYPE_ID INTEGER 0.333333 97 0 0 16554
0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
18, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 19 VEHICLE_AGE
INTEGER 0.00666667 97 0 0 16554
0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00666667 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
19, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 20 DAMAGE_ID
BIGINT 0.000834028 412 0 0 16554
0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000834028 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
20, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 21
SERVICE_NUMBER NATIONAL CHARACTER VARYING(125) 0 1022 0 0
16554

0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
21, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 22
LOCAL_KEY_SERVICE NATIONAL CHARACTER VARYING(125) 0 1022 0 0
16554

0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
22, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11505949 f 0 0 0 23
NUMBER_OF_REPLACEMENT_CAR_DAYS NUMERIC(7,0) 0 1754 0 0
16554
0 0 11505949 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
23, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_LP_INVOICE_DETAIL -------------

-- LPGR_DMA_ENTITY_REPORT._BTS_11506100 f 0 0 0 1
LEASE_SERVICE_ID INTEGER 0.027027 97 0 0 16554
0 0 11506100 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
);

UPDATE _t_attribute
SET
attdispersion = (CAST (0.027027 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11506100 f 0 0 0 2
BOOK_PERIOD_DATE DATE 0.111111 1095 0 0 16554

0 0 11506100 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11506100 f 0 0 0 3
LEASE_CONTRACT_VEHICLE_ID BIGINT 3.84778e-05 412 0 0 16554
0 0
11506100 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.84778e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11506100 f 0 0 0 4
LP_INVOICE_ID BIGINT 4.34103e-05 412 0 0 16554
0 0 11506100 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (4.34103e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11506100 f 0 0 0 5 AMOUNT_TYPE
CHARACTER(1) 0.5 1058 0 0 16554

0 0 11506100 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11506100 f 0 0 0 6
INVOICE_AMOUNT NUMERIC(11,2) 2.96604e-05 1754 0 0 16554
0 0 11506100
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (2.96604e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11506100 f 0 0 0 7
INVOICE_AMOUNT_EUR NUMERIC(11,2) 2.96604e-05 1754 0 0 16554

0 0 11506100 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (2.96604e-05 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11506100 f 0 0 0 8
INVOICED_MILEAGE NUMERIC(7,0) 0.000345304 1754 0 0 16554
0 0 11506100
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000345304 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11506100 f 0 0 0 9
INVOICED_MILEAGE_KM NUMERIC(7,0) 0.000345304 1754 0 0 16554

0 0 11506100 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000345304 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11506100 f 0 0 0 10 LOAD_DATE
DATE 1 1095 0 0 16554

0 0 11506100 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
10, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11506100 f 0 0 0 11
LP_INVOICE_LINE_ID BIGINT -1 412 0 0 16554
0 0 11506100 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
11, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11506100 f 0 0 0 12 VEHICLE_AGE
INTEGER 0.00694444 97 0 0 16554
0 0 11506100 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00694444 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
12, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_11506100 f 0 0 0 13 DAMAGE_ID
BIGINT 0.00194553 412 0 0 16554
0 0 11506100 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00194553 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
13, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._BTS_11506100 f 0 0 0 14
LOCAL_KEY_LP_INVOICE_LINE NATIONAL CHARACTER VARYING(125) 0 1022
0 0 16554

0 0 11506100 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
14, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE -------------

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 1
LEASE_CONTRACT_VEHICLE_ID BIGINT -1 412 0 0 85
0 999999999999999999 0 0
22900146 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 3,
relrefs = 0,
relpages = 1
WHERE
relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
);

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '999999999999999999 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 2 CUSTOMER_ID
BIGINT 0.000348797 412 0 0 85 0
0 0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000348797 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 3
LC_LEASE_CONTRACT_NUMBER NATIONAL CHARACTER VARYING(125) 3.31928e-05
1022 0 0 85 Error in delivery
Not supplied by OPCO
22 63 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.31928e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not supplied by OPCO
', 22, 63
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 4
LC_COST_CENTER_NAME NATIONAL CHARACTER VARYING(125) 0.000881057 1022
0 0 85
Not Supplied by OpCo
22 43 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000881057 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 5 LC_SLB_FLAG
CHARACTER(1) 0.5 1058 0 0 85
N
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 6
LC_START_DATE_LEASECONTRACT DATE 0.00034188 1095 0 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00034188 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
6, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 7
LC_END_DATE_LEASECONTRACT DATE 0.000412371 1095 0 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000412371 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
7, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 8
LC_BUDG_END_DATE_LEASECONTRACT DATE 0.000238039 1095 0 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000238039 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 9
LC_STARTMILEAGELEASECONTRACTKM NUMERIC(7,0) 0.000348918 1754 0
0 85 0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000348918 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 10
LC_ENDMILEAGELEASECONTRACT NUMERIC(7,0) 5.83907e-05 1754 0 0
85 0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (5.83907e-05 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 11
LC_CONTRACT_DURATION NUMERIC(3,0) 0.0133333 1754 0 0 85
0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0133333 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 12
LC_CONTRACT_MILEAGE NUMERIC(7,0) 0.00101937 1754 0 0 85
0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00101937 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 13
LC_DISCONMONTHLY_LEASEINST NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 14
LC_MONTHLY_LEASEINSTALMENT NUMERIC(11,2) 6.53211e-05 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (6.53211e-05 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
14, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 15
LC_MVA_FEE_OVER_MILEAGE NUMERIC(11,2) 0.00218818 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00218818 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
15, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 16
LC_MVA_REPAY_UNDER_MILEAGE NUMERIC(11,2) 0.0026738 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0026738 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
16, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 17
LC_ACTUAL_INVEST_AMOUNT NUMERIC(11,2) 6.6291e-05 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (6.6291e-05 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
17, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 18
LC_BUDGETED_INVEST_AMOUNT NUMERIC(11,2) 8.05607e-05 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (8.05607e-05 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
18, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 19
LC_INVEST_INTEREST_BASE NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
19, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 20
LC_PREPAYMNT_INTEREST_BASE NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
20, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 21
LC_UFWT_AMOUNT NUMERIC(11,2) 9.83961e-05 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (9.83961e-05 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
21, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 22
LC_EXTENSION_PENALTY NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
22, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 23
LC_EARLY_TERM_PENALTY NUMERIC(11,2) 0.000425351 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000425351 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
23, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 24
VEH_VEHICLE_NUMBER NATIONAL CHARACTER VARYING(125) 3.31928e-05 1022
0 0 85 Error in delivery
Not supplied by OPCO
22 63 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.31928e-05 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
24, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not supplied by OPCO
', 22, 63
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 25
VEH_MODEL_TYPE_DESCRIPTION NATIONAL CHARACTER VARYING(125) 0.000222074
1022 0 0 85 Error in delivery
Not supplied by OPCO
22 63 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000222074 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
25, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not supplied by OPCO
', 22, 63
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 26
VEH_CATALOGUE_PRICE NUMERIC(11,2) 0.000102208 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000102208 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
26, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 27
VEH_CATALOGUE_PRICE_EUR NUMERIC(11,2) 0.000102208 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000102208 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
27, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 28
VEH_ACTUAL_DISCOUNT_PERC NUMERIC(6,3) 0.0004158 1754 0 0
85 0.000 0.000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0004158 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
28, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 29
VEH_COMMERCIAL_DISCNT_AMT NUMERIC(11,2) 0.000107863 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000107863 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
29, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 30
VEH_COMMERCIAL_DISCNT_AMT_EUR NUMERIC(11,2) 0.000107863 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000107863 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
30, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 31
VEH_TAX_AMT_NON_RECLAIM NUMERIC(11,2) 0.000835422 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000835422 as float))
WHERE
attnum = 31 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 31 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
31, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 32
VEH_TAX_AMT_NON_RECLAIM_EUR NUMERIC(11,2) 0.000835422 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000835422 as float))
WHERE
attnum = 32 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 32 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
32, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 33
VEH_VAT_PERCENTAGE NUMERIC(6,3) 0.333333 1754 0 0 85
0.000 0.000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 33 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 33 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
33, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 34
VEH_TOT_OPTIONS_AMT NUMERIC(11,2) 0.000159134 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000159134 as float))
WHERE
attnum = 34 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 34 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
34, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 35
VEH_TOTAL_OPTIONS_AMT_EUR NUMERIC(11,2) 0.000159134 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000159134 as float))
WHERE
attnum = 35 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 35 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
35, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 36
VEH_TOT_ACCESSOIRIES_AMT NUMERIC(11,2) 0.000317662 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000317662 as float))
WHERE
attnum = 36 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 36 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
36, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 37
VEH_TOT_ACCESSOIRIES_AMT_EUR NUMERIC(11,2) 0.000317662 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000317662 as float))
WHERE
attnum = 37 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 37 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
37, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 38
VEH_DELIVERY_COSTS NUMERIC(11,2) 0.0018622 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0018622 as float))
WHERE
attnum = 38 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 38 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
38, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 39
VEH_DELIVERY_COSTS_EUR NUMERIC(11,2) 0.0018622 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0018622 as float))
WHERE
attnum = 39 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 39 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
39, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 40
VEH_REGISTRATION_NUMBER NATIONAL CHARACTER VARYING(125) 3.43466e-05 1022
0 0 85 Error in delivery
Not supplied by OPCO
22 63 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.43466e-05 as float))
WHERE
attnum = 40 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 40 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
40, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not supplied by OPCO
', 22, 63
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 41
VEH_REGISTRATION_DATE DATE 0.000359454 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000359454 as float))
WHERE
attnum = 41 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 41 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
41, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 42
VEH_VEH_IDENTIFICATION_NUMBER NATIONAL CHARACTER VARYING(125) 3.61494e-05
1022 0 0 85 Error in delivery
Not supplied by OPCO
22 63 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.61494e-05 as float))
WHERE
attnum = 42 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 42 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
42, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not supplied by OPCO
', 22, 63
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 43
VEH_NUMBER_OF_DOORS NUMERIC(3,0) 0.2 1754 0 0 85
0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 43 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 43 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
43, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 44
VEH_ENGINE_CAPACITY NUMERIC(5,0) 0.00381679 1754 0 0 85
0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00381679 as float))
WHERE
attnum = 44 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 44 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
44, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 45
VEH_ENGINE_POWER NUMERIC(5,0) 0.00497512 1754 0 0 85
0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00497512 as float))
WHERE
attnum = 45 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 45 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
45, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 46
VEH_NUMBER_OF_CYLINDERS NUMERIC(3,0) 1 1754 0 0 85
0 0
0 0 22900146 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 46 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 46 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
46, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 47
VEH_TARE_WEIGHT NUMERIC(5,0) 0.00127714 1754 0 0 85
0 0
0 0 22900146 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0.00127714 as float))
WHERE
attnum = 47 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 47 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
47, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 48
VEH_GROSS_WEIGHT NUMERIC(5,0) 0.00218818 1754 0 0 85
0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00218818 as float))
WHERE
attnum = 48 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 48 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
48, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 49
VEH_FUEL_CONSUMPT_MANUFACTURER NUMERIC(7,2) 0.00746269 1754 0
0 85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00746269 as float))
WHERE
attnum = 49 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 49 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
49, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 50
VEH_EXTERNAL_REFERENCE NATIONAL CHARACTER VARYING(125) 7.72201e-05 1022
0 0 85 Error in delivery
Not supplied by OPCO
22 63 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (7.72201e-05 as float))
WHERE
attnum = 50 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 50 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
50, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not supplied by OPCO
', 22, 63
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 51
VEH_TYRE_SIZE_AT_DELIVERY NATIONAL CHARACTER VARYING(125) 0.00265957
1022 0 0 85 Error in delivery
Not supplied by OPCO
22 63 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00265957 as float))
WHERE
attnum = 51 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 51 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
51, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not supplied by OPCO
', 22, 63
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 52
VEH_STANDARD_DISCOUNT_PERC NUMERIC(6,3) 0.0153846 1754 0 0
85 0.000 0.000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0153846 as float))
WHERE
attnum = 52 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 52 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
52, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 53 LOAD_DATE
DATE 1 1095 0 0 85 2021-12-06
2021-12-06
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 53 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 53 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
53, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2021-12-06
', '2021-12-06
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 54
MNGSERV_TOT_RESIDUAL_VALUE NUMERIC(11,2) 0.000102596 1754 0.333333
0 85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000102596 as float))
WHERE
attnum = 54 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 54 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
54, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 55
MNGSERV_INTEREST_PERC_INVESTM NUMERIC(6,3) 0.00155039 1754 0.333333
0 85 0.000 0.000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00155039 as float))
WHERE
attnum = 55 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 55 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
55, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 56
MNGSERV_INTEREST_PERC_PREPAYM NUMERIC(6,3) 0.002 1754 0.333333 0
85 0.000 0.000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.002 as float))
WHERE
attnum = 56 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 56 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
56, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 57
MNGSERV_TOT_RESIDUAL_VALUE_EUR NUMERIC(11,2) 0.000102606 1754 0
0 85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000102606 as float))
WHERE
attnum = 57 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 57 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
57, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 58
LC_MONTHLY_LEASEINSTALMENT_EUR NUMERIC(11,2) 6.53211e-05 1754 0
0 85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (6.53211e-05 as float))
WHERE
attnum = 58 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 58 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
58, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 59
LC_MVA_FEE_OVER_MILEAGE_EUR NUMERIC(11,2) 0.00218818 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00218818 as float))
WHERE
attnum = 59 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 59 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
59, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 60
LC_MVA_REPAY_UNDER_MILEAGE_EUR NUMERIC(11,2) 0.0026738 1754 0
0 85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0026738 as float))
WHERE
attnum = 60 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 60 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
60, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 61
LC_ACTUAL_INVEST_AMOUNT_EUR NUMERIC(11,2) 6.6291e-05 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (6.6291e-05 as float))
WHERE
attnum = 61 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 61 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
61, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 62
LC_BUDGETED_INVEST_AMOUNT_EUR NUMERIC(11,2) 8.05607e-05 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (8.05607e-05 as float))
WHERE
attnum = 62 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 62 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
62, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 63
LC_INVEST_INTEREST_BASE_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 63 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 63 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
63, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 64
LC_PREPAYMNT_INTEREST_BASE_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 64 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 64 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
64, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 65
LC_UFWT_AMOUNT_EUR NUMERIC(11,2) 9.83961e-05 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (9.83961e-05 as float))
WHERE
attnum = 65 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 65 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
65, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 66
LC_EXTENSION_PENALTY_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 66 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 66 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
66, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 67
LC_EARLY_TERM_PENALTY_EUR NUMERIC(11,2) 0.000425351 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000425351 as float))
WHERE
attnum = 67 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 67 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
67, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 68
OR_ORDER_NUMBER NATIONAL CHARACTER VARYING(125) 3.31928e-05 1022 0
0 85
Not Supplied by OpCo
22 43 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.31928e-05 as float))
WHERE
attnum = 68 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 68 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
68, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 69
OR_ORDER_DATE DATE 0.000370096 1095 0 0 85 2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000370096 as float))
WHERE
attnum = 69 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 69 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
69, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 70
OR_ESTIMATED_DELIVERY_DATE DATE 0.000353982 1095 0 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000353982 as float))
WHERE
attnum = 70 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 70 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
70, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 71
CUSTOMER_SLA_ID BIGINT 0.000298507 412 0 0 85 0
0 0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000298507 as float))
WHERE
attnum = 71 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 71 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
71, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 72
LC_DRIVER_NUMBER NATIONAL CHARACTER VARYING(125) 3.31928e-05 1022 0
0 85
Not Supplied by OpCo
22 43 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.31928e-05 as float))
WHERE
attnum = 72 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 72 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
72, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 73
LC_DRIVER_NAME NATIONAL CHARACTER VARYING(125) 4.54876e-05 1022 0
0 85 Error in delivery
Not Supplied by OpCo
27 68 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (4.54876e-05 as float))
WHERE
attnum = 73 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 73 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
73, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 27, 68
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 74
OR_ORDER_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125) 0.00469484
1022 0 0 85
Not Supplied by OpCo
22 43 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00469484 as float))
WHERE
attnum = 74 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 74 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
74, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 75
OR_ORDER_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125) 0.00518135 1022
0 0 85
Not Supplied by OpCo
22 43 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00518135 as float))
WHERE
attnum = 75 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 75 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
75, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 76
LC_LOCAL_KEY_LEASE_CONTRACT NATIONAL CHARACTER VARYING(125) 3.31928e-05
1022 0 0 85 Error in delivery
Not Supplied by OpCo
22 62 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.31928e-05 as float))
WHERE
attnum = 76 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 76 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
76, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 22, 62
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 77
VEH_LOCAL_KEY_VEHICLE NATIONAL CHARACTER VARYING(125) 3.31928e-05 1022
0 0 85 Error in delivery
Not Supplied by OpCo
22 62 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.31928e-05 as float))
WHERE
attnum = 77 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 77 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
77, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 22, 62
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 78
OR_LOCAL_KEY_ORDER NATIONAL CHARACTER VARYING(125) 3.31928e-05 1022
0 0 85
Not Supplied by OpCo
22 43 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.31928e-05 as float))
WHERE
attnum = 78 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 78 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
78, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 79
LC_LOCAL_KEY_COST_CENTER NATIONAL CHARACTER VARYING(125) 0.000597729
1022 0 0 85
Not Supplied by OpCo
22 43 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000597729 as float))
WHERE
attnum = 79 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 79 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
79, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 80
LC_LOCAL_KEY_DRIVER NATIONAL CHARACTER VARYING(125) 3.31928e-05 1022
0 0 85 Error in delivery
Not Supplied by OpCo
24 65 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.31928e-05 as float))
WHERE
attnum = 80 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 80 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
80, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 24, 65
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 81
OR_LOCAL_KEY_ORDER_SUPPLIER NATIONAL CHARACTER VARYING(125) 0.00361011
1022 0 0 85
Not Supplied by OpCo
22 43 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00361011 as float))
WHERE
attnum = 81 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 81 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
81, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 82
CH_LEASE_CONTRACT_STATUS_ID INTEGER 0.0909091 97 0 0 85
1546 999993418 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0909091 as float))
WHERE
attnum = 82 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 82 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
82, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1546 ', '999993418 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 83
CH_CONTRACT_TERMINATION_ID INTEGER 0.0769231 97 0 0 85
1532 999993404 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0769231 as float))
WHERE
attnum = 83 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 83 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
83, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1532 ', '999993404 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 84
CH_CONTRACT_STOP_REASON_ID INTEGER 0.0769231 97 0 0 85
1533 999993473 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0769231 as float))
WHERE
attnum = 84 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 84 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
84, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1533 ', '999993473 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 85
CH_REGISTRATION_STATUS_ID INTEGER 0.25 97 0 0 85
1173978 999993511 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 85 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 85 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
85, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1173978 ', '999993511 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 86
CH_PURCHASED_BY_ID INTEGER 0.25 97 0 0 85
1174009 999993512 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 86 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 86 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
86, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1174009 ', '999993512 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 87
CH_WINTER_TYRES_INCLUDED_ID INTEGER 0.25 97 0 0 85
1557 999993433 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 87 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 87 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
87, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1557 ', '999993433 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 88
CH_MAKE_CODE_ID INTEGER 0.0172414 97 0 0 85 1539
999993411 0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0172414 as float))
WHERE
attnum = 88 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 88 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
88, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1539 ', '999993411 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 89
CH_MODEL_CODE_ID INTEGER 0.000158378 97 0 0 85 1540
999993412 0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000158378 as float))
WHERE
attnum = 89 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 89 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
89, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1540 ', '999993412 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 90
CH_BODY_STYLE_ID INTEGER 0.0294118 97 0 0 85 1568
999993472 0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0294118 as float))
WHERE
attnum = 90 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 90 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
90, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1568 ', '999993472 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 91
CH_DRIVING_METHOD_ID INTEGER 0.111111 97 0 0 85
1537 999993409 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 91 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 91 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
91, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1537 ', '999993409 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 92
CH_EXTERIOR_COLOUR_ID INTEGER 0.000216967 97 0 0 85
1541 999993413 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000216967 as float))
WHERE
attnum = 92 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 92 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
92, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1541 ', '999993413 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 93
CH_EXTERIOR_COLOUR_TYPE_ID INTEGER 0.2 97 0 0 85
1542 999993414 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 93 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 93 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
93, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1542 ', '999993414 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 94
CH_PRIMARY_FUEL_TYPE_ID INTEGER 0.142857 97 0 0 85
1560 999993440 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 94 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 94 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
94, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1560 ', '999993440 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 95
CH_TRANSMISSION_TYPE_ID INTEGER 0.0625 97 0 0 85
1552 999993428 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0625 as float))
WHERE
attnum = 95 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 95 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
95, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1552 ', '999993428 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 96
CH_UPHOLSTERY_TYPE_ID INTEGER 0.2 97 0 0 85 1545
999993417 0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 96 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 96 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
96, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1545 ', '999993417 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 97
CH_VEHICLE_TYPE_ID INTEGER 0.2 97 0 0 85 1544
999993416 0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 97 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 97 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
97, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1544 ', '999993416 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 98
CH_FLEET_REPORT_CATEGORY_ID INTEGER 0.2 97 0 0 85
1565 999993447 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 98 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 98 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
98, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1565 ', '999993447 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 99
CH_PRODUCT_CATEGORY_TYPE_ID INTEGER 0.142857 97 0 0 85
1559 999993439 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 99 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 99 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
99, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1559 ', '999993439 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 100 PRODUCT_ID


BIGINT 0.125 412 0 0 85 0
2147484218 0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.125 as float))
WHERE
attnum = 100 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 100 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
100, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '2147484218 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 101
LC_BOOK_VALUE NUMERIC(11,2) 7.00869e-05 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (7.00869e-05 as float))
WHERE
attnum = 101 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 101 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
101, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 102
CH_ASSET_TYPE_ID INTEGER 0.25 97 0 0 85 999990499
999993499 0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 102 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 102 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
102, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990499 ', '999993499 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 103
CH_VEHICLE_SEGMENT_ID INTEGER 0.0625 97 0 0 85
0 999992478 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0625 as float))
WHERE
attnum = 103 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 103 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
103, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '999992478 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 104 CH_OEM_ID


INTEGER 0.0416667 97 0 0 85 999990479
999993479 0 0 22900146 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0.0416667 as float))
WHERE
attnum = 104 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 104 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
104, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990479 ', '999993479 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 105
LC_STARTMILEAGELEASECONTRACT NUMERIC(7,0) 0.000348918 1754 0 0
85 0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000348918 as float))
WHERE
attnum = 105 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 105 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
105, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 106
LC_ENDMILEAGELEASECONTRACTKM NUMERIC(7,0) 5.83907e-05 1754 0 0
85 0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (5.83907e-05 as float))
WHERE
attnum = 106 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 106 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
106, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 107
LC_CONTRACT_MILEAGE_KM NUMERIC(7,0) 0.00101937 1754 0 0 85
0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00101937 as float))
WHERE
attnum = 107 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 107 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
107, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 108
LC_BOOK_VALUE_EUR NUMERIC(11,2) 7.00869e-05 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (7.00869e-05 as float))
WHERE
attnum = 108 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 108 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
108, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 109
LC_DISCONMONTHLY_LEASEINST_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 109 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 109 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
109, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 110
CH_VEHICLE_SEGMENT_LOCAL_ID INTEGER 0.2 97 0 0 85
1237437 999993636 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 110 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 110 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
110, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1237437 ', '999993636 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 111
CH_MVA_SYSTEM_ID INTEGER 0.25 97 0 0 85 1516637
999993522 0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 111 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 111 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
111, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1516637 ', '999993522 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 112
CH_BUY_BACK_CODE INTEGER 0.2 97 0 0 85 1516670
999993523 0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 112 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 112 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
112, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1516670 ', '999993523 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 113
CH_RISK_RULING_CODE INTEGER 0.25 97 0 0 85
1516703 999993524 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 113 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 113 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
113, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1516703 ', '999993524 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 114
CH_VEHICLE_GROUP_CODE INTEGER 0.25 97 0 0 85
1275277 999993637 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 114 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 114 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
114, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1275277 ', '999993637 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 115
CH_DATA_SUPPLIER_VEHICLE_CODE INTEGER 0.25 97 0 0 85
1237503 999993638 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 115 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 115 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
115, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1237503 ', '999993638 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 116
CH_OWN_DAMAGE_RISK_ID INTEGER 0.25 97 0 0 85
1237536 999993641 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 116 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 116 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
116, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1237536 ', '999993641 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 117
CH_UFWT_TYPE_ID INTEGER 0.25 97 0 0 85 1237371
999993634 0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 117 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 117 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
117, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1237371 ', '999993634 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 118
CH_MVA_SETTLEMENT_ID INTEGER 0.25 97 0 0 85
1237404 999993635 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 118 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 118 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
118, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1237404 ', '999993635 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 119
LC_CUSTOMER_DRIVER_ID NATIONAL CHARACTER VARYING(125) 0.2 1022 0
0 85
Not Supplied by OpCo
22 43 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 119 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 119 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
119, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 120
VEH_CO2_LEVEL_COMBINED NUMERIC(6,0) 0.0714286 1754 0 0 85
0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0714286 as float))
WHERE
attnum = 120 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 120 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
120, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 121
CH_SECONDARY_FUEL_TYPE INTEGER 0.25 97 0 0 85 1560
999993517 0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 121 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 121 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
121, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1560 ', '999993517 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 122
CH_NUMBER_OF_FORWARD_GEARS INTEGER 0.1 97 0 0 85
999990516 999993516 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.1 as float))
WHERE
attnum = 122 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 122 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
122, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990516 ', '999993516 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 123
VEH_INDICATOR_NEW_MODEL CHARACTER(1) 1 1058 0.333333 0 85

0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 123 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 123 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
123, 1058, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 124
VEH_MODEL_END_DATE DATE 1 1095 0.333333 0 85 2000-
01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 124 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 124 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
124, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 125
VEH_MODEL_INTRO_DATE DATE 1 1095 0.333333 0 85 2000-
01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 125 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 125 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
125, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 126
VEH_MODEL_FACELIFT_INTRO_DATE DATE 1 1095 0.333333 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 126 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 126 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
126, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 127
VEH_MODEL_FACELIFT_END_DATE DATE 0.5 1095 0.333333 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 127 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 127 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
127, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 128
VEH_NUMBER_OF_SEATS NUMERIC(2,0) 1 1754 0.333333 0 85
0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 128 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 128 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
128, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 129
LC_DRIVER_SET_SEND_DATE DATE 1 1095 0.333333 0 85 2000-
01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 129 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 129 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
129, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 130
LC_INTEREST_LOSS_AT_TERM NUMERIC(11,2) 1 1754 0.333333 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 130 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 130 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
130, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 131
LC_INTEREST_LOSS_AT_TERM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 131 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 131 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
131, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 132
LC_MVA_FEE_MIN_OVERMILEAGE NUMERIC(17,7) 1 1754 0.333333 0
85 0.0000000 0.0000000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 132 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 132 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
132, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 133
LC_MVA_FEE_MIN_OVERMILEAGE_EUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 133 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 133 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
133, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 134
LC_MVA_FEE_MID_OVERMILEAGE NUMERIC(17,7) 1 1754 0.333333 0
85 0.0000000 0.0000000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 134 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 134 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
134, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 135
LC_MVA_FEE_MID_OVERMILEAGE_EUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 135 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 135 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
135, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 136
LC_MVA_FEE_MAX_OVERMILEAGE NUMERIC(17,7) 1 1754 0.333333 0
85 0.0000000 0.0000000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 136 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 136 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
136, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 137
LC_MVA_FEE_MAX_OVERMILEAGE_EUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 137 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 137 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
137, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 138
LC_MVAREPAY_MINUNDERMILEAGE NUMERIC(17,7) 1 1754 0.333333 0
85 0.0000000 0.0000000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 138 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 138 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
138, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 139
LC_MVAREPAY_MINUNDERMILEAGEEUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 139 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 139 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
139, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 140
LC_MVAREPAY_MIDUNDERMILEAGE NUMERIC(17,7) 1 1754 0.333333 0
85 0.0000000 0.0000000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 140 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 140 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
140, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 141
LC_MVAREPAY_MIDUNDERMILEAGEEUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 141 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 141 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
141, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 142
LC_MVAREPAY_MAXUNDERMILEAGE NUMERIC(17,7) 1 1754 0.333333 0
85 0.0000000 0.0000000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 142 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 142 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
142, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 143
LC_MVAREPAY_MAXUNDERMILEAGEEUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 143 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 143 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
143, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 144
LC_MVA_THRESHHIGH_OVER_MILEAGE NUMERIC(7,0) 1 1754 0.333333
0 85 0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 144 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 144 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
144, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 145
LC_MVA_THESHHIGH_UNDER_MILEAGE NUMERIC(7,0) 1 1754 0.333333
0 85 0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 145 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 145 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
145, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 146
LC_MVA_THRESHLOW_UNDER_MILEAGE NUMERIC(7,0) 1 1754 0.333333
0 85 0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 146 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 146 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
146, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 147
LC_MVA_THRESHLOW_OVER_MILEAGE NUMERIC(7,0) 1 1754 0.333333 0
85 0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 147 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 147 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
147, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 148
LC_TERMINATION_PROCESS_DATE DATE 0.5 1095 0.333333 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 148 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 148 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
148, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 149
LC_CREATION_DATE_LEASECONTRACT DATE 1 1095 0.333333 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 149 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 149 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
149, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 150
LC_FORMAL_EXTENSION_APPLICABLE NATIONAL CHARACTER VARYING(125)
0.333333 1022 0.333333 0 85 Error in delivery
Not Supplied by OpCo
22 41 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 150 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 150 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
150, 1022, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 22, 41
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 151
LC_ACTIVATION_DATE_FORMAL_EXT DATE 1 1095 0.333333 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 151 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 151 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
151, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 152
LC_CONTRACT_DURATION_FORMAL_EX NUMERIC(3,0) 1 1754 0.333333
0 85 0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 152 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 152 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
152, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 153
LC_CONTRACT_MILEAGE_FORMAL_EXT NUMERIC(7,0) 1 1754 0.333333
0 85 0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 153 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 153 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
153, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 154
LC_RESIDUAL_VALUE_FORM_EXT NUMERIC(11,2) 1 1754 0.333333 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 154 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 154 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
154, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 155
LC_RESIDUAL_VALUE_FORM_EXT_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 155 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 155 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
155, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 156
LC_CAR_INSPEC_ENG_DAM_AM NUMERIC(11,2) 1 1754 0.333333 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 156 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 156 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
156, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 157
LC_CAR_INSPEC_ENG_DAM_AM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 157 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 157 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
157, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 158
LC_CAR_INSPEC_EXT_DAM_AM NUMERIC(11,2) 1 1754 0.333333 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 158 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 158 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
158, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 159
LC_CAR_INSPEC_EXT_DAM_AM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 159 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 159 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
159, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 160
LC_CAR_INSPEC_INT_DAM_AM NUMERIC(11,2) 1 1754 0.333333 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 160 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 160 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
160, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 161
LC_CAR_INSPEC_INT_DAM_AM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 161 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 161 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
161, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 162
LC_MVA_UM_LIMIT_PERCENTAGE NUMERIC(6,3) 1 1754 0.333333 0
85 0.000 0.000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 162 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 162 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
162, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 163
LC_MVA_OM_LIMIT_PERCENTAGE NUMERIC(6,3) 1 1754 0.333333 0
85 0.000 0.000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 163 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 163 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
163, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 164
LC_MVA_UM_FACTOR NUMERIC(6,3) 1 1754 0.333333 0 85
0.000 0.000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 164 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 164 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
164, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 165
LC_MVA_OM_FACTOR NUMERIC(6,3) 1 1754 0.333333 0 85
0.000 0.000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 165 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 165 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
165, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 166
CH_TYRE_WIDTH_FRONT INTEGER 0.25 97 0 0 85
1600473 999993675 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 166 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 166 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
166, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1600473 ', '999993675 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 167
CH_TYRE_WIDTH_REAR INTEGER 0.25 97 0 0 85
1600473 999993520 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 167 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 167 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
167, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1600473 ', '999993520 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 168
CH_TYRE_RIM_DIAM_FRONT INTEGER 0.25 97 0 0 85
1600474 999993677 0 0
22900146 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 168 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 168 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
168, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1600474 ', '999993677 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 169
CH_TYRE_RIM_DIAM_REAR INTEGER 0.25 97 0 0 85
1600474 999993521 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 169 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 169 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
169, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1600474 ', '999993521 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 170
VEH_CONSUMER_PRICE NUMERIC(11,2) 0.000402576 1754 0.333333 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000402576 as float))
WHERE
attnum = 170 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 170 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
170, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 171
VEH_CONSUMER_PRICE_EUR NUMERIC(11,2) 0.000402576 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000402576 as float))
WHERE
attnum = 171 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 171 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
171, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 172
VEH_LUXURY_TAX_AM NUMERIC(11,2) 0.00311526 1754 0.333333 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00311526 as float))
WHERE
attnum = 172 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 172 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
172, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 173
VEH_LUXURY_TAX_AM_EUR NUMERIC(11,2) 0.00311526 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00311526 as float))
WHERE
attnum = 173 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 173 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
173, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 174
VEH_ENROLMENT_TAX_AM NUMERIC(11,2) 0.000182849 1754 0.333333 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000182849 as float))
WHERE
attnum = 174 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 174 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
174, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 175
VEH_ENROLMENT_TAX_AM_EUR NUMERIC(11,2) 0.000182849 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000182849 as float))
WHERE
attnum = 175 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 175 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
175, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 176
LC_UFWT_TOTAL_ASSESSED_AM NUMERIC(11,2) 7.8883e-05 1754 0.333333
0 85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (7.8883e-05 as float))
WHERE
attnum = 176 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 176 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
176, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 177
LC_UFWT_TOTAL_ASSESSED_AM_EUR NUMERIC(11,2) 7.8883e-05 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (7.8883e-05 as float))
WHERE
attnum = 177 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 177 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
177, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 178
LC_RESIDUAL_VALUE_BASE NUMERIC(11,2) 0.000100624 1754 0.333333 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000100624 as float))
WHERE
attnum = 178 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 178 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
178, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 179
LC_RESIDUAL_VALUE_BASE_EUR NUMERIC(11,2) 0.000100624 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000100624 as float))
WHERE
attnum = 179 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 179 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
179, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 180
LC_INSURANCE_LOSS_RATIO NUMERIC(17,5) 0.000101709 1754 0.333333 0
85 0.00000 0.00000
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000101709 as float))
WHERE
attnum = 180 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 180 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
180, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00000 ', '0.00000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 181
LC_LAST_KNOWN_MILEAGE NUMERIC(7,0) 5.30195e-05 1754 0 0 85
0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (5.30195e-05 as float))
WHERE
attnum = 181 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 181 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
181, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 182
LC_LAST_KNOWN_MILEAGE_DATE DATE 0.000405351 1095 0 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000405351 as float))
WHERE
attnum = 182 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 182 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
182, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 183
LC_CONTRACT_DURATION_FP NUMERIC(3,0) 1 1754 0 0 85
0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 183 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 183 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
183, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 184
LC_CONTRACT_MILEAGE_FP NUMERIC(7,0) 1 1754 0 0 85
0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 184 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 184 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
184, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 185
LC_MONTHLY_LEASEINSTALM_FP NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 185 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 185 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
185, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 186
LC_BUDGETED_INVEST_AM_FP NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 186 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 186 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
186, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 187
LC_MONTHLY_LEASEINSTALM_FP_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 187 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 187 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
187, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 188
LC_BUDGETED_INVEST_AM_FP_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 188 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 188 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
188, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 189
LC_START_DATE_LEASECONTRACT_FP DATE 1 1095 0 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 189 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 189 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
189, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 190
LC_END_DATE_LEASECONTRACT_FP DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 190 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 190 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
190, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 191
OR_CREATION_DATE_ORDER DATE 1 1095 0 0 85 2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 191 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 191 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
191, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 192
LC_REGISTRATIONDATE_START DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 192 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 192 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
192, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 193
LC_REGISTRATIONDT_TERMINATION DATE 0.5 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 193 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 193 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
193, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 194
LC_MVA_DEPR_TO_BE_INVOICED NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 194 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 194 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
194, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 195
LC_MVA_RM_TO_BE_INVOICED NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 195 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 195 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
195, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 196
LC_MVA_TYRES_TO_BE_INVOICED NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 196 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 196 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
196, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 197
LC_UFWT_TO_BE_INVOICED NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 197 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 197 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
197, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 198
LC_INVOICINGENDDATE_LC DATE 1 1095 0 0 85 2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 198 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 198 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
198, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 199
CH_ACTIVATIONTYPE_LC INTEGER 0.25 97 0 0 85
1669769 999993550 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 199 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 199 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
199, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1669769 ', '999993550 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 200
CH_DEACTIVATIONTYPE_LC INTEGER 0.25 97 0 0 85
1669801 999993551 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 200 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 200 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
200, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1669801 ', '999993551 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 201
LC_LASTRECOGNIZEDOBJMILEAGE NUMERIC(7,0) 0.000124363 1754 0.333333
0 85 0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000124363 as float))
WHERE
attnum = 201 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 201 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
201, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 202
LC_LASTRECOGNIZEDOBJMILEAGEDT DATE 0.00142045 1095 0.333333 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00142045 as float))
WHERE
attnum = 202 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 202 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
202, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 203
CH_USAGE_BY_CUSTOMER_ID INTEGER 0.333333 97 0 0 85
999990583 999993583 0 0
22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 203 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 203 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
203, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990583 ', '999993583 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 204
LC_LOCAL_KEY_BUSINESS_UNIT NATIONAL CHARACTER VARYING(125) 0.5 1022
0.333333 0 85 Error in delivery
Not Supplied by OpCo
22 41 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 204 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 204 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
204, 1022, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 22, 41
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 205
LC_BUSINESS_UNIT_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022
0.333333 0 85 Error in delivery
Not Supplied by OpCo
22 41 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 205 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 205 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
205, 1022, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 22, 41
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 206
LC_DRIVER_FIRST_NAME NATIONAL CHARACTER VARYING(125) 0.000319489 1022
0 0 85
Not Supplied by OpCo
22 43 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000319489 as float))
WHERE
attnum = 206 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 206 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
206, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 207
LC_DRIVER_LAST_NAME NATIONAL CHARACTER VARYING(125) 7.21137e-05 1022
0 0 85
Not Supplied by OpCo
22 43 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (7.21137e-05 as float))
WHERE
attnum = 207 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 207 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
207, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 208
LC_SHORT_TERM_RENTAL_INDICATOR CHARACTER(1) 0.5 1058 0 0
85
N
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 208 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 208 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
208, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 209
LC_ALLOCATION_STATUS_INDICATOR CHARACTER(1) 0.333333 1058 0
0 85
N
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 209 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 209 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
209, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 210
LC_NUMBER_OF_TYRES_IN_CONTRACT NUMERIC(2,0) 0.0357143 1754 0
0 85 0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0357143 as float))
WHERE
attnum = 210 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 210 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
210, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 211
TELEMATICS_DEV_INSTALL_FLAG CHARACTER(1) 0.5 1058 0 0 85

N
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 211 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 211 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
211, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 212
TELEMATICS_DEV_INSTALL_DATE DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 212 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 212 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
212, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 213
TELEMATICS_DEV_DEINSTALL_DATE DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 213 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 213 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
213, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 214
PRECEDING_LEASECONTRVEHICLE_ID BIGINT 0.00022686 412 0 0
85 0 999999999999999999 0
0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00022686 as float))
WHERE
attnum = 214 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 214 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
214, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '999999999999999999 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 215
LC_RENEWAL_INDICATOR CHARACTER(1) 0.333333 1058 0 0 85

N
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 215 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 215 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
215, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 216
LC_RELEASING_INDICATOR CHARACTER(1) 0.333333 1058 0 0 85

N
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 216 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 216 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
216, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 217
LC_RELEASING_START_DATE DATE 0.00641026 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00641026 as float))
WHERE
attnum = 217 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 217 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
217, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 218
CH_ORDER_STATUS_ID INTEGER 0.1 97 0 0 85 0
999993574 0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.1 as float))
WHERE
attnum = 218 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 218 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
218, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '999993574 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 219
OR_ACTUAL_DELIVERY_DATE DATE 0.00034626 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00034626 as float))
WHERE
attnum = 219 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 219 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
219, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 220
OR_ORDER_RECEIPT_CONFIRM_DATE DATE 0.00162075 1095 0 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00162075 as float))
WHERE
attnum = 220 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 220 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
220, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 221
OR_CERTIFICATE_RECEIPT_DATE DATE 0.000355492 1095 0 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000355492 as float))
WHERE
attnum = 221 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 221 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
221, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 222
OR_FIRSTDRIVERAPPOINTMENT_DATE DATE 1 1095 0 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 222 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 222 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
222, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 223
OR_DRIVER_APPOINTMENT_DATE DATE 0.000434028 1095 0 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000434028 as float))
WHERE
attnum = 223 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 223 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
223, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 224
OR_ORDER_CANCELLATION_DATE DATE 0.0126582 1095 0 0 85
2000-01-01
2000-01-01
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0126582 as float))
WHERE
attnum = 224 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 224 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
224, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 225
OR_NUMBEROF_DRIVERAPPOINTMENTS NUMERIC(2,0) 0.0909091 1754 0
0 85 0 0
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0909091 as float))
WHERE
attnum = 225 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 225 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
225, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 226
OR_ADVANCE_PURCHASE_INDICATOR CHARACTER(1) 0.333333 1058 0 0
85

0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 226 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 226 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
226, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 227
LC_DOWNPAYMENT_INVESTMENT_AM NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 227 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 227 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
227, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._BTS_22900146 f 0 3 1 228
LC_DOWNPAYMENT_INVESTMENT_AM_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22900146 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 228 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 228 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
228, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE VERSION 1 -------------

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 1
LEASE_SERVICE_ID INTEGER 0.0204082 97 0 0 16554
0 0 10305069 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0204082 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 2 SERVICE_DATE
DATE 0.00108814 1095 0 0 16554

0 0 10305069 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0.00108814 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 3
LEASE_CONTRACT_VEHICLE_ID BIGINT 3.52336e-05 412 0 0 16554
0 0
10305069 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (3.52336e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 4
SUPPLIER_INVOICE_ID BIGINT 1.94556e-05 412 0 0 16554
0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1.94556e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 5 AMOUNT_TYPE
CHARACTER(1) 0.333333 1058 0 0 16554

0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 6
DELIVERED_SERVICE_AMOUNT NUMERIC(11,2) 2.53942e-05 1754 0 0
16554
0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (2.53942e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 7
DELIVERED_SERVICE_AMOUNT_EUR NUMERIC(11,2) 2.53942e-05 1754 0 0
16554
0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (2.53942e-05 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 8
SERVICE_MILEAGE NUMERIC(7,0) 0.000113161 1754 0 0 16554
0 0 10305069
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000113161 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 9
SERVICE_SUPPLIER_ID BIGINT 0.333333 412 0 0 16554
0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
9, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 10
SERVICE_MILEAGE_KM NUMERIC(7,0) 0.000113161 1754 0 0 16554

0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000113161 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 11
SERVICE_QUANTITY NUMERIC(11,2) 1 1754 0 0 16554
0 0 10305069
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 12 LOAD_DATE
DATE 1 1095 0 0 16554

0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
12, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 13
_DROPPED_2_SERVICE_NUMBER CHARACTER(50) 0.000791139 1058 0 0
16554

0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000791139 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
13, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 14 SERVICE_ID
BIGINT 1.25752e-06 412 0 0 16554
0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1.25752e-06 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
14, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 15
_DROPPED_2_LOCAL_KEY_SERVICE CHARACTER(50) 1.34293e-06 1058 0 0
16554

0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1.34293e-06 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
15, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 16
CH_SERVICE_TYPE_ID INTEGER 0.5 97 0 0 16554
0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
DELETE FROM _t_statistic
WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
16, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 17
CH_SUBJECT_TYPE_ID INTEGER 0.5 97 0 0 16554
0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
17, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 18
CH_SUBJECT_BRAND_ID INTEGER 0.5 97 0 0 16554
0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
18, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 19
BOOK_PERIOD_DATE DATE 0.0714286 1095 0 0 16554

0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0714286 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
19, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 20
SERVICE_TYPE_ID INTEGER 0.333333 97 0 0 16554
0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
20, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 21 VEHICLE_AGE
INTEGER 0.00666667 97 0 0 16554
0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00666667 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
21, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_1 f 0 0 0 22 DAMAGE_ID
BIGINT 0.000834028 412 0 0 16554
0 0 10305069 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000834028 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
22, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_DELIVERED_SERVICE VERSION 2 -------------

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 1
LEASE_SERVICE_ID INTEGER 0.0204082 97 0 0 16554
0 0 13958860 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0204082 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 2 SERVICE_DATE
DATE 0.00108814 1095 0 0 16554

0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00108814 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
DELETE FROM _t_statistic
WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 3
LEASE_CONTRACT_VEHICLE_ID BIGINT 3.52336e-05 412 0 0 16554
0 0
13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.52336e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
DELETE FROM _t_statistic
WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 4
SUPPLIER_INVOICE_ID BIGINT 1.94556e-05 412 0 0 16554
0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1.94556e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 5 AMOUNT_TYPE
CHARACTER(1) 0.333333 1058 0 0 16554

0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 6
DELIVERED_SERVICE_AMOUNT NUMERIC(11,2) 2.53942e-05 1754 0 0
16554
0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (2.53942e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 7
DELIVERED_SERVICE_AMOUNT_EUR NUMERIC(11,2) 2.53942e-05 1754 0 0
16554
0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (2.53942e-05 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 8
SERVICE_MILEAGE NUMERIC(7,0) 0.000113161 1754 0 0 16554
0 0 13958860
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000113161 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 9
SERVICE_SUPPLIER_ID BIGINT 0.333333 412 0 0 16554
0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
9, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 10
SERVICE_MILEAGE_KM NUMERIC(7,0) 0.000113161 1754 0 0 16554

0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000113161 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 11
SERVICE_QUANTITY NUMERIC(11,2) 1 1754 0 0 16554
0 0 13958860
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 12 LOAD_DATE
DATE 1 1095 0 0 16554

0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
12, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 13 SERVICE_ID
BIGINT -1 412 0 0 16554
0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
13, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 14
CH_SERVICE_TYPE_ID INTEGER 0.5 97 0 0 16554
0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
14, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 15
CH_SUBJECT_TYPE_ID INTEGER 0.5 97 0 0 16554
0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
15, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 16
CH_SUBJECT_BRAND_ID INTEGER 0.5 97 0 0 16554
0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
16, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 17
BOOK_PERIOD_DATE DATE 0.0714286 1095 0 0 16554

0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0714286 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
17, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 18
SERVICE_TYPE_ID INTEGER 0.333333 97 0 0 16554
0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
18, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 19 VEHICLE_AGE
INTEGER 0.00666667 97 0 0 16554
0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00666667 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
19, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 20 DAMAGE_ID
BIGINT 0.000834028 412 0 0 16554
0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000834028 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
20, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 21
SERVICE_NUMBER NATIONAL CHARACTER VARYING(125) 0 1022 0 0
16554

0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
21, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 22
LOCAL_KEY_SERVICE NATIONAL CHARACTER VARYING(125) 0 1022 0 0
16554

0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
22, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11505949_2 f 0 0 0 23
NUMBER_OF_REPLACEMENT_CAR_DAYS NUMERIC(7,0) 0 1754 0 0
16554
0 0 13958860 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
23, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_LP_INVOICE_DETAIL VERSION 1 -------------

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_1 f 0 0 0 1
LEASE_SERVICE_ID INTEGER 0.027027 97 0 0 16554
0 0 10305078 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.027027 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_1 f 0 0 0 2
BOOK_PERIOD_DATE DATE 0.111111 1095 0 0 16554

0 0 10305078 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_1 f 0 0 0 3
LEASE_CONTRACT_VEHICLE_ID BIGINT 3.84778e-05 412 0 0 16554
0 0
10305078 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.84778e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_1 f 0 0 0 4
LP_INVOICE_ID BIGINT 4.34103e-05 412 0 0 16554
0 0 10305078 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (4.34103e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_1 f 0 0 0 5 AMOUNT_TYPE
CHARACTER(1) 0.5 1058 0 0 16554

0 0 10305078 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_1 f 0 0 0 6
INVOICE_AMOUNT NUMERIC(11,2) 2.96604e-05 1754 0 0 16554
0 0 10305078
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (2.96604e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_1 f 0 0 0 7
INVOICE_AMOUNT_EUR NUMERIC(11,2) 2.96604e-05 1754 0 0 16554

0 0 10305078 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (2.96604e-05 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_1 f 0 0 0 8
INVOICED_MILEAGE NUMERIC(7,0) 0.000345304 1754 0 0 16554
0 0 10305078
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000345304 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_1 f 0 0 0 9
INVOICED_MILEAGE_KM NUMERIC(7,0) 0.000345304 1754 0 0 16554

0 0 10305078 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000345304 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_1 f 0 0 0 10 LOAD_DATE
DATE 1 1095 0 0 16554

0 0 10305078 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
10, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_1 f 0 0 0 11
LP_INVOICE_LINE_ID BIGINT 7.07918e-07 412 0 0 16554
0 0 10305078 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (7.07918e-07 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
11, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_1 f 0 0 0 12
_DROPPED_2_LOCAL_KEY_LP_INVOICE_LINE CHARACTER(50) 7.61277e-07 1058
0 0 16554

0 0 10305078 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (7.61277e-07 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
12, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_1 f 0 0 0 13 VEHICLE_AGE
INTEGER 0.00694444 97 0 0 16554
0 0 10305078 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00694444 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
13, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_1 f 0 0 0 14 DAMAGE_ID
BIGINT 0.00194553 412 0 0 16554
0 0 10305078 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00194553 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
14, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.F_LP_INVOICE_DETAIL VERSION 2 -------------

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_2 f 0 0 0 1
LEASE_SERVICE_ID INTEGER 0.027027 97 0 0 16554
0 0 11506138 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.027027 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_2 f 0 0 0 2
BOOK_PERIOD_DATE DATE 0.111111 1095 0 0 16554

0 0 11506138 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_2 f 0 0 0 3
LEASE_CONTRACT_VEHICLE_ID BIGINT 3.84778e-05 412 0 0 16554
0 0
11506138 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.84778e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_2 f 0 0 0 4
LP_INVOICE_ID BIGINT 4.34103e-05 412 0 0 16554
0 0 11506138 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (4.34103e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_2 f 0 0 0 5 AMOUNT_TYPE
CHARACTER(1) 0.5 1058 0 0 16554

0 0 11506138 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_2 f 0 0 0 6
INVOICE_AMOUNT NUMERIC(11,2) 2.96604e-05 1754 0 0 16554
0 0 11506138
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (2.96604e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_2 f 0 0 0 7
INVOICE_AMOUNT_EUR NUMERIC(11,2) 2.96604e-05 1754 0 0 16554

0 0 11506138 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (2.96604e-05 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_2 f 0 0 0 8
INVOICED_MILEAGE NUMERIC(7,0) 0.000345304 1754 0 0 16554
0 0 11506138
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000345304 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_2 f 0 0 0 9
INVOICED_MILEAGE_KM NUMERIC(7,0) 0.000345304 1754 0 0 16554

0 0 11506138 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000345304 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_2 f 0 0 0 10 LOAD_DATE
DATE 1 1095 0 0 16554

0 0 11506138 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
10, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_2 f 0 0 0 11
LP_INVOICE_LINE_ID BIGINT -1 412 0 0 16554
0 0 11506138 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (-1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
11, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_2 f 0 0 0 12 VEHICLE_AGE
INTEGER 0.00694444 97 0 0 16554
0 0 11506138 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00694444 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
12, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_2 f 0 0 0 13 DAMAGE_ID
BIGINT 0.00194553 412 0 0 16554
0 0 11506138 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00194553 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
13, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_11506100_2 f 0 0 0 14
LOCAL_KEY_LP_INVOICE_LINE NATIONAL CHARACTER VARYING(125) 0 1022
0 0 16554

0 0 11506138 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
14, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE VERSION 1 -------------

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 1
LEASE_CONTRACT_VEHICLE_ID BIGINT 3.31928e-05 412 0 0 16554
0 0
10346022 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1;

UPDATE _t_attribute
SET
attdispersion = (CAST (3.31928e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 2 CUSTOMER_ID
BIGINT 0.000348918 412 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000348918 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 3
LC_LEASE_CONTRACT_NUMBER NATIONAL CHARACTER VARYING(125) 3.34426e-05
1022 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.34426e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 4
LC_COST_CENTER_NAME NATIONAL CHARACTER VARYING(125) 0.000881834 1022
0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000881834 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 5 LC_SLB_FLAG
CHARACTER(1) 0.5 1058 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 6
LC_START_DATE_LEASECONTRACT DATE 0.00034188 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00034188 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
6, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 7
LC_END_DATE_LEASECONTRACT DATE 0.000412541 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000412541 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
7, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 8
LC_BUDG_END_DATE_LEASECONTRACT DATE 0.000238039 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000238039 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 9
LC_STARTMILEAGELEASECONTRACTKM NUMERIC(7,0) 0.000348918 1754 0
0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000348918 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 10
LC_ENDMILEAGELEASECONTRACT NUMERIC(7,0) 5.83907e-05 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (5.83907e-05 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 11
LC_CONTRACT_DURATION NUMERIC(3,0) 0.0133333 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0133333 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 12
LC_CONTRACT_MILEAGE NUMERIC(7,0) 0.00102041 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00102041 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 13
LC_DISCONMONTHLY_LEASEINST NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 14
LC_MONTHLY_LEASEINSTALMENT NUMERIC(11,2) 6.53211e-05 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (6.53211e-05 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
14, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 15
LC_MVA_FEE_OVER_MILEAGE NUMERIC(11,2) 0.00218818 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00218818 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
15, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 16
LC_MVA_REPAY_UNDER_MILEAGE NUMERIC(11,2) 0.0026738 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0026738 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
16, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 17
LC_ACTUAL_INVEST_AMOUNT NUMERIC(11,2) 6.63922e-05 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (6.63922e-05 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
17, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 18
LC_BUDGETED_INVEST_AMOUNT NUMERIC(11,2) 8.06192e-05 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (8.06192e-05 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
18, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 19
LC_INVEST_INTEREST_BASE NUMERIC(11,2) 1 1754 0 0 16554
0 0 10346022
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
19, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 20
LC_PREPAYMNT_INTEREST_BASE NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
20, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 21
LC_UFWT_AMOUNT NUMERIC(11,2) 9.83961e-05 1754 0 0 16554
0 0 10346022
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (9.83961e-05 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
21, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 22
LC_EXTENSION_PENALTY NUMERIC(11,2) 1 1754 0 0 16554
0 0 10346022
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
22, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 23
LC_EARLY_TERM_PENALTY NUMERIC(11,2) 0.000425894 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000425894 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
23, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 24
VEH_VEHICLE_NUMBER NATIONAL CHARACTER VARYING(125) 3.34426e-05 1022
0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.34426e-05 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
24, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 25
VEH_MODEL_TYPE_DESCRIPTION NATIONAL CHARACTER VARYING(125) 0.000222965
1022 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000222965 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
25, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 26
VEH_CATALOGUE_PRICE NUMERIC(11,2) 0.000102291 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000102291 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
26, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 27
VEH_CATALOGUE_PRICE_EUR NUMERIC(11,2) 0.000102291 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000102291 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
27, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 28
VEH_ACTUAL_DISCOUNT_PERC NUMERIC(6,3) 0.000415973 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000415973 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
28, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 29
VEH_COMMERCIAL_DISCNT_AMT NUMERIC(11,2) 0.000107863 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000107863 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
29, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 30
VEH_COMMERCIAL_DISCNT_AMT_EUR NUMERIC(11,2) 0.000107863 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000107863 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
30, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 31
VEH_TAX_AMT_NON_RECLAIM NUMERIC(11,2) 0.000835422 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000835422 as float))
WHERE
attnum = 31 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 31 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
31, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 32
VEH_TAX_AMT_NON_RECLAIM_EUR NUMERIC(11,2) 0.000835422 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000835422 as float))
WHERE
attnum = 32 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 32 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
32, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 33
VEH_VAT_PERCENTAGE NUMERIC(6,3) 0.333333 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 33 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 33 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
33, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 34
VEH_TOT_OPTIONS_AMT NUMERIC(11,2) 0.00015916 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00015916 as float))
WHERE
attnum = 34 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 34 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
34, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 35
VEH_TOTAL_OPTIONS_AMT_EUR NUMERIC(11,2) 0.00015916 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00015916 as float))
WHERE
attnum = 35 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 35 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
35, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 36
VEH_TOT_ACCESSOIRIES_AMT NUMERIC(11,2) 0.000317965 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000317965 as float))
WHERE
attnum = 36 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 36 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
36, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 37
VEH_TOT_ACCESSOIRIES_AMT_EUR NUMERIC(11,2) 0.000317965 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000317965 as float))
WHERE
attnum = 37 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 37 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
37, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 38
VEH_DELIVERY_COSTS NUMERIC(11,2) 0.00186916 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00186916 as float))
WHERE
attnum = 38 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 38 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
38, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 39
VEH_DELIVERY_COSTS_EUR NUMERIC(11,2) 0.00186916 1754 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00186916 as float))
WHERE
attnum = 39 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 39 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
39, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 40
VEH_REGISTRATION_NUMBER NATIONAL CHARACTER VARYING(125) 3.45937e-05 1022
0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.45937e-05 as float))
WHERE
attnum = 40 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 40 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
40, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 41
VEH_REGISTRATION_DATE DATE 0.000359842 1095 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000359842 as float))
WHERE
attnum = 41 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 41 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
41, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 42
VEH_VEH_IDENTIFICATION_NUMBER NATIONAL CHARACTER VARYING(125) 3.63755e-05
1022 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.63755e-05 as float))
WHERE
attnum = 42 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 42 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
42, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 43
VEH_NUMBER_OF_DOORS NUMERIC(3,0) 0.2 1754 0 0 16554
0 0 10346022
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 43 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 43 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
43, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 44
VEH_ENGINE_CAPACITY NUMERIC(5,0) 0.00381679 1754 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00381679 as float))
WHERE
attnum = 44 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 44 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
44, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 45
VEH_ENGINE_POWER NUMERIC(5,0) 0.005 1754 0 0 16554
0 0 10346022
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.005 as float))
WHERE
attnum = 45 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 45 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
45, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 46
VEH_NUMBER_OF_CYLINDERS NUMERIC(3,0) 1 1754 0 0 16554
0 0 10346022
10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 46 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 46 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
46, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 47
VEH_TARE_WEIGHT NUMERIC(5,0) 0.00127714 1754 0 0 16554
0 0 10346022
10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0.00127714 as float))
WHERE
attnum = 47 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 47 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
47, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 48
VEH_GROSS_WEIGHT NUMERIC(5,0) 0.00219298 1754 0 0 16554
0 0 10346022
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00219298 as float))
WHERE
attnum = 48 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 48 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
48, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 49
VEH_FUEL_CONSUMPT_MANUFACTURER NUMERIC(7,2) 0.00746269 1754 0
0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00746269 as float))
WHERE
attnum = 49 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 49 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
49, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 50
VEH_EXTERNAL_REFERENCE NATIONAL CHARACTER VARYING(125) 7.75014e-05 1022
0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (7.75014e-05 as float))
WHERE
attnum = 50 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 50 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
50, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 51
VEH_TYRE_SIZE_AT_DELIVERY NATIONAL CHARACTER VARYING(125) 0.00266667
1022 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00266667 as float))
WHERE
attnum = 51 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 51 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
51, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 52
VEH_STANDARD_DISCOUNT_PERC NUMERIC(6,3) 0.0153846 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0153846 as float))
WHERE
attnum = 52 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 52 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
52, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 53 LOAD_DATE
DATE 1 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 53 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 53 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
53, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 54
MNGSERV_TOT_RESIDUAL_VALUE NUMERIC(11,2) 0.000102596 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000102596 as float))
WHERE
attnum = 54 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 54 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
54, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 55
MNGSERV_INTEREST_PERC_INVESTM NUMERIC(6,3) 0.00155039 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00155039 as float))
WHERE
attnum = 55 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 55 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
55, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 56
MNGSERV_INTEREST_PERC_PREPAYM NUMERIC(6,3) 0.002 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.002 as float))
WHERE
attnum = 56 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 56 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
56, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 57
MNGSERV_TOT_RESIDUAL_VALUE_EUR NUMERIC(11,2) 0.000102606 1754 0
0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000102606 as float))
WHERE
attnum = 57 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 57 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
57, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 58
LC_MONTHLY_LEASEINSTALMENT_EUR NUMERIC(11,2) 6.53211e-05 1754 0
0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (6.53211e-05 as float))
WHERE
attnum = 58 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 58 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
58, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 59
LC_MVA_FEE_OVER_MILEAGE_EUR NUMERIC(11,2) 0.00218818 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00218818 as float))
WHERE
attnum = 59 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 59 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
59, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 60
LC_MVA_REPAY_UNDER_MILEAGE_EUR NUMERIC(11,2) 0.0026738 1754 0
0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0026738 as float))
WHERE
attnum = 60 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 60 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
60, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 61
LC_ACTUAL_INVEST_AMOUNT_EUR NUMERIC(11,2) 6.64673e-05 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (6.64673e-05 as float))
WHERE
attnum = 61 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 61 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
61, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 62
LC_BUDGETED_INVEST_AMOUNT_EUR NUMERIC(11,2) 8.06647e-05 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (8.06647e-05 as float))
WHERE
attnum = 62 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 62 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
62, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 63
LC_INVEST_INTEREST_BASE_EUR NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 63 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 63 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
63, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 64
LC_PREPAYMNT_INTEREST_BASE_EUR NUMERIC(11,2) 1 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 64 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 64 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
64, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 65
LC_UFWT_AMOUNT_EUR NUMERIC(11,2) 9.83961e-05 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (9.83961e-05 as float))
WHERE
attnum = 65 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 65 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
65, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 66
LC_EXTENSION_PENALTY_EUR NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 66 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 66 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
66, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 67
LC_EARLY_TERM_PENALTY_EUR NUMERIC(11,2) 0.000425894 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000425894 as float))
WHERE
attnum = 67 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
DELETE FROM _t_statistic
WHERE
staattnum = 67 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
67, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 68
OR_ORDER_NUMBER NATIONAL CHARACTER VARYING(125) 3.34818e-05 1022 0
0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.34818e-05 as float))
WHERE
attnum = 68 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
DELETE FROM _t_statistic
WHERE
staattnum = 68 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
68, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 69
OR_ORDER_DATE DATE 0.00037037 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00037037 as float))
WHERE
attnum = 69 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
DELETE FROM _t_statistic
WHERE
staattnum = 69 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
69, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 70
OR_ESTIMATED_DELIVERY_DATE DATE 0.000353982 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000353982 as float))
WHERE
attnum = 70 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
DELETE FROM _t_statistic
WHERE
staattnum = 70 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
70, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 71
CUSTOMER_SLA_ID BIGINT 0.000298507 412 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000298507 as float))
WHERE
attnum = 71 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
DELETE FROM _t_statistic
WHERE
staattnum = 71 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
71, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 72
LC_DRIVER_NUMBER NATIONAL CHARACTER VARYING(125) 3.34874e-05 1022 0
0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.34874e-05 as float))
WHERE
attnum = 72 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 72 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
72, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 73
LC_DRIVER_NAME NATIONAL CHARACTER VARYING(125) 4.58379e-05 1022 0
0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (4.58379e-05 as float))
WHERE
attnum = 73 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
DELETE FROM _t_statistic
WHERE
staattnum = 73 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
73, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 74
OR_ORDER_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125) 0.00469484
1022 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00469484 as float))
WHERE
attnum = 74 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
DELETE FROM _t_statistic
WHERE
staattnum = 74 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
74, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 75
OR_ORDER_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125) 0.00520833 1022
0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00520833 as float))
WHERE
attnum = 75 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 75 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
75, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 76
LC_LOCAL_KEY_LEASE_CONTRACT NATIONAL CHARACTER VARYING(125) 3.34706e-05
1022 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.34706e-05 as float))
WHERE
attnum = 76 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 76 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
76, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 77
VEH_LOCAL_KEY_VEHICLE NATIONAL CHARACTER VARYING(125) 3.34706e-05 1022
0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.34706e-05 as float))
WHERE
attnum = 77 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 77 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
77, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 78
OR_LOCAL_KEY_ORDER NATIONAL CHARACTER VARYING(125) 3.34706e-05 1022
0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.34706e-05 as float))
WHERE
attnum = 78 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 78 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
78, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 79
LC_LOCAL_KEY_COST_CENTER NATIONAL CHARACTER VARYING(125) 0.000598444
1022 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000598444 as float))
WHERE
attnum = 79 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 79 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
79, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 80
LC_LOCAL_KEY_DRIVER NATIONAL CHARACTER VARYING(125) 3.34795e-05 1022
0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (3.34795e-05 as float))
WHERE
attnum = 80 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 80 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
80, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 81
OR_LOCAL_KEY_ORDER_SUPPLIER NATIONAL CHARACTER VARYING(125) 0.00361011
1022 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00361011 as float))
WHERE
attnum = 81 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 81 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
81, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 82
CH_LEASE_CONTRACT_STATUS_ID INTEGER 0.0909091 97 0 0 16554
0 0
10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0909091 as float))
WHERE
attnum = 82 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 82 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
82, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 83
CH_CONTRACT_TERMINATION_ID INTEGER 0.0769231 97 0 0 16554
0 0
10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0769231 as float))
WHERE
attnum = 83 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 83 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
83, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 84
CH_CONTRACT_STOP_REASON_ID INTEGER 0.0769231 97 0 0 16554
0 0
10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0769231 as float))
WHERE
attnum = 84 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 84 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
84, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 85
CH_REGISTRATION_STATUS_ID INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 85 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
DELETE FROM _t_statistic
WHERE
staattnum = 85 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
85, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 86
CH_PURCHASED_BY_ID INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 86 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 86 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
86, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 87
CH_WINTER_TYRES_INCLUDED_ID INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 87 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 87 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
87, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 88
CH_MAKE_CODE_ID INTEGER 0.0175439 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0175439 as float))
WHERE
attnum = 88 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 88 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
88, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 89
CH_MODEL_CODE_ID INTEGER 0.000158403 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000158403 as float))
WHERE
attnum = 89 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 89 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
89, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 90
CH_BODY_STYLE_ID INTEGER 0.0294118 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0294118 as float))
WHERE
attnum = 90 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 90 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
90, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 91
CH_DRIVING_METHOD_ID INTEGER 0.111111 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 91 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 91 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
91, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 92
CH_EXTERIOR_COLOUR_ID INTEGER 0.000216967 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000216967 as float))
WHERE
attnum = 92 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 92 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
92, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 93
CH_EXTERIOR_COLOUR_TYPE_ID INTEGER 0.2 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 93 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 93 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
93, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 94
CH_PRIMARY_FUEL_TYPE_ID INTEGER 0.142857 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 94 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 94 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
94, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 95
CH_TRANSMISSION_TYPE_ID INTEGER 0.0625 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0625 as float))
WHERE
attnum = 95 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 95 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
95, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 96
CH_UPHOLSTERY_TYPE_ID INTEGER 0.2 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 96 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 96 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
96, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 97
CH_VEHICLE_TYPE_ID INTEGER 0.2 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 97 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 97 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
97, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 98
CH_FLEET_REPORT_CATEGORY_ID INTEGER 0.2 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 98 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 98 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
98, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 99
CH_PRODUCT_CATEGORY_TYPE_ID INTEGER 0.142857 97 0 0 16554
0 0
10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 99 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 99 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
99, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 100 PRODUCT_ID


BIGINT 0.125 412 0 0 16554
0 0 10346022 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0.125 as float))
WHERE
attnum = 100 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 100 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
100, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 101
LC_BOOK_VALUE NUMERIC(11,2) 7.01508e-05 1754 0 0 16554
0 0 10346022
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (7.01508e-05 as float))
WHERE
attnum = 101 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 101 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
101, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 102
CH_ASSET_TYPE_ID INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 102 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 102 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
102, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 103
CH_VEHICLE_SEGMENT_ID INTEGER 0.0625 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0625 as float))
WHERE
attnum = 103 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 103 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
103, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 104 CH_OEM_ID


INTEGER 0.0416667 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0416667 as float))
WHERE
attnum = 104 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 104 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
104, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 105
LC_STARTMILEAGELEASECONTRACT NUMERIC(7,0) 0.000348918 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000348918 as float))
WHERE
attnum = 105 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 105 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
105, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 106
LC_ENDMILEAGELEASECONTRACTKM NUMERIC(7,0) 5.83907e-05 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (5.83907e-05 as float))
WHERE
attnum = 106 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 106 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
106, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 107
LC_CONTRACT_MILEAGE_KM NUMERIC(7,0) 0.00102041 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00102041 as float))
WHERE
attnum = 107 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 107 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
107, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 108
LC_BOOK_VALUE_EUR NUMERIC(11,2) 7.01508e-05 1754 0 0 16554
0 0 10346022
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (7.01508e-05 as float))
WHERE
attnum = 108 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
DELETE FROM _t_statistic
WHERE
staattnum = 108 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
108, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 109
LC_DISCONMONTHLY_LEASEINST_EUR NUMERIC(11,2) 1 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 109 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
DELETE FROM _t_statistic
WHERE
staattnum = 109 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
109, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 110
CH_VEHICLE_SEGMENT_LOCAL_ID INTEGER 0.2 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 110 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 110 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
110, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 111
CH_MVA_SYSTEM_ID INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 111 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 111 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
111, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 112
CH_BUY_BACK_CODE INTEGER 0.2 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 112 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 112 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
112, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 113
CH_RISK_RULING_CODE INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 113 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 113 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
113, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 114
CH_VEHICLE_GROUP_CODE INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 114 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 114 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
114, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 115
CH_DATA_SUPPLIER_VEHICLE_CODE INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 115 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 115 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
115, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 116
CH_OWN_DAMAGE_RISK_ID INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 116 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 116 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
116, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 117
CH_UFWT_TYPE_ID INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 117 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 117 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
117, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 118
CH_MVA_SETTLEMENT_ID INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 118 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 118 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
118, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 119
LC_CUSTOMER_DRIVER_ID NATIONAL CHARACTER VARYING(125) 0.2 1022 0
0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 119 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 119 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
119, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 120
VEH_CO2_LEVEL_COMBINED NUMERIC(6,0) 0.0714286 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0714286 as float))
WHERE
attnum = 120 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 120 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
120, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 121
CH_SECONDARY_FUEL_TYPE INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 121 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 121 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
121, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 122
CH_NUMBER_OF_FORWARD_GEARS INTEGER 0.1 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.1 as float))
WHERE
attnum = 122 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 122 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
122, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 123
VEH_INDICATOR_NEW_MODEL CHARACTER(1) 1 1058 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 123 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 123 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
123, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 124
VEH_MODEL_END_DATE DATE 1 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 124 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 124 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
124, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 125
VEH_MODEL_INTRO_DATE DATE 1 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 125 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 125 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
125, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 126
VEH_MODEL_FACELIFT_INTRO_DATE DATE 1 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 126 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 126 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
126, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 127
VEH_MODEL_FACELIFT_END_DATE DATE 0.5 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 127 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 127 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
127, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 128
VEH_NUMBER_OF_SEATS NUMERIC(2,0) 1 1754 0 0 16554
0 0 10346022
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 128 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 128 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
128, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 129
LC_DRIVER_SET_SEND_DATE DATE 1 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 129 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 129 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
129, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 130
LC_INTEREST_LOSS_AT_TERM NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 130 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 130 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
130, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 131
LC_INTEREST_LOSS_AT_TERM_EUR NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 131 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 131 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
131, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 132
LC_MVA_FEE_MIN_OVERMILEAGE NUMERIC(17,7) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 132 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 132 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
132, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 133
LC_MVA_FEE_MIN_OVERMILEAGE_EUR NUMERIC(17,7) 1 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 133 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 133 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
133, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 134
LC_MVA_FEE_MID_OVERMILEAGE NUMERIC(17,7) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 134 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 134 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
134, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 135
LC_MVA_FEE_MID_OVERMILEAGE_EUR NUMERIC(17,7) 1 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 135 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 135 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
135, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 136
LC_MVA_FEE_MAX_OVERMILEAGE NUMERIC(17,7) 1 1754 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 136 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 136 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
136, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 137
LC_MVA_FEE_MAX_OVERMILEAGE_EUR NUMERIC(17,7) 1 1754 0 0
16554
0 0 10346022 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 137 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 137 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
137, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 138
LC_MVAREPAY_MINUNDERMILEAGE NUMERIC(17,7) 1 1754 0 0 16554

0 0 10346022 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 138 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 138 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
138, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 139
LC_MVAREPAY_MINUNDERMILEAGEEUR NUMERIC(17,7) 1 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 139 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 139 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
139, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 140
LC_MVAREPAY_MIDUNDERMILEAGE NUMERIC(17,7) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 140 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 140 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
140, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 141
LC_MVAREPAY_MIDUNDERMILEAGEEUR NUMERIC(17,7) 1 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 141 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 141 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
141, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 142
LC_MVAREPAY_MAXUNDERMILEAGE NUMERIC(17,7) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 142 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 142 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
142, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 143
LC_MVAREPAY_MAXUNDERMILEAGEEUR NUMERIC(17,7) 1 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 143 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 143 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
143, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 144
LC_MVA_THRESHHIGH_OVER_MILEAGE NUMERIC(7,0) 1 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 144 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 144 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
144, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 145
LC_MVA_THESHHIGH_UNDER_MILEAGE NUMERIC(7,0) 1 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 145 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 145 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
145, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 146
LC_MVA_THRESHLOW_UNDER_MILEAGE NUMERIC(7,0) 1 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 146 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 146 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
146, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 147
LC_MVA_THRESHLOW_OVER_MILEAGE NUMERIC(7,0) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 147 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 147 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
147, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 148
LC_TERMINATION_PROCESS_DATE DATE 0.5 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 148 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 148 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
148, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 149
LC_CREATION_DATE_LEASECONTRACT DATE 1 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 149 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 149 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
149, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 150
LC_FORMAL_EXTENSION_APPLICABLE NATIONAL CHARACTER VARYING(125)
0.333333 1022 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 150 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 150 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
150, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 151
LC_ACTIVATION_DATE_FORMAL_EXT DATE 1 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 151 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 151 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
151, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 152
LC_CONTRACT_DURATION_FORMAL_EX NUMERIC(3,0) 1 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 152 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 152 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
152, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 153
LC_CONTRACT_MILEAGE_FORMAL_EXT NUMERIC(7,0) 1 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 153 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 153 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
153, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 154
LC_RESIDUAL_VALUE_FORM_EXT NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 154 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 154 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
154, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 155
LC_RESIDUAL_VALUE_FORM_EXT_EUR NUMERIC(11,2) 1 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 155 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 155 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
155, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 156
LC_CAR_INSPEC_ENG_DAM_AM NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 156 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 156 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
156, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 157
LC_CAR_INSPEC_ENG_DAM_AM_EUR NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 157 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 157 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
157, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 158
LC_CAR_INSPEC_EXT_DAM_AM NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 158 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
DELETE FROM _t_statistic
WHERE
staattnum = 158 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
158, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 159
LC_CAR_INSPEC_EXT_DAM_AM_EUR NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 159 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
DELETE FROM _t_statistic
WHERE
staattnum = 159 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
159, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 160
LC_CAR_INSPEC_INT_DAM_AM NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 160 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 160 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
160, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 161
LC_CAR_INSPEC_INT_DAM_AM_EUR NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 161 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 161 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
161, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 162
LC_MVA_UM_LIMIT_PERCENTAGE NUMERIC(6,3) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 162 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 162 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
162, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 163
LC_MVA_OM_LIMIT_PERCENTAGE NUMERIC(6,3) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 163 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 163 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
163, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 164
LC_MVA_UM_FACTOR NUMERIC(6,3) 1 1754 0 0 16554
0 0 10346022
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 164 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 164 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
164, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 165
LC_MVA_OM_FACTOR NUMERIC(6,3) 1 1754 0 0 16554
0 0 10346022
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 165 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 165 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
165, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 166
CH_TYRE_WIDTH_FRONT INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 166 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 166 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
166, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 167
CH_TYRE_WIDTH_REAR INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 167 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 167 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
167, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 168
CH_TYRE_RIM_DIAM_FRONT INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 168 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 168 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
168, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 169
CH_TYRE_RIM_DIAM_REAR INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 169 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 169 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
169, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 170
VEH_CONSUMER_PRICE NUMERIC(11,2) 0.000402576 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000402576 as float))
WHERE
attnum = 170 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 170 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
170, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 171
VEH_CONSUMER_PRICE_EUR NUMERIC(11,2) 0.000402576 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000402576 as float))
WHERE
attnum = 171 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 171 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
171, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 172
VEH_LUXURY_TAX_AM NUMERIC(11,2) 0.003125 1754 0 0 16554
0 0 10346022
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.003125 as float))
WHERE
attnum = 172 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 172 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
172, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 173
VEH_LUXURY_TAX_AM_EUR NUMERIC(11,2) 0.003125 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.003125 as float))
WHERE
attnum = 173 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 173 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
173, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 174
VEH_ENROLMENT_TAX_AM NUMERIC(11,2) 0.000182849 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000182849 as float))
WHERE
attnum = 174 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 174 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
174, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 175
VEH_ENROLMENT_TAX_AM_EUR NUMERIC(11,2) 0.000182849 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000182849 as float))
WHERE
attnum = 175 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 175 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
175, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 176
LC_UFWT_TOTAL_ASSESSED_AM NUMERIC(11,2) 7.8883e-05 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (7.8883e-05 as float))
WHERE
attnum = 176 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 176 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
176, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 177
LC_UFWT_TOTAL_ASSESSED_AM_EUR NUMERIC(11,2) 7.8883e-05 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (7.8883e-05 as float))
WHERE
attnum = 177 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 177 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
177, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 178
LC_RESIDUAL_VALUE_BASE NUMERIC(11,2) 0.000100685 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000100685 as float))
WHERE
attnum = 178 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 178 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
178, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 179
LC_RESIDUAL_VALUE_BASE_EUR NUMERIC(11,2) 0.000100685 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000100685 as float))
WHERE
attnum = 179 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 179 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
179, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 180
LC_INSURANCE_LOSS_RATIO NUMERIC(17,5) 0.000101781 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000101781 as float))
WHERE
attnum = 180 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 180 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
180, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 181
LC_LAST_KNOWN_MILEAGE NUMERIC(7,0) 5.30195e-05 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (5.30195e-05 as float))
WHERE
attnum = 181 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 181 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
181, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 182
LC_LAST_KNOWN_MILEAGE_DATE DATE 0.000405515 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000405515 as float))
WHERE
attnum = 182 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 182 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
182, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 183
LC_CONTRACT_DURATION_FP NUMERIC(3,0) 1 1754 0 0 16554
0 0 10346022
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 183 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 183 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
183, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 184
LC_CONTRACT_MILEAGE_FP NUMERIC(7,0) 1 1754 0 0 16554
0 0 10346022
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 184 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 184 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
184, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 185
LC_MONTHLY_LEASEINSTALM_FP NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 185 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 185 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
185, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 186
LC_BUDGETED_INVEST_AM_FP NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 186 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 186 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
186, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 187
LC_MONTHLY_LEASEINSTALM_FP_EUR NUMERIC(11,2) 1 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 187 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 187 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
187, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 188
LC_BUDGETED_INVEST_AM_FP_EUR NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 188 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 188 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
188, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 189
LC_START_DATE_LEASECONTRACT_FP DATE 1 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 189 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 189 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
189, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 190
LC_END_DATE_LEASECONTRACT_FP DATE 1 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 190 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 190 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
190, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 191
OR_CREATION_DATE_ORDER DATE 1 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 191 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 191 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
191, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 192
LC_REGISTRATIONDATE_START DATE 1 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 192 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 192 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
192, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 193
LC_REGISTRATIONDT_TERMINATION DATE 0.5 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 193 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 193 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
193, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 194
LC_MVA_DEPR_TO_BE_INVOICED NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 194 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 194 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
194, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 195
LC_MVA_RM_TO_BE_INVOICED NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 195 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 195 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
195, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 196
LC_MVA_TYRES_TO_BE_INVOICED NUMERIC(11,2) 1 1754 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 196 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 196 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
196, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 197
LC_UFWT_TO_BE_INVOICED NUMERIC(11,2) 1 1754 0 0 16554
0 0 10346022
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 197 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 197 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
197, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 198
LC_INVOICINGENDDATE_LC DATE 1 1095 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 198 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 198 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
198, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 199
CH_ACTIVATIONTYPE_LC INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 199 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 199 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
199, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 200
CH_DEACTIVATIONTYPE_LC INTEGER 0.25 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 200 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 200 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
200, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 201
LC_LASTRECOGNIZEDOBJMILEAGE NUMERIC(7,0) 0.000124394 1754 0 0
16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000124394 as float))
WHERE
attnum = 201 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 201 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
201, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 202
LC_LASTRECOGNIZEDOBJMILEAGEDT DATE 0.0014245 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0014245 as float))
WHERE
attnum = 202 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 202 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
202, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 203
CH_USAGE_BY_CUSTOMER_ID INTEGER 0.333333 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 203 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 203 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
203, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 204
LC_LOCAL_KEY_BUSINESS_UNIT NATIONAL CHARACTER VARYING(125) 0.5 1022
0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 204 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 204 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
204, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 205
LC_BUSINESS_UNIT_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 205 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 205 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
205, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 206
LC_DRIVER_FIRST_NAME NATIONAL CHARACTER VARYING(125) 0.000319591 1022
0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000319591 as float))
WHERE
attnum = 206 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 206 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
206, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 207
LC_DRIVER_LAST_NAME NATIONAL CHARACTER VARYING(125) 7.22596e-05 1022
0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (7.22596e-05 as float))
WHERE
attnum = 207 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 207 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
207, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 208
LC_SHORT_TERM_RENTAL_INDICATOR CHARACTER(1) 0.5 1058 0 0
16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 208 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 208 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
208, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 209
LC_ALLOCATION_STATUS_INDICATOR CHARACTER(1) 0.333333 1058 0
0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 209 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 209 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
209, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 210
LC_NUMBER_OF_TYRES_IN_CONTRACT NUMERIC(2,0) 0.037037 1754 0
0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.037037 as float))
WHERE
attnum = 210 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 210 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
210, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 211
TELEMATICS_DEV_INSTALL_FLAG CHARACTER(1) 0.5 1058 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 211 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 211 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
211, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 212
TELEMATICS_DEV_INSTALL_DATE DATE 1 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 212 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 212 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
212, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 213
TELEMATICS_DEV_DEINSTALL_DATE DATE 1 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 213 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 213 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
213, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 214
PRECEDING_LEASECONTRVEHICLE_ID BIGINT 0.000227376 412 0 0
16554 0
0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000227376 as float))
WHERE
attnum = 214 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 214 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
214, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 215
LC_RENEWAL_INDICATOR CHARACTER(1) 0.333333 1058 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 215 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 215 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
215, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 216
LC_RELEASING_INDICATOR CHARACTER(1) 0.333333 1058 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 216 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 216 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
216, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 217
LC_RELEASING_START_DATE DATE 0.00641026 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00641026 as float))
WHERE
attnum = 217 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 217 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
217, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 218
CH_ORDER_STATUS_ID INTEGER 0.1 97 0 0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.1 as float))
WHERE
attnum = 218 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 218 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
218, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 219
OR_ACTUAL_DELIVERY_DATE DATE 0.00034626 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00034626 as float))
WHERE
attnum = 219 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 219 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
219, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 220
OR_ORDER_RECEIPT_CONFIRM_DATE DATE 0.00162075 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00162075 as float))
WHERE
attnum = 220 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 220 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
220, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 221
OR_CERTIFICATE_RECEIPT_DATE DATE 0.000355619 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000355619 as float))
WHERE
attnum = 221 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 221 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
221, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 222
OR_FIRSTDRIVERAPPOINTMENT_DATE DATE 1 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 222 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 222 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
222, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 223
OR_DRIVER_APPOINTMENT_DATE DATE 0.000434028 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000434028 as float))
WHERE
attnum = 223 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 223 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
223, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 224
OR_ORDER_CANCELLATION_DATE DATE 0.0128205 1095 0 0 16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0128205 as float))
WHERE
attnum = 224 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 224 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
224, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 225
OR_NUMBEROF_DRIVERAPPOINTMENTS NUMERIC(2,0) 0.0909091 1754 0
0 16554
0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0909091 as float))
WHERE
attnum = 225 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 225 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
225, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_1 f 0 0 0 226
OR_ADVANCE_PURCHASE_INDICATOR CHARACTER(1) 0.333333 1058 0 0
16554

0 0 10346022 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 226 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 226 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
226, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT.LEASE_CONTRACT_VEHICLE VERSION 2 -------------

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 1
LEASE_CONTRACT_VEHICLE_ID BIGINT 0.333333 412 0 0 85
0 999999999999999999 0 0
22957224 10266452
\echo -n .

UPDATE _t_class
SET
reltuples = 3,
relrefs = 0,
relpages = 1
WHERE
relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '999999999999999999 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 2 CUSTOMER_ID
BIGINT 1 412 0 0 85 0
0 0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 3
LC_LEASE_CONTRACT_NUMBER NATIONAL CHARACTER VARYING(125) 0.333333
1022 0 0 85 Error in delivery
Not supplied by OPCO
22 63 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not supplied by OPCO
', 22, 63
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 4
LC_COST_CENTER_NAME NATIONAL CHARACTER VARYING(125) 0.333333 1022
0 0 85
Not Supplied by OpCo
22 43 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 5 LC_SLB_FLAG
CHARACTER(1) 0.5 1058 0 0 85
N
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 6
LC_START_DATE_LEASECONTRACT DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
6, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 7
LC_END_DATE_LEASECONTRACT DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
7, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 8
LC_BUDG_END_DATE_LEASECONTRACT DATE 1 1095 0 0 85
2000-01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 9
LC_STARTMILEAGELEASECONTRACTKM NUMERIC(7,0) 1 1754 0 0
85 0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 10
LC_ENDMILEAGELEASECONTRACT NUMERIC(7,0) 1 1754 0 0 85
0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 11
LC_CONTRACT_DURATION NUMERIC(3,0) 1 1754 0 0 85
0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 12
LC_CONTRACT_MILEAGE NUMERIC(7,0) 1 1754 0 0 85
0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 13
LC_DISCONMONTHLY_LEASEINST NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 14
LC_MONTHLY_LEASEINSTALMENT NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
14, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 15
LC_MVA_FEE_OVER_MILEAGE NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
15, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 16
LC_MVA_REPAY_UNDER_MILEAGE NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
16, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 17
LC_ACTUAL_INVEST_AMOUNT NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
17, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 18
LC_BUDGETED_INVEST_AMOUNT NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
18, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 19
LC_INVEST_INTEREST_BASE NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
19, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 20
LC_PREPAYMNT_INTEREST_BASE NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
20, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 21
LC_UFWT_AMOUNT NUMERIC(11,2) 1 1754 0 0 85 0.00
0.00 0 0 22957224
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
21, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 22
LC_EXTENSION_PENALTY NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
22, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 23
LC_EARLY_TERM_PENALTY NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
23, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 24
VEH_VEHICLE_NUMBER NATIONAL CHARACTER VARYING(125) 0.333333 1022
0 0 85 Error in delivery
Not supplied by OPCO
22 63 22957224 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
24, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not supplied by OPCO
', 22, 63
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 25
VEH_MODEL_TYPE_DESCRIPTION NATIONAL CHARACTER VARYING(125) 0.333333
1022 0 0 85 Error in delivery
Not supplied by OPCO
22 63 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
25, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not supplied by OPCO
', 22, 63
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 26
VEH_CATALOGUE_PRICE NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
26, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 27
VEH_CATALOGUE_PRICE_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
27, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 28
VEH_ACTUAL_DISCOUNT_PERC NUMERIC(6,3) 1 1754 0 0 85
0.000 0.000
0 0 22957224 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
28, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 29
VEH_COMMERCIAL_DISCNT_AMT NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
29, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 30
VEH_COMMERCIAL_DISCNT_AMT_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
30, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 31
VEH_TAX_AMT_NON_RECLAIM NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 31 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 31 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
31, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 32
VEH_TAX_AMT_NON_RECLAIM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 32 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 32 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
32, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 33
VEH_VAT_PERCENTAGE NUMERIC(6,3) 1 1754 0 0 85
0.000 0.000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 33 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 33 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
33, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 34
VEH_TOT_OPTIONS_AMT NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 34 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 34 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
34, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 35
VEH_TOTAL_OPTIONS_AMT_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 35 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 35 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
35, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 36
VEH_TOT_ACCESSOIRIES_AMT NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 36 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 36 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
36, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 37
VEH_TOT_ACCESSOIRIES_AMT_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 37 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 37 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
37, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 38
VEH_DELIVERY_COSTS NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 38 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 38 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
38, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 39
VEH_DELIVERY_COSTS_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 39 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 39 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
39, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 40
VEH_REGISTRATION_NUMBER NATIONAL CHARACTER VARYING(125) 0.333333 1022
0 0 85 Error in delivery
Not supplied by OPCO
22 63 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 40 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 40 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
40, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not supplied by OPCO
', 22, 63
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 41
VEH_REGISTRATION_DATE DATE 1 1095 0 0 85 2000-01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 41 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 41 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
41, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 42
VEH_VEH_IDENTIFICATION_NUMBER NATIONAL CHARACTER VARYING(125) 0.333333
1022 0 0 85 Error in delivery
Not supplied by OPCO
22 63 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 42 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 42 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
42, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not supplied by OPCO
', 22, 63
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 43
VEH_NUMBER_OF_DOORS NUMERIC(3,0) 1 1754 0 0 85
0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 43 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 43 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
43, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 44
VEH_ENGINE_CAPACITY NUMERIC(5,0) 1 1754 0 0 85
0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 44 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 44 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
44, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 45
VEH_ENGINE_POWER NUMERIC(5,0) 1 1754 0 0 85 0
0 0 0 22957224
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 45 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 45 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
45, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 46
VEH_NUMBER_OF_CYLINDERS NUMERIC(3,0) 1 1754 0 0 85
0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 46 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 46 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
46, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 47
VEH_TARE_WEIGHT NUMERIC(5,0) 1 1754 0 0 85 0
0 0 0 22957224
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 47 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 47 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
47, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 48
VEH_GROSS_WEIGHT NUMERIC(5,0) 1 1754 0 0 85 0
0 0 0 22957224
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 48 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
DELETE FROM _t_statistic
WHERE
staattnum = 48 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
48, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 49
VEH_FUEL_CONSUMPT_MANUFACTURER NUMERIC(7,2) 1 1754 0 0
85 0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 49 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
DELETE FROM _t_statistic
WHERE
staattnum = 49 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
49, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 50
VEH_EXTERNAL_REFERENCE NATIONAL CHARACTER VARYING(125) 0.333333 1022
0 0 85 Error in delivery
Not supplied by OPCO
22 63 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 50 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
DELETE FROM _t_statistic
WHERE
staattnum = 50 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
50, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not supplied by OPCO
', 22, 63
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 51
VEH_TYRE_SIZE_AT_DELIVERY NATIONAL CHARACTER VARYING(125) 0.333333
1022 0 0 85 Error in delivery
Not supplied by OPCO
22 63 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 51 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
DELETE FROM _t_statistic
WHERE
staattnum = 51 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
51, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not supplied by OPCO
', 22, 63
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 52
VEH_STANDARD_DISCOUNT_PERC NUMERIC(6,3) 1 1754 0 0 85
0.000 0.000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 52 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
DELETE FROM _t_statistic
WHERE
staattnum = 52 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
52, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 53 LOAD_DATE
DATE 1 1095 0 0 85 2021-12-06
2021-12-06
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 53 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
DELETE FROM _t_statistic
WHERE
staattnum = 53 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
53, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2021-12-06
', '2021-12-06
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 54
MNGSERV_TOT_RESIDUAL_VALUE NUMERIC(11,2) 1 1754 0.333333 0
85 0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 54 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
DELETE FROM _t_statistic
WHERE
staattnum = 54 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
54, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 55
MNGSERV_INTEREST_PERC_INVESTM NUMERIC(6,3) 1 1754 0.333333 0
85 0.000 0.000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 55 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 55 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
55, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 56
MNGSERV_INTEREST_PERC_PREPAYM NUMERIC(6,3) 1 1754 0.333333 0
85 0.000 0.000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 56 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 56 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
56, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 57
MNGSERV_TOT_RESIDUAL_VALUE_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 57 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 57 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
57, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 58
LC_MONTHLY_LEASEINSTALMENT_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 58 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 58 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
58, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 59
LC_MVA_FEE_OVER_MILEAGE_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 59 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 59 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
59, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 60
LC_MVA_REPAY_UNDER_MILEAGE_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 60 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 60 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
60, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 61
LC_ACTUAL_INVEST_AMOUNT_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 61 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 61 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
61, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 62
LC_BUDGETED_INVEST_AMOUNT_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 62 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 62 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
62, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 63
LC_INVEST_INTEREST_BASE_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 63 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 63 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
63, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 64
LC_PREPAYMNT_INTEREST_BASE_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 64 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 64 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
64, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 65
LC_UFWT_AMOUNT_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 65 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 65 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
65, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 66
LC_EXTENSION_PENALTY_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 66 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 66 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
66, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 67
LC_EARLY_TERM_PENALTY_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 67 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 67 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
67, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 68
OR_ORDER_NUMBER NATIONAL CHARACTER VARYING(125) 0.333333 1022 0
0 85
Not Supplied by OpCo
22 43 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 68 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 68 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
68, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 69
OR_ORDER_DATE DATE 1 1095 0 0 85 2000-01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 69 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 69 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
69, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 70
OR_ESTIMATED_DELIVERY_DATE DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 70 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 70 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
70, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 71
CUSTOMER_SLA_ID BIGINT 1 412 0 0 85 0
0 0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 71 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 71 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
71, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 72
LC_DRIVER_NUMBER NATIONAL CHARACTER VARYING(125) 0.333333 1022 0
0 85
Not Supplied by OpCo
22 43 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 72 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 72 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
72, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 73
LC_DRIVER_NAME NATIONAL CHARACTER VARYING(125) 0.333333 1022 0
0 85 Error in delivery
Not Supplied by OpCo
27 68 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 73 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 73 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
73, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 27, 68
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 74
OR_ORDER_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125) 0.333333
1022 0 0 85
Not Supplied by OpCo
22 43 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 74 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 74 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
74, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 75
OR_ORDER_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125) 0.333333 1022
0 0 85
Not Supplied by OpCo
22 43 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 75 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 75 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
75, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 76
LC_LOCAL_KEY_LEASE_CONTRACT NATIONAL CHARACTER VARYING(125) 0.333333
1022 0 0 85 Error in delivery
Not Supplied by OpCo
22 62 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 76 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 76 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
76, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 22, 62
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 77
VEH_LOCAL_KEY_VEHICLE NATIONAL CHARACTER VARYING(125) 0.333333 1022
0 0 85 Error in delivery
Not Supplied by OpCo
22 62 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 77 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 77 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
77, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 22, 62
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 78
OR_LOCAL_KEY_ORDER NATIONAL CHARACTER VARYING(125) 0.333333 1022
0 0 85
Not Supplied by OpCo
22 43 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 78 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 78 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
78, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 79
LC_LOCAL_KEY_COST_CENTER NATIONAL CHARACTER VARYING(125) 0.333333
1022 0 0 85
Not Supplied by OpCo
22 43 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 79 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 79 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
79, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 80
LC_LOCAL_KEY_DRIVER NATIONAL CHARACTER VARYING(125) 0.333333 1022
0 0 85 Error in delivery
Not Supplied by OpCo
24 65 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 80 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 80 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
80, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 24, 65
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 81
OR_LOCAL_KEY_ORDER_SUPPLIER NATIONAL CHARACTER VARYING(125) 0.333333
1022 0 0 85
Not Supplied by OpCo
22 43 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 81 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 81 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
81, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 82
CH_LEASE_CONTRACT_STATUS_ID INTEGER 0.333333 97 0 0 85
1546 999993418 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 82 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 82 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
82, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1546 ', '999993418 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 83
CH_CONTRACT_TERMINATION_ID INTEGER 0.333333 97 0 0 85
1532 999993404 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 83 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 83 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
83, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1532 ', '999993404 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 84
CH_CONTRACT_STOP_REASON_ID INTEGER 0.333333 97 0 0 85
1533 999993473 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 84 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 84 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
84, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1533 ', '999993473 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 85
CH_REGISTRATION_STATUS_ID INTEGER 0.333333 97 0 0 85
1173978 999993511 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 85 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 85 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
85, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1173978 ', '999993511 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 86
CH_PURCHASED_BY_ID INTEGER 0.333333 97 0 0 85
1174009 999993512 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 86 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 86 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
86, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1174009 ', '999993512 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 87
CH_WINTER_TYRES_INCLUDED_ID INTEGER 0.333333 97 0 0 85
1557 999993433 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 87 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 87 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
87, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1557 ', '999993433 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 88
CH_MAKE_CODE_ID INTEGER 0.333333 97 0 0 85 1539
999993411 0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 88 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 88 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
88, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1539 ', '999993411 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 89
CH_MODEL_CODE_ID INTEGER 0.333333 97 0 0 85 1540
999993412 0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 89 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 89 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
89, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1540 ', '999993412 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 90
CH_BODY_STYLE_ID INTEGER 0.333333 97 0 0 85 1568
999993472 0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 90 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 90 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
90, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1568 ', '999993472 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 91
CH_DRIVING_METHOD_ID INTEGER 0.333333 97 0 0 85
1537 999993409 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 91 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 91 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
91, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1537 ', '999993409 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 92
CH_EXTERIOR_COLOUR_ID INTEGER 0.333333 97 0 0 85
1541 999993413 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 92 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 92 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
92, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1541 ', '999993413 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 93
CH_EXTERIOR_COLOUR_TYPE_ID INTEGER 0.333333 97 0 0 85
1542 999993414 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 93 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 93 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
93, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1542 ', '999993414 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 94
CH_PRIMARY_FUEL_TYPE_ID INTEGER 0.333333 97 0 0 85
1560 999993440 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 94 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 94 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
94, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1560 ', '999993440 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 95
CH_TRANSMISSION_TYPE_ID INTEGER 0.333333 97 0 0 85
1552 999993428 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 95 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 95 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
95, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1552 ', '999993428 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 96
CH_UPHOLSTERY_TYPE_ID INTEGER 0.333333 97 0 0 85
1545 999993417 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 96 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 96 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
96, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1545 ', '999993417 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 97
CH_VEHICLE_TYPE_ID INTEGER 0.333333 97 0 0 85
1544 999993416 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 97 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 97 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
97, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1544 ', '999993416 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 98
CH_FLEET_REPORT_CATEGORY_ID INTEGER 0.333333 97 0 0 85
1565 999993447 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 98 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 98 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
98, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1565 ', '999993447 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 99
CH_PRODUCT_CATEGORY_TYPE_ID INTEGER 0.333333 97 0 0 85
1559 999993439 0 0
22957224 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 99 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 99 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
99, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1559 ', '999993439 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 100 PRODUCT_ID


BIGINT 0.5 412 0 0 85 0
2147484218 0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 100 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 100 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
100, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '2147484218 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 101
LC_BOOK_VALUE NUMERIC(11,2) 1 1754 0 0 85 0.00
0.00 0 0 22957224
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 101 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 101 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
101, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 102
CH_ASSET_TYPE_ID INTEGER 0.333333 97 0 0 85
999990499 999993499 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 102 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 102 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
102, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990499 ', '999993499 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 103
CH_VEHICLE_SEGMENT_ID INTEGER 0.5 97 0 0 85 0
999992478 0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 103 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 103 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
103, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '999992478 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 104 CH_OEM_ID


INTEGER 0.333333 97 0 0 85 999990479
999993479 0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 104 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 104 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
104, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990479 ', '999993479 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 105
LC_STARTMILEAGELEASECONTRACT NUMERIC(7,0) 1 1754 0 0 85
0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 105 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 105 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
105, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 106
LC_ENDMILEAGELEASECONTRACTKM NUMERIC(7,0) 1 1754 0 0 85
0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 106 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 106 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
106, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 107
LC_CONTRACT_MILEAGE_KM NUMERIC(7,0) 1 1754 0 0 85
0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 107 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
DELETE FROM _t_statistic
WHERE
staattnum = 107 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
107, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 108
LC_BOOK_VALUE_EUR NUMERIC(11,2) 1 1754 0 0 85 0.00
0.00 0 0 22957224
10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 108 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
DELETE FROM _t_statistic
WHERE
staattnum = 108 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
108, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 109
LC_DISCONMONTHLY_LEASEINST_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 109 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 109 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
109, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 110
CH_VEHICLE_SEGMENT_LOCAL_ID INTEGER 0.333333 97 0 0 85
1237437 999993636 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 110 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 110 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
110, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1237437 ', '999993636 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 111
CH_MVA_SYSTEM_ID INTEGER 0.333333 97 0 0 85
1516637 999993522 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 111 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 111 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
111, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1516637 ', '999993522 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 112
CH_BUY_BACK_CODE INTEGER 0.333333 97 0 0 85
1516670 999993523 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 112 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 112 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
112, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1516670 ', '999993523 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 113
CH_RISK_RULING_CODE INTEGER 0.333333 97 0 0 85
1516703 999993524 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 113 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 113 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
113, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1516703 ', '999993524 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 114
CH_VEHICLE_GROUP_CODE INTEGER 0.333333 97 0 0 85
1275277 999993637 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 114 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 114 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
114, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1275277 ', '999993637 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 115
CH_DATA_SUPPLIER_VEHICLE_CODE INTEGER 0.333333 97 0 0 85
1237503 999993638 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 115 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 115 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
115, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1237503 ', '999993638 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 116
CH_OWN_DAMAGE_RISK_ID INTEGER 0.333333 97 0 0 85
1237536 999993641 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 116 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 116 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
116, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1237536 ', '999993641 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 117
CH_UFWT_TYPE_ID INTEGER 0.333333 97 0 0 85
1237371 999993634 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 117 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 117 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
117, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1237371 ', '999993634 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 118
CH_MVA_SETTLEMENT_ID INTEGER 0.333333 97 0 0 85
1237404 999993635 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 118 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 118 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
118, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1237404 ', '999993635 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 119
LC_CUSTOMER_DRIVER_ID NATIONAL CHARACTER VARYING(125) 0.333333 1022
0 0 85
Not Supplied by OpCo
22 43 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 119 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 119 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
119, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 120
VEH_CO2_LEVEL_COMBINED NUMERIC(6,0) 1 1754 0 0 85
0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 120 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 120 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
120, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 121
CH_SECONDARY_FUEL_TYPE INTEGER 0.333333 97 0 0 85
1560 999993517 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 121 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 121 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
121, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1560 ', '999993517 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 122
CH_NUMBER_OF_FORWARD_GEARS INTEGER 0.5 97 0 0 85
999990516 999993516 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 122 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 122 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
122, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990516 ', '999993516 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 123
VEH_INDICATOR_NEW_MODEL CHARACTER(1) 1 1058 0.333333 0 85

0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 123 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 123 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
123, 1058, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 124
VEH_MODEL_END_DATE DATE 1 1095 0.333333 0 85 2000-
01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 124 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 124 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
124, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 125
VEH_MODEL_INTRO_DATE DATE 1 1095 0.333333 0 85 2000-
01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 125 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 125 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
125, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 126
VEH_MODEL_FACELIFT_INTRO_DATE DATE 1 1095 0.333333 0 85
2000-01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 126 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 126 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
126, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 127
VEH_MODEL_FACELIFT_END_DATE DATE 1 1095 0.333333 0 85
2000-01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 127 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 127 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
127, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 128
VEH_NUMBER_OF_SEATS NUMERIC(2,0) 1 1754 0.333333 0 85
0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 128 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 128 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
128, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 129
LC_DRIVER_SET_SEND_DATE DATE 1 1095 0.333333 0 85 2000-
01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 129 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 129 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
129, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 130
LC_INTEREST_LOSS_AT_TERM NUMERIC(11,2) 1 1754 0.333333 0
85 0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 130 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 130 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
130, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 131
LC_INTEREST_LOSS_AT_TERM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 131 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 131 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
131, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 132
LC_MVA_FEE_MIN_OVERMILEAGE NUMERIC(17,7) 1 1754 0.333333 0
85 0.0000000 0.0000000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 132 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 132 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
132, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 133
LC_MVA_FEE_MIN_OVERMILEAGE_EUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 133 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 133 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
133, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 134
LC_MVA_FEE_MID_OVERMILEAGE NUMERIC(17,7) 1 1754 0.333333 0
85 0.0000000 0.0000000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 134 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 134 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
134, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 135
LC_MVA_FEE_MID_OVERMILEAGE_EUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 135 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 135 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
135, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 136
LC_MVA_FEE_MAX_OVERMILEAGE NUMERIC(17,7) 1 1754 0.333333 0
85 0.0000000 0.0000000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 136 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 136 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
136, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 137
LC_MVA_FEE_MAX_OVERMILEAGE_EUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 137 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 137 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
137, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 138
LC_MVAREPAY_MINUNDERMILEAGE NUMERIC(17,7) 1 1754 0.333333 0
85 0.0000000 0.0000000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 138 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 138 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
138, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 139
LC_MVAREPAY_MINUNDERMILEAGEEUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 139 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 139 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
139, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 140
LC_MVAREPAY_MIDUNDERMILEAGE NUMERIC(17,7) 1 1754 0.333333 0
85 0.0000000 0.0000000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 140 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 140 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
140, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 141
LC_MVAREPAY_MIDUNDERMILEAGEEUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 141 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 141 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
141, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 142
LC_MVAREPAY_MAXUNDERMILEAGE NUMERIC(17,7) 1 1754 0.333333 0
85 0.0000000 0.0000000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 142 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 142 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
142, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 143
LC_MVAREPAY_MAXUNDERMILEAGEEUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 143 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 143 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
143, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 144
LC_MVA_THRESHHIGH_OVER_MILEAGE NUMERIC(7,0) 1 1754 0.333333
0 85 0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 144 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 144 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
144, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 145
LC_MVA_THESHHIGH_UNDER_MILEAGE NUMERIC(7,0) 1 1754 0.333333
0 85 0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 145 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 145 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
145, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 146
LC_MVA_THRESHLOW_UNDER_MILEAGE NUMERIC(7,0) 1 1754 0.333333
0 85 0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 146 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 146 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
146, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 147
LC_MVA_THRESHLOW_OVER_MILEAGE NUMERIC(7,0) 1 1754 0.333333 0
85 0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 147 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 147 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
147, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 148
LC_TERMINATION_PROCESS_DATE DATE 1 1095 0.333333 0 85
2000-01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 148 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 148 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
148, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 149
LC_CREATION_DATE_LEASECONTRACT DATE 1 1095 0.333333 0 85
2000-01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 149 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 149 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
149, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 150
LC_FORMAL_EXTENSION_APPLICABLE NATIONAL CHARACTER VARYING(125) 0.5
1022 0.333333 0 85 Error in delivery
Not Supplied by OpCo
22 41 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 150 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 150 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
150, 1022, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 22, 41
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 151
LC_ACTIVATION_DATE_FORMAL_EXT DATE 1 1095 0.333333 0 85
2000-01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 151 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 151 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
151, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 152
LC_CONTRACT_DURATION_FORMAL_EX NUMERIC(3,0) 1 1754 0.333333
0 85 0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 152 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 152 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
152, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 153
LC_CONTRACT_MILEAGE_FORMAL_EXT NUMERIC(7,0) 1 1754 0.333333
0 85 0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 153 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 153 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
153, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 154
LC_RESIDUAL_VALUE_FORM_EXT NUMERIC(11,2) 1 1754 0.333333 0
85 0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 154 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 154 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
154, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 155
LC_RESIDUAL_VALUE_FORM_EXT_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 155 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 155 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
155, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 156
LC_CAR_INSPEC_ENG_DAM_AM NUMERIC(11,2) 1 1754 0.333333 0
85 0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 156 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 156 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
156, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 157
LC_CAR_INSPEC_ENG_DAM_AM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 157 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 157 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
157, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 158
LC_CAR_INSPEC_EXT_DAM_AM NUMERIC(11,2) 1 1754 0.333333 0
85 0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 158 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 158 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
158, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 159
LC_CAR_INSPEC_EXT_DAM_AM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 159 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 159 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
159, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 160
LC_CAR_INSPEC_INT_DAM_AM NUMERIC(11,2) 1 1754 0.333333 0
85 0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 160 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 160 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
160, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 161
LC_CAR_INSPEC_INT_DAM_AM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 161 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 161 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
161, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 162
LC_MVA_UM_LIMIT_PERCENTAGE NUMERIC(6,3) 1 1754 0.333333 0
85 0.000 0.000
0 0 22957224 10266452
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 162 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 162 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
162, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 163
LC_MVA_OM_LIMIT_PERCENTAGE NUMERIC(6,3) 1 1754 0.333333 0
85 0.000 0.000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 163 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 163 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
163, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 164
LC_MVA_UM_FACTOR NUMERIC(6,3) 1 1754 0.333333 0 85
0.000 0.000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 164 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 164 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
164, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 165
LC_MVA_OM_FACTOR NUMERIC(6,3) 1 1754 0.333333 0 85
0.000 0.000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 165 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 165 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
165, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 166
CH_TYRE_WIDTH_FRONT INTEGER 0.333333 97 0 0 85
1600473 999993675 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 166 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 166 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
166, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1600473 ', '999993675 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 167
CH_TYRE_WIDTH_REAR INTEGER 0.333333 97 0 0 85
1600473 999993520 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 167 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 167 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
167, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1600473 ', '999993520 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 168
CH_TYRE_RIM_DIAM_FRONT INTEGER 0.333333 97 0 0 85
1600474 999993677 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 168 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 168 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
168, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1600474 ', '999993677 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 169
CH_TYRE_RIM_DIAM_REAR INTEGER 0.333333 97 0 0 85
1600474 999993521 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 169 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 169 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
169, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1600474 ', '999993521 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 170
VEH_CONSUMER_PRICE NUMERIC(11,2) 1 1754 0.333333 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 170 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 170 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
170, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 171
VEH_CONSUMER_PRICE_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 171 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 171 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
171, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 172
VEH_LUXURY_TAX_AM NUMERIC(11,2) 1 1754 0.333333 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 172 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 172 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
172, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 173
VEH_LUXURY_TAX_AM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 173 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
DELETE FROM _t_statistic
WHERE
staattnum = 173 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
173, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 174
VEH_ENROLMENT_TAX_AM NUMERIC(11,2) 1 1754 0.333333 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 174 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
DELETE FROM _t_statistic
WHERE
staattnum = 174 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
174, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 175
VEH_ENROLMENT_TAX_AM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 175 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 175 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
175, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 176
LC_UFWT_TOTAL_ASSESSED_AM NUMERIC(11,2) 1 1754 0.333333 0
85 0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 176 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 176 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
176, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 177
LC_UFWT_TOTAL_ASSESSED_AM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 177 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 177 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
177, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 178
LC_RESIDUAL_VALUE_BASE NUMERIC(11,2) 1 1754 0.333333 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 178 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 178 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
178, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 179
LC_RESIDUAL_VALUE_BASE_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 179 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 179 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
179, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 180
LC_INSURANCE_LOSS_RATIO NUMERIC(17,5) 1 1754 0.333333 0 85
0.00000 0.00000
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 180 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 180 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
180, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0.00000 ', '0.00000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 181
LC_LAST_KNOWN_MILEAGE NUMERIC(7,0) 1 1754 0 0 85
0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 181 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 181 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
181, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 182
LC_LAST_KNOWN_MILEAGE_DATE DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 182 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 182 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
182, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 183
LC_CONTRACT_DURATION_FP NUMERIC(3,0) 1 1754 0 0 85
0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 183 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 183 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
183, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 184
LC_CONTRACT_MILEAGE_FP NUMERIC(7,0) 1 1754 0 0 85
0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 184 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 184 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
184, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 185
LC_MONTHLY_LEASEINSTALM_FP NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 185 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 185 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
185, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 186
LC_BUDGETED_INVEST_AM_FP NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 186 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 186 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
186, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 187
LC_MONTHLY_LEASEINSTALM_FP_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 187 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 187 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
187, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 188
LC_BUDGETED_INVEST_AM_FP_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 188 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 188 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
188, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 189
LC_START_DATE_LEASECONTRACT_FP DATE 1 1095 0 0 85
2000-01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 189 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 189 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
189, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 190
LC_END_DATE_LEASECONTRACT_FP DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 190 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 190 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
190, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 191
OR_CREATION_DATE_ORDER DATE 1 1095 0 0 85 2000-01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 191 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 191 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
191, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 192
LC_REGISTRATIONDATE_START DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 192 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 192 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
192, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 193
LC_REGISTRATIONDT_TERMINATION DATE 0.5 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 193 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 193 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
193, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 194
LC_MVA_DEPR_TO_BE_INVOICED NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 194 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 194 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
194, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 195
LC_MVA_RM_TO_BE_INVOICED NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 195 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 195 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
195, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 196
LC_MVA_TYRES_TO_BE_INVOICED NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 196 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 196 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
196, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 197
LC_UFWT_TO_BE_INVOICED NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 197 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 197 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
197, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 198
LC_INVOICINGENDDATE_LC DATE 1 1095 0 0 85 2000-01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 198 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 198 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
198, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 199
CH_ACTIVATIONTYPE_LC INTEGER 0.333333 97 0 0 85
1669769 999993550 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 199 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 199 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
199, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1669769 ', '999993550 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 200
CH_DEACTIVATIONTYPE_LC INTEGER 0.333333 97 0 0 85
1669801 999993551 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 200 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 200 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
200, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1669801 ', '999993551 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 201
LC_LASTRECOGNIZEDOBJMILEAGE NUMERIC(7,0) 1 1754 0.333333 0
85 0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 201 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 201 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
201, 1754, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 202
LC_LASTRECOGNIZEDOBJMILEAGEDT DATE 1 1095 0.333333 0 85
2000-01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 202 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 202 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
202, 1095, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 203
CH_USAGE_BY_CUSTOMER_ID INTEGER 0.5 97 0 0 85
999990583 999993583 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 203 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 203 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
203, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'999990583 ', '999993583 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 204
LC_LOCAL_KEY_BUSINESS_UNIT NATIONAL CHARACTER VARYING(125) 0.5 1022
0.333333 0 85 Error in delivery
Not Supplied by OpCo
22 41 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 204 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 204 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
204, 1022, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 22, 41
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 205
LC_BUSINESS_UNIT_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022
0.333333 0 85 Error in delivery
Not Supplied by OpCo
22 41 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 205 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 205 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
205, 1022, (CAST(0.333333 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 22, 41
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 206
LC_DRIVER_FIRST_NAME NATIONAL CHARACTER VARYING(125) 0.333333 1022
0 0 85
Not Supplied by OpCo
22 43 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 206 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 206 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
206, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 207
LC_DRIVER_LAST_NAME NATIONAL CHARACTER VARYING(125) 0.333333 1022
0 0 85
Not Supplied by OpCo
22 43 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 207 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 207 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
207, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 43
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 208
LC_SHORT_TERM_RENTAL_INDICATOR CHARACTER(1) 0.5 1058 0 0
85
N
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 208 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 208 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
208, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 209
LC_ALLOCATION_STATUS_INDICATOR CHARACTER(1) 0.5 1058 0 0
85
N
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 209 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 209 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
209, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 210
LC_NUMBER_OF_TYRES_IN_CONTRACT NUMERIC(2,0) 1 1754 0 0
85 0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 210 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 210 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
210, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 211
TELEMATICS_DEV_INSTALL_FLAG CHARACTER(1) 0.5 1058 0 0 85

N
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 211 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 211 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
211, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 212
TELEMATICS_DEV_INSTALL_DATE DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 212 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 212 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
212, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 213
TELEMATICS_DEV_DEINSTALL_DATE DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 213 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 213 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
213, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 214
PRECEDING_LEASECONTRVEHICLE_ID BIGINT 0.5 412 0 0 85
0 999999999999999999 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 214 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 214 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
214, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '999999999999999999 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 215
LC_RENEWAL_INDICATOR CHARACTER(1) 0.5 1058 0 0 85
N
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 215 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 215 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
215, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 216
LC_RELEASING_INDICATOR CHARACTER(1) 0.5 1058 0 0 85
N
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 216 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 216 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
216, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 217
LC_RELEASING_START_DATE DATE 1 1095 0 0 85 2000-01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 217 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 217 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
217, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 218
CH_ORDER_STATUS_ID INTEGER 0.333333 97 0 0 85
0 999993574 0 0
22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 218 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 218 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
218, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '999993574 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 219
OR_ACTUAL_DELIVERY_DATE DATE 1 1095 0 0 85 2000-01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 219 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 219 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
219, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 220
OR_ORDER_RECEIPT_CONFIRM_DATE DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 220 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 220 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
220, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 221
OR_CERTIFICATE_RECEIPT_DATE DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 221 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 221 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
221, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 222
OR_FIRSTDRIVERAPPOINTMENT_DATE DATE 1 1095 0 0 85
2000-01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 222 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 222 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
222, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 223
OR_DRIVER_APPOINTMENT_DATE DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 223 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 223 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
223, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 224
OR_ORDER_CANCELLATION_DATE DATE 1 1095 0 0 85 2000-
01-01
2000-01-01
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 224 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 224 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
224, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 225
OR_NUMBEROF_DRIVERAPPOINTMENTS NUMERIC(2,0) 1 1754 0 0
85 0 0
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 225 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 225 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
225, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 226
OR_ADVANCE_PURCHASE_INDICATOR CHARACTER(1) 1 1058 0 0 85

0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 226 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 226 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
226, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 227
LC_DOWNPAYMENT_INVESTMENT_AM NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 227 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 227 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
227, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT._TV_22900146_2 f 0 3 1 228
LC_DOWNPAYMENT_INVESTMENT_AM_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22957224 10266452

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 228 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 228 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
228, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.CHARACTERISTICS -------------

-- LPGR_DMA_ENTITY_REPORT2.CHARACTERISTICS f 0 12340 8 1
CHARACTERISTIC_ID INTEGER 8.10373e-05 97 0 0 341 -3
999992584 0 0 10305018 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 12340,
relrefs = 0,
relpages = 8
WHERE
oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (8.10373e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-3 ', '999992584 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CHARACTERISTICS f 0 12340 8 2
CHARACTERISTIC_TYPE_ID INTEGER 0.0060241 97 0 0 341
0 1079 0 0
10305018 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0060241 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '1079 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CHARACTERISTICS f 0 12340 8 3
CHARACTERISTIC_TYPE_DESC NATIONAL CHARACTER VARYING(125) 0.00595238
1022 0.000162075 0 341 Activation type Lease contract
Year Country ISO 3
67 149471 10305018 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00595238 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0.000162075 as float)),
(CAST(0 as float)), '341', '',
'Activation type Lease contract
', 'Year Country ISO 3
', 67, 149471
);

-- LPGR_DMA_ENTITY_REPORT2.CHARACTERISTICS f 0 12340 8 4
CHARACTERISTIC_MAIN_CODE NATIONAL CHARACTER VARYING(125) 0.000197433
1022 0 0 341
πράσινο
41 138728 10305018 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000197433 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'πράσινο
', 41, 138728
);

-- LPGR_DMA_ENTITY_REPORT2.CHARACTERISTICS f 0 12340 8 5
CHARACTERISTIC_SUB_CODE NATIONAL CHARACTER VARYING(125) 0.00031736 1022
0 0 341 -
Service Not Supplied
22 62631 10305018 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00031736 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-
', 'Service Not Supplied
', 22, 62631
);

-- LPGR_DMA_ENTITY_REPORT2.CHARACTERISTICS f 0 12340 8 6
CHARACTERISTIC_DESC NATIONAL CHARACTER VARYING(125) 0.000163159 1022
0 0 341
πράσινο
75 168584 10305018 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000163159 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'πράσινο
', 75, 168584
);

-- LPGR_DMA_ENTITY_REPORT2.CHARACTERISTICS f 0 12340 8 7
CHARACTERISTIC_CONS NATIONAL CHARACTER VARYING(125) 0.00182149 1022
0 0 341 1 SERIES
ZAFIRA
61 108051 10305018 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00182149 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1 SERIES
', 'ZAFIRA
', 61, 108051
);

-- LPGR_DMA_ENTITY_REPORT2.CHARACTERISTICS f 0 12340 8 8
LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305018 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CHARACTERISTICS f 0 12340 8 9
ORGANISATION_CODE CHARACTER(4) 0.333333 1058 0 0 341
LPGP
N/AV
0 0 10305018 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CHARACTERISTICS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'LPGP
', 'N/AV
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_MIDAS_DATA -------------

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_MIDAS_DATA f 0 0 10 1
MIDAS_DATA_ID BIGINT 0 412 0 0 16554
0 0 10305019 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 10
WHERE
oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_MIDAS_DATA f 0 0 10 2
LOCAL_KEY_MIDAS_DATA NATIONAL CHARACTER VARYING(125) 0 1022 0
0 16554

0 0 10305019 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_MIDAS_DATA f 0 0 10 3
CUSTOMER_ID BIGINT 0 412 0 0 16554
0 0 10305019 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_MIDAS_DATA f 0 0 10 4
CH_CLIENT_STATUS_ID INTEGER 0 97 0 0 16554
0 0 10305019 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_MIDAS_DATA f 0 0 10 5
CLIENT_STATUS_REMARKS NATIONAL CHARACTER VARYING(125) 0 1022 0
0 16554

0 0 10305019 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_MIDAS_DATA f 0 0 10 6
TOTAL_CVFLEET_POTENTIAL NUMERIC(6,0) 0 1754 0 0 16554
0 0 10305019
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_MIDAS_DATA f 0 0 10 7
REALISTIC_CVFLEET_POTENTIAL NUMERIC(6,0) 0 1754 0 0 16554

0 0 10305019 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_MIDAS_DATA f 0 0 10 8
CURRENT_YEAR_CVFLEET_POTENTIAL NUMERIC(6,0) 0 1754 0 0
16554
0 0 10305019 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_MIDAS_DATA f 0 0 10 9
LOAD_DATE DATE 0 1095 0 0 16554
0 0 10305019 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_MIDAS_DATA f 0 0 10 10
CH_INTERNATIONALCUSTOMERSTATUS INTEGER 0 97 0 0 16554
0 0
10305019 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_MIDAS_DATA^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA -------------

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 1
CUSTOMER_SLA_ID BIGINT 0.00018943 412 0 0 341 0
2153405692 0 0 10305020 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 5279,
relrefs = 0,
relpages = 13
WHERE
oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00018943 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '2153405692 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 2 CUSTOMER_ID


BIGINT 0.000221533 412 0 0 341 0
2152892625 0 0 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000221533 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '2152892625 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 3 PRODUCT_ID


BIGINT 0.142857 412 0 0 341 0
2147484098 0 0 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '2147484098 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 4
CH_DATA_EXTRACT_METH_AGREED_ID INTEGER 0.333333 97 0 0
341 1587095 999990408 0
0 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1587095 ', '999990408 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 5
CH_REGISTRATION_STAT_AGREED_ID INTEGER 0.5 97 0 0 341
1573 999990420 0 0
10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1573 ', '999990420 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 6
CH_SALE_CHANNEL_ID INTEGER 0.5 97 0 0 341 1574
999990421 0 0 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1574 ', '999990421 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 7
CH_SALES_SUB_CHANNEL_ID INTEGER 0.5 97 0 0 341 1575
999990422 0 0 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1575 ', '999990422 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 8
CH_WINTER_TYRES_AGREED_ID INTEGER 0.5 97 0 0 341
1593335 999990432 0 0
10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1593335 ', '999990432 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 9
CH_QUOTATION_MEDIUM_AGREED_ID INTEGER 0.5 97 0 0 341
1578 999990446 0 0
10305020 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1578 ', '999990446 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 10
CH_PURCHASE_OPTION_AGREED_ID INTEGER 0.333333 97 0 0 341
1577 999990445 0 0
10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1577 ', '999990445 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 11
CH_LEASEPLAN_BRAND_ID INTEGER 0.5 97 0 0 341
1593553 999990449 0 0
10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1593553 ', '999990449 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 12
LOCAL_KEY_CUSTOMER_SLA NATIONAL CHARACTER VARYING(125) 0.000189681 1022
0 0 341 Error in delivery
GR000400503L00002
19 100301 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000189681 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'Error in delivery
', 'GR000400503L00002
', 19, 100301
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 13
CUSTOMER_SLA_NUMBER NATIONAL CHARACTER VARYING(125) 0.000189609 1022
0 0 341 000200001L00001
Error in delivery
19 89745 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000189609 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'000200001L00001
', 'Error in delivery
', 19, 89745
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 14
PROFIT_SHARING_PERCENTAGE NUMERIC(6,3) 1 1754 0 0 341
0.000 0.000
0 0 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 15
INVOICE_PAYMENT_TERM NUMERIC(3,0) 0.0434783 1754 0 0 341
0 90
0 0 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0434783 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '90
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 16
DIRECT_DEBIT_APPLICABLE CHARACTER(1) 0.333333 1058 0 0 341

Y
0 0 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 17
CAR_COLLECTION_INCLUDED INTEGER 0.5 97 0 0 341 0
1 0 0 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '1 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 18
INTEREST_MARGIN NUMERIC(6,3) 0.0526316 1754 0 0 341
0.000 9.470
0 0 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0526316 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.000 ', '9.470
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 19
ACCOUNT_MANAGER_NUMBER NATIONAL CHARACTER VARYING(125) 0.0357143 1022
0 0 341
SM-RV
19 29825 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0357143 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'SM-RV
', 19, 29825
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 20
ACCOUNT_MANAGER_NAME NATIONAL CHARACTER VARYING(125) 0.0357143 1022
0 0 341
ΡΟΜΠΟΠΟΥΛΟΣ ΑΕ
29 68371 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0357143 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'ΡΟΜΠΟΠΟΥΛΟΣ ΑΕ
', 29, 68371
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 21
ACCOUNT_EXECUTIVE_NUMBER NATIONAL CHARACTER VARYING(125) 0.5 1022
0 0 341
Error in delivery
19 10575 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Error in delivery
', 19, 10575
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 22
ACCOUNT_EXECUTIVE_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 341 Error in delivery
Ind. not supplied by OpCo
27 142525 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'Error in delivery
', 'Ind. not supplied by OpCo
', 27, 142525
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 23
ACCOUNT_COORDINATOR_NUMBER NATIONAL CHARACTER VARYING(125) 0.5 1022
0 0 341
Error in delivery
19 10575 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
23, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Error in delivery
', 19, 10575
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 24
ACCOUNT_COORDINATOR_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022
0 0 341 Error in delivery
Ind. not supplied by OpCo
27 142525 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
24, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'Error in delivery
', 'Ind. not supplied by OpCo
', 27, 142525
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 25
ACCOUNT_SUPPORT_NUMBER NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 341
Error in delivery
19 10575 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
25, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Error in delivery
', 19, 10575
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 26
ACCOUNT_SUPPORT_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 341 Error in delivery
Ind. not supplied by OpCo
27 142525 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
26, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'Error in delivery
', 'Ind. not supplied by OpCo
', 27, 142525
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 27
SALES_MANAGER_NUMBER NATIONAL CHARACTER VARYING(125) 0.0357143 1022
0 0 341
SM-RV
19 29830 10305020 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (0.0357143 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
27, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'SM-RV
', 19, 29830
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 28
SALES_MANAGER_NAME NATIONAL CHARACTER VARYING(125) 0.0357143 1022
0 0 341
ΡΟΜΠΟΠΟΥΛΟΣ ΑΕ
29 68406 10305020 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (0.0357143 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
28, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'ΡΟΜΠΟΠΟΥΛΟΣ ΑΕ
', 29, 68406
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 29
SALES_EXECUTIVE_NUMBER NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 341
Error in delivery
19 10575 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
29, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Error in delivery
', 19, 10575
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 30
SALES_EXECUTIVE_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 341 Error in delivery
Ind. not supplied by OpCo
27 142525 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
30, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'Error in delivery
', 'Ind. not supplied by OpCo
', 27, 142525
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 31
SALES_COORDINATOR_NUMBER NATIONAL CHARACTER VARYING(125) 0.5 1022
0 0 341
Error in delivery
19 10575 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 31 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 31 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
31, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Error in delivery
', 19, 10575
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 32
SALES_COORDINATOR_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 341 Error in delivery
Ind. not supplied by OpCo
27 142525 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 32 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 32 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
32, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'Error in delivery
', 'Ind. not supplied by OpCo
', 27, 142525
);
-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 33
SALES_SUPPORT_NUMBER NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 341
Error in delivery
19 10575 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 33 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 33 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
33, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Error in delivery
', 19, 10575
);
-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 34
SALES_SUPPORT_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022 0
0 341 Error in delivery
Ind. not supplied by OpCo
27 142525 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 34 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 34 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
34, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'Error in delivery
', 'Ind. not supplied by OpCo
', 27, 142525
);
-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 35 LOAD_DATE
DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 35 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 35 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
35, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 36
CH_FINANCIAL_SETTLEMENT_ID INTEGER 0.5 97 0 0 341
1237339 999990633 0 0
10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 36 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 36 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
36, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1237339 ', '999990633 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 37
MIN_NUMBER_OF_OBJECTS_IN_FS NUMERIC(3,0) 1 1754 0 0 341
0 0
0 0 10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 37 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 37 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
37, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.CUSTOMER_SLA f 0 5279 13 38
CH_MVA_SETTLEMENT_TYPE_ID INTEGER 0.333333 97 0 0 341
1911789 999990762 0 0
10305020 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 38 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 38 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^CUSTOMER_SLA^ and objschemaoid =
(
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
38, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1911789 ', '999990762 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.D_ORG -------------

-- LPGR_DMA_ENTITY_REPORT2.D_ORG f 0 1 1 1 ORG_KEY BIGINT


1 412 0 0 85 275 275
0 0 10305021 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 1,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'275 ', '275 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.D_ORG f 0 1 1 2 ORGANISATION_CODE
CHARACTER(4) 1 1058 0 0 85 LPGR
LPGR
0 0 10305021 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'LPGR
', 'LPGR
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.D_ORG f 0 1 1 3
LP_ORGANISATION_NAME NATIONAL CHARACTER VARYING(125) 1 1022 0
0 85 LeasePlan Greece
LeasePlan Greece
18 18 10305021 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'LeasePlan Greece
', 'LeasePlan Greece
', 18, 18
);

-- LPGR_DMA_ENTITY_REPORT2.D_ORG f 0 1 1 4 LP_REGION_NAME
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 Latin
Region h
Latin Region h
16 16 10305021 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Latin Region h
', 'Latin Region h
', 16, 16
);

-- LPGR_DMA_ENTITY_REPORT2.D_ORG f 0 1 1 5 CURRENCY_CODE
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 EUR
EUR
5 5 10305021 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'EUR
', 'EUR
', 5, 5
);
-- LPGR_DMA_ENTITY_REPORT2.D_ORG f 0 1 1 6 DISTANCE_UNIT_DESC
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85
Kilometers
Kilometers
12 12 10305021 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Kilometers
', 'Kilometers
', 12, 12
);

-- LPGR_DMA_ENTITY_REPORT2.D_ORG f 0 1 1 7 DISTANCE_UNIT
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 km
km
4 4 10305021 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'km
', 'km
', 4, 4
);

-- LPGR_DMA_ENTITY_REPORT2.D_ORG f 0 1 1 8 VOLUME_UNIT
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 l
l
3 3 10305021 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'l
', 'l
', 3, 3
);

-- LPGR_DMA_ENTITY_REPORT2.D_ORG f 0 1 1 9 VOLUME_UNIT_DESC
NATIONAL CHARACTER VARYING(125) 1 1022 0 0 85 Litres
Litres
8 8 10305021 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Litres
', 'Litres
', 8, 8
);

-- LPGR_DMA_ENTITY_REPORT2.D_ORG f 0 1 1 10 LAST_EXTRACT_DATE
DATE 1 1095 0 0 85 2017-10-31
2017-10-31
0 0 10305021 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2017-10-31
', '2017-10-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.D_ORG f 0 1 1 11 LOAD_DATE DATE


1 1095 0 0 85 2018-10-04
2018-10-04
0 0 10305021 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.D_ORG f 0 1 1 12 LAST_TRN_ID
CHARACTER(10) 1 1058 0 0 85 GRTRN1022
GRTRN1022
0 0 10305021 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'GRTRN1022
', 'GRTRN1022
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.D_ORG f 0 1 1 13
EXCHANGE_RATE_TO_EURO NUMERIC(15,7) 1 1754 0 0 85
1.0000000 1.0000000
0 0 10305021 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1.0000000 ', '1.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.D_ORG f 0 1 1 14 REPORT_PERIOD
NUMERIC(6,0) 1 1754 0 0 85 201801
201801 0 0 10305021
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_ORG^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'201801 ', '201801
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.D_TIME -------------

-- LPGR_DMA_ENTITY_REPORT2.D_TIME f 0 36892 11 1 DATE DATE


2.71061e-05 1095 0 0 341 0001-01-01
9999-12-31
0 0 10305022 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 36892,
relrefs = 0,
relpages = 11
WHERE
oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (2.71061e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.D_TIME f 0 36892 11 2 YEAR INTEGER


0.00970874 97 0 0 341 1 9999
0 0 10305022 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00970874 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1 ', '9999 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.D_TIME f 0 36892 11 3 MONTH INTEGER


0.0833333 97 0 0 341 1 12
0 0 10305022 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0833333 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1 ', '12 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.D_TIME f 0 36892 11 4 MONTH_DESC


NATIONAL CHARACTER VARYING(125) 0.0833333 1022 0 0 341
April
September
11 300643 10305022 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0833333 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'April
', 'September
', 11, 300643
);

-- LPGR_DMA_ENTITY_REPORT2.D_TIME f 0 36892 11 5 LOAD_DATE DATE


1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305022 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.D_TIME f 0 36892 11 6 PERIOD


NUMERIC(6,0) 0.000823723 1754 0 0 341 101
999912 0 0 10305022
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000823723 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'101 ', '999912
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.D_TIME f 0 36892 11 7 WEEK INTEGER


0.0188679 97 0 0 341 1 53
0 0 10305022 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0188679 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^D_TIME^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1 ', '53 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_ADDL_INSURANCE_COVER_ITEM -------------

-- LPGR_DMA_ENTITY_REPORT2.F_ADDL_INSURANCE_COVER_ITEM f 0 36 1
1 ADDL_INSURANCE_COVER_ITEM_ID BIGINT 0.0277778 412 0 0
85 2169377982 2169378257 0
0 10305023 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 36,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0277778 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2169377982 ', '2169378257 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_ADDL_INSURANCE_COVER_ITEM f 0 36 1
2 LOCAL_KEY_ADDL_INSCOVER_ITEM NATIONAL CHARACTER VARYING(125)
0.0277778 1022 0 0 85
GR000200001150IOB892320150101GRORGS00010090401FEEPOLICY
GR000206059180IPT682920150803GRORGS00010090401TAXROAD_TAX
65 2110 10305023 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0277778 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'GR000200001150IOB892320150101GRORGS00010090401FEEPOLICY
', 'GR000206059180IPT682920150803GRORGS00010090401TAXROAD_TAX
', 65, 2110
);

-- LPGR_DMA_ENTITY_REPORT2.F_ADDL_INSURANCE_COVER_ITEM f 0 36 1
3 INSURANCE_COVER_ID BIGINT 0.111111 412 0 0 85
2169409808 2169409964 0 0
10305023 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2169409808 ', '2169409964 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_ADDL_INSURANCE_COVER_ITEM f 0 36 1
4 CH_INSCOVERITEM_CATEGORY_ID INTEGER 0.5 97 0 0 85
1593758 1593759 0 0
10305023 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1593758 ', '1593759 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_ADDL_INSURANCE_COVER_ITEM f 0 36 1
5 CH_INSCOVERITEM_SUBCATEGORY_ID INTEGER 0.166667 97 0
0 85 1593762 1593770
0 0 10305023 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1593762 ', '1593770 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_ADDL_INSURANCE_COVER_ITEM f 0 36 1
6 CH_INSCOVER_ITEM_DATA_TYPE_ID INTEGER 1 97 0 0 85
1593772 1593772 0 0
10305023 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1593772 ', '1593772 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_ADDL_INSURANCE_COVER_ITEM f 0 36 1
7 INSCOVER_ITEM_AMOUNTVALUE NUMERIC(11,2) 0.125 1754 0 0
85 0.00 37.71
0 0 10305023 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.125 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '37.71
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_ADDL_INSURANCE_COVER_ITEM f 0 36 1
8 INSCOVER_ITEM_AMOUNTVALUE_EUR NUMERIC(11,2) 0.125 1754 0 0
85 0.00 37.71
0 0 10305023 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.125 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '37.71
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_ADDL_INSURANCE_COVER_ITEM f 0 36 1
9 INSCOVER_ITEM_NUMERICVALUE NUMERIC(17,5) 1 1754 0 0
85 0.00000 0.00000
0 0 10305023 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00000 ', '0.00000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_ADDL_INSURANCE_COVER_ITEM f 0 36 1
10 INSCOVER_ITEM_PERCENTAGEVALUE NUMERIC(6,3) 1 1754 0 0
85 0.000 0.000
0 0 10305023 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '0.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_ADDL_INSURANCE_COVER_ITEM f 0 36 1
11 INSCOVER_ITEM_TEXTVALUE NATIONAL CHARACTER VARYING(125) 1 1022
0 0 85

2 72 10305023 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 2, 72
);

-- LPGR_DMA_ENTITY_REPORT2.F_ADDL_INSURANCE_COVER_ITEM f 0 36 1
12 INSCOVER_ITEM_FLAGVALUE CHARACTER(1) 1 1058 0 0 85

0 0 10305023 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_ADDL_INSURANCE_COVER_ITEM f 0 36 1
13 LOAD_DATE DATE 1 1095 0 0 85 2018-10-04
2018-10-04
0 0 10305023 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_ADDL_INSURANCE_COVER_ITEM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_DETAIL -------------

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_DETAIL f 0 357602 219 1


APPROVAL_DETAIL_ID BIGINT 2.7964e-06 412 0 0 341
2180222815 2180580416 0 0
10305024 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 357602,
relrefs = 0,
relpages = 219
WHERE
oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (2.7964e-06 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2180222815 ', '2180580416 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_DETAIL f 0 357602 219 2


LOCAL_KEY_APPROVAL_DETAIL NATIONAL CHARACTER VARYING(125) 2.84011e-06
1022 0 0 341 GR1
GR99999
10 3464915 10305024 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.84011e-06 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GR1
', 'GR99999
', 10, 3464915
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_DETAIL f 0 357602 219 3


CH_MAINTENANCE_DESCRIPTION_ID INTEGER 0.0344828 97 0 0 341
1911172 1911306 0 0
10305024 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0344828 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1911172 ', '1911306 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_DETAIL f 0 357602 219 4


CH_RECORD_STATUS_ID INTEGER 0.333333 97 0 0 341
1911200 1911932 0 0
10305024 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1911200 ', '1911932 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_DETAIL f 0 357602 219 5


LEASE_SERVICE_ID INTEGER 0.0714286 97 0 0 341
1593428 999990442 0 0
10305024 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0714286 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1593428 ', '999990442 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_DETAIL f 0 357602 219 6


LEASE_CONTRACT_VEHICLE_ID BIGINT 3.36666e-05 412 0 0 341
0 2171729640 0 0
10305024 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.36666e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '2171729640 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_DETAIL f 0 357602 219 7


APPROVAL_HEADER_ID BIGINT 6.19728e-06 412 0 0 341
2179601125 2180604717 0 0
10305024 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (6.19728e-06 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2179601125 ', '2180604717 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_DETAIL f 0 357602 219 8


APPROVAL_NUMBER NATIONAL CHARACTER VARYING(125) 6.24052e-06 1022 0
0 341 00114012
SIMS-97957
13 4136276 10305024 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (6.24052e-06 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'00114012
', 'SIMS-97957
', 13, 4136276
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_DETAIL f 0 357602 219 9


APPROVAL_LINE_AMOUNT NUMERIC(11,2) 0.000136166 1754 0 0 341
-1500.00 85000.00
0 0 10305024 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000136166 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-1500.00 ', '85000.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_DETAIL f 0 357602 219 10


APPROVAL_PASSED_ON_LINE_AMOUNT NUMERIC(11,2) 0.000776398 1754 0
0 341 0.00
44355.00 0 0 10305024
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000776398 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '44355.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_DETAIL f 0 357602 219 11


LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305024 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_DETAIL^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER -------------

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER f 0 161830 149 1


APPROVAL_HEADER_ID BIGINT 6.17932e-06 412 0 0 341
0 999999999999999998 0 0
10305025 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 161830,
relrefs = 0,
relpages = 149
WHERE
oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (6.17932e-06 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '999999999999999998 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER f 0 161830 149 2


CH_APPROVAL_TYPE_ID INTEGER 0.2 97 0 0 341
1911178 999991569 0 0
10305025 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1911178 ', '999991569 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER f 0 161830 149 3


CH_APPROVAL_JOB_STATUS_ID INTEGER 0.2 97 0 0 341
1911206 999991568 0 0
10305025 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1911206 ', '999991568 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER f 0 161830 149 4


LOCAL_KEY_APPROVAL_HEADER NATIONAL CHARACTER VARYING(125) 6.27514e-06
1022 0 0 341 Error in delivery
Not Applicable
24 3883907 10305025 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (6.27514e-06 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'Error in delivery
', 'Not Applicable
', 24, 3883907
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER f 0 161830 149 5


SERVICE_AUTORISATION_ID BIGINT 9.38315e-06 412 0 0 341
0 2180623093 0 0
10305025 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (9.38315e-06 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '2180623093 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER f 0 161830 149 6


LEASE_CONTRACT_VEHICLE_ID BIGINT 3.36621e-05 412 0 0 341
0 2171729640 0 0
10305025 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.36621e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '2171729640 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER f 0 161830 149 7


SUPPLIER_ID BIGINT 0.000899281 412 0 0 341 0
2152901568 0 0 10305025 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000899281 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '2152901568 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER f 0 161830 149 8


DAMAGE_ID BIGINT 0.000113559 412 0 0 341 0
2180159117 0 0 10305025 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000113559 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '2180159117 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER f 0 161830 149 9


APPROVAL_NUMBER NATIONAL CHARACTER VARYING(125) 6.27329e-06 1022 0
0 341 00114012
SIMS-97957
22 3560251 10305025 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (6.27329e-06 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'00114012
', 'SIMS-97957
', 22, 3560251
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER f 0 161830 149 10


IND_PASSED_ON CHARACTER(4) 0.333333 1058 0 0 341
Y
0 0 10305025 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER f 0 161830 149 11


APPROVAL_BOOKED_AMOUNT NUMERIC(11,2) 2.52902e-05 1754 0 0 341
-12476.99 165683.57
0 0 10305025 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.52902e-05 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-12476.99 ', '165683.57
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER f 0 161830 149 12


APPROVAL_AMOUNT NUMERIC(11,2) 2.40547e-05 1754 0 0 341
-1500.00 10112014.00
0 0 10305025 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.40547e-05 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-1500.00 ', '10112014.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER f 0 161830 149 13


EXTRA_GOODWILL_AMOUNT NUMERIC(11,2) 0.0135135 1754 0 0 341
0.00 12000.00
0 0 10305025 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0135135 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '12000.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER f 0 161830 149 14


APPROVAL_CREATION_TIMESTAMP TIMESTAMP 9.91867e-06 1322 0 0 341
0001-01-01 00:00:00
2017-08-21 12:43:17
0 0 10305025 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (9.91867e-06 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1322, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01 00:00:00
', '2017-08-21 12:43:17
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER f 0 161830 149 15


APPROVAL_LAST_UPD_TIMESTAMP TIMESTAMP 8.5904e-06 1322 0 0 341
0001-01-01 00:00:00
2017-08-21 12:43:17
0 0 10305025 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (8.5904e-06 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1322, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01 00:00:00
', '2017-08-21 12:43:17
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_APPROVAL_HEADER f 0 161830 149 16


LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305025 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_APPROVAL_HEADER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_CALCULATION -------------

-- LPGR_DMA_ENTITY_REPORT2.F_CALCULATION f 0 220607 95 1
LEASE_CONTRACT_VEHICLE_ID BIGINT 2.62778e-05 412 0 0 341
2165923382 2171729639 0 0
10305026 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 220607,
relrefs = 0,
relpages = 95
WHERE
oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (2.62778e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2165923382 ', '2171729639 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CALCULATION f 0 220607 95 2
CALCULATION_DATE DATE 0.000400481 1095 0 0 341 2004-01-14
2017-06-02
0 0 10305026 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000400481 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2004-01-14
', '2017-06-02
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CALCULATION f 0 220607 95 3
PROPOSAL_NUMBER NATIONAL CHARACTER VARYING(125) 4.578e-06 1022 0
0 341 0000439-001-000
0509199-002-000
17 3750319 10305026 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.578e-06 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0000439-001-000
', '0509199-002-000
', 17, 3750319
);

-- LPGR_DMA_ENTITY_REPORT2.F_CALCULATION f 0 220607 95 4
LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305026 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CALCULATION f 0 220607 95 5
CALCULATION_ID BIGINT 4.53295e-06 412 0 0 341
2171828868 2180154690 0 0
10305026 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.53295e-06 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2171828868 ', '2180154690 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.F_CALCULATION f 0 220607 95 6
LOCAL_KEY_CALCULATION NATIONAL CHARACTER VARYING(125) 4.57254e-06 1022
0 0 341 GRL00000740000740001000
GRL06690490509199002000
25 5515175 10305026 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.57254e-06 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GRL00000740000740001000
', 'GRL06690490509199002000
', 25, 5515175
);

-- LPGR_DMA_ENTITY_REPORT2.F_CALCULATION f 0 220607 95 7
CH_CALCULATION_TYPE_ID INTEGER 0.0833333 97 0 0 341
1586955 1586966 0 0
10305026 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0833333 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1586955 ', '1586966 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.F_CALCULATION f 0 220607 95 8
CH_QUOTATION_MEDIUM_TYPE_ID INTEGER 1 97 0 0 341
1572 1572 0 0
10305026 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CALCULATION^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1572 ', '1572 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_CLAIM -------------


-- LPGR_DMA_ENTITY_REPORT2.F_CLAIM f 0 0 10 1 CLAIM_ID BIGINT
0 412 0 0 16554
0 0 10305027 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 10
WHERE
oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CLAIM f 0 0 10 2 DAMAGE_ID BIGINT


0 412 0 0 16554
0 0 10305027 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CLAIM f 0 0 10 3 LOCAL_KEY_CLAIM
NATIONAL CHARACTER VARYING(125) 0 1022 0 0 16554

0 0 10305027 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CLAIM f 0 0 10 4 CH_CLAIM_TYPE_ID
INTEGER 0 97 0 0 16554
0 0 10305027 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CLAIM f 0 0 10 5 CH_CLAIM_STATUS_ID
INTEGER 0 97 0 0 16554
0 0 10305027 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CLAIM f 0 0 10 6 CLAIM_PAID_AMOUNT
NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305027
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CLAIM f 0 0 10 7
CLAIM_PAID_AMOUNT_EUR NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305027
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CLAIM f 0 0 10 8
CLAIM_RESERVE_AMOUNT NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305027
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CLAIM f 0 0 10 9
CLAIM_RESERVE_AMOUNT_EUR NUMERIC(11,2) 0 1754 0 0 16554

0 0 10305027 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CLAIM f 0 0 10 10
CLAIM_DEDUCTIBLE_AMOUNT NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305027
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CLAIM f 0 0 10 11
CLAIM_DEDUCTIBLE_AMOUNT_EUR NUMERIC(11,2) 0 1754 0 0 16554

0 0 10305027 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CLAIM f 0 0 10 12
LOSS_EXPENSES_PAID_AMOUNT NUMERIC(11,2) 0 1754 0 0 16554

0 0 10305027 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CLAIM f 0 0 10 13
LOSS_EXPENSES_PAID_AMOUNT_EUR NUMERIC(11,2) 0 1754 0 0 16554

0 0 10305027 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CLAIM f 0 0 10 14 LOAD_DATE DATE


0 1095 0 0 16554

0 0 10305027 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CLAIM^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_CONTACT_EVENTS -------------

-- LPGR_DMA_ENTITY_REPORT2.F_CONTACT_EVENTS f 0 176922 76 1
CONTACT_EVENT_ID BIGINT 5.65221e-06 412 0 0 341
2172162312 2180043152 0 0
10305028 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 176922,
relrefs = 0,
relpages = 76
WHERE
oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (5.65221e-06 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2172162312 ', '2180043152 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CONTACT_EVENTS f 0 176922 76 2
CUSTOMER_ID BIGINT 0.000616523 412 0 0 341 2152354668
2152892211 0 0 10305028 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000616523 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2152354668 ', '2152892211 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CONTACT_EVENTS f 0 176922 76 3
LEASEPLAN_ID BIGINT 0.0178571 412 0 0 341
2152353746 2152353860 0 0
10305028 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0178571 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2152353746 ', '2152353860 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CONTACT_EVENTS f 0 176922 76 4
LOCAL_KEY_CONTACT_EVENT NATIONAL CHARACTER VARYING(125) 5.68211e-06 1022
0 0 341 GR-GRINDU0002943-GRORGC000200001-20090717-1-4-00134
GR-GRINDUAFO-GRORGC000350118-20120831-12-4-111497
77 10791428 10305028 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (5.68211e-06 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GR-GRINDU0002943-GRORGC000200001-20090717-1-4-00134
', 'GR-GRINDUAFO-GRORGC000350118-20120831-12-4-111497
', 77, 10791428
);

-- LPGR_DMA_ENTITY_REPORT2.F_CONTACT_EVENTS f 0 176922 76 5
EVENTDATE DATE 0.000449035 1095 0 0 341 2004-01-08
2012-11-30
0 0 10305028 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000449035 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2004-01-08
', '2012-11-30
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CONTACT_EVENTS f 0 176922 76 6
NUMBER_OF_CALLS INTEGER 1 97 0 0 341 1
1 0 0 10305028 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1 ', '1 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CONTACT_EVENTS f 0 176922 76 7
CH_CALL_TYPE_ID INTEGER 0.0178571 97 0 0 341
1593644 1593699 0 0
10305028 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0178571 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1593644 ', '1593699 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CONTACT_EVENTS f 0 176922 76 8
CH_OUTCOME_TYPE_ID INTEGER 0.2 97 0 0 341
1593700 1593704 0 0
10305028 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1593700 ', '1593704 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CONTACT_EVENTS f 0 176922 76 9
LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305028 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CONTACT_EVENTS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_CUSTOMER_MONTHLY_INVOICED -------------

-- LPGR_DMA_ENTITY_REPORT2.F_CUSTOMER_MONTHLY_INVOICED f 0 0 10
1 CUSTOMER_MONTHLY_INVOICED_ID BIGINT 0 412 0 0 16554
0 0
10305029 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 10
WHERE
oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CUSTOMER_MONTHLY_INVOICED f 0 0 10
2 LEASE_CONTRACT_VEHICLE_ID BIGINT 0 412 0 0 16554
0 0
10305029 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CUSTOMER_MONTHLY_INVOICED f 0 0 10
3 LOCAL_KEY_CUSTOMERMONTHLYINV NATIONAL CHARACTER VARYING(125) 0
1022 0 0 16554

0 0 10305029 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CUSTOMER_MONTHLY_INVOICED f 0 0 10
4 BOOK_PERIOD NUMERIC(6,0) 0 1754 0 0 16554
0 0 10305029
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CUSTOMER_MONTHLY_INVOICED f 0 0 10
5 TOTAL_INVOICED_AMOUNT NUMERIC(11,2) 0 1754 0 0 16554

0 0 10305029 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CUSTOMER_MONTHLY_INVOICED f 0 0 10
6 TOTAL_INVOICED_AMOUNT_EUR NUMERIC(11,2) 0 1754 0 0
16554
0 0 10305029 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_CUSTOMER_MONTHLY_INVOICED f 0 0 10
7 LOAD_DATE DATE 0 1095 0 0 16554

0 0 10305029 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_CUSTOMER_MONTHLY_INVOICED^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE -------------

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 1


LEASE_CONTRACT_VEHICLE_ID BIGINT 5.8524e-05 412 0 0 341
2165923382 2171729631 0 0
10305030 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 47204,
relrefs = 0,
relpages = 142
WHERE
oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;
UPDATE _t_attribute
SET
attdispersion = (CAST (5.8524e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2165923382 ', '2171729631 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 2 DAMAGE_NUMBER


NATIONAL CHARACTER VARYING(125) 2.14648e-05 1022 0 0 341
00000001
91231004
13 504536 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.14648e-05 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'00000001
', '91231004
', 13, 504536
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 3 DAMAGE_AMOUNT


NUMERIC(11,2) 4.04727e-05 1754 0 0 341 0.00
470543.46 0 0 10305030
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.04727e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '470543.46
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 4 DAMAGE_AMOUNT_EUR


NUMERIC(11,2) 4.04727e-05 1754 0 0 341 0.00
470543.46 0 0 10305030
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.04727e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '470543.46
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 5


DAMAGE_RECOVERED_AMOUNT NUMERIC(11,2) 9.97904e-05 1754 0 0 341
-595.00 447013.08
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (9.97904e-05 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-595.00 ', '447013.08
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 6


DAMAGE_RECOVERED_AMOUNT_EUR NUMERIC(11,2) 9.97904e-05 1754 0 0
341 -595.00 447013.08
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (9.97904e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-595.00 ', '447013.08
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 7 LOAD_DATE DATE


1 1095 0 0 341 2018-10-16
2018-10-16
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-16
', '2018-10-16
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 8 DAMAGE_DATE DATE


0.000229674 1095 0 0 341 0001-01-01
9201-10-02
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000229674 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '9201-10-02
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 9 DAMAGE_ID BIGINT


2.11846e-05 412 0 0 341 2172011292
2180159119 0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.11846e-05 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2172011292 ', '2180159119 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 10 LOCAL_KEY_DAMAGE


NATIONAL CHARACTER VARYING(125) 2.14666e-05 1022 0 0 341
GR00000001
GR91231004
15 598944 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.14666e-05 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GR00000001
', 'GR91231004
', 15, 598944
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 11 CH_DAMAGE_CAUSE_ID


INTEGER 0.0227273 97 0 0 341 1583
1587094 0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0227273 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1583 ', '1587094 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 12


LOCAL_KEY_LP_EXPERT NATIONAL CHARACTER VARYING(125) 0.142857 1022
0 0 341 GRINDD0000001001
Not supplied by OpCo
22 1038420 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GRINDD0000001001
', 'Not supplied by OpCo
', 22, 1038420
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 13 LP_EXPERT_NUMBER


NATIONAL CHARACTER VARYING(125) 0.142857 1022 0 0 341
0000001001
Not supplied by OpCo
22 1038318 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0000001001
', 'Not supplied by OpCo
', 22, 1038318
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 14 LP_EXPERT_NAME


NATIONAL CHARACTER VARYING(125) 0.166667 1022 0 0 341
Not supplied by OpCo
ΦΙΛΙΠΠΙΔΗΣ ΠΟΛΥΔΩΡΟΣ
41 1038579 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'Not supplied by OpCo
', 'ΦΙΛΙΠΠΙΔΗΣ ΠΟΛΥΔΩΡΟΣ
', 41, 1038579
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 15


LOCAL_KEY_DAMAGE_DRIVER NATIONAL CHARACTER VARYING(125) 1 1022 1
0 341

0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1022, (CAST(1 as float)),
(CAST(0 as float)), '341', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 16


DAMAGE_DRIVER_NUMBER NATIONAL CHARACTER VARYING(125) 1 1022 1
0 341

0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1022, (CAST(1 as float)),
(CAST(0 as float)), '341', '',
'
', '
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 17 DAMAGE_DRIVER_NAME
NATIONAL CHARACTER VARYING(125) 1 1022 1 0 341

0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 1022, (CAST(1 as float)),
(CAST(0 as float)), '341', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 18


LOCAL_KEY_DAMGE_REPAIRSHOP NATIONAL CHARACTER VARYING(125) 0.00150602
1022 0 0 341 GRORGB000200636
Not supplied by OpCo
22 837890 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00150602 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GRORGB000200636
', 'Not supplied by OpCo
', 22, 837890
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 19


DAMAGE_REPAIRSHOP_NUMBER NATIONAL CHARACTER VARYING(125) 0.00189753
1022 0 0 341 000000000
Not supplied by OpCo
22 519750 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00189753 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'000000000
', 'Not supplied by OpCo
', 22, 519750
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 20


DAMAGE_REPAIRSHOP_NAME NATIONAL CHARACTER VARYING(125) 0.00196464 1022
0 0 341 *DELETED CODE
ΩΤΟ ΝΤΑΖ ΕΠΕ
69 1266440 10305030 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (0.00196464 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'*DELETED CODE
', 'ΩΤΟ ΝΤΑΖ ΕΠΕ
', 69, 1266440
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 21


DAMAGE_REPAIRSHOP_ADDRESS NATIONAL CHARACTER VARYING(125) 0.00165017
1022 0 0 341 ΣΧΗΜΑΤΑΡΙ ΒΟΙΩΤΙΑΣ
ΧΩΡΑ ΝΑΞΟΥ ΝΑΞΟΣ
108 2911476 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00165017 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
' ΣΧΗΜΑΤΑΡΙ ΒΟΙΩΤΙΑΣ
', 'ΧΩΡΑ ΝΑΞΟΥ ΝΑΞΟΣ
', 108, 2911476
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 22


LOCAL_KEY_DAMAGE_BROKER NATIONAL CHARACTER VARYING(125) 0.0384615 1022
0 0 341 GRORGB000300024
Not supplied by OpCo
22 805246 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0384615 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GRORGB000300024
', 'Not supplied by OpCo
', 22, 805246
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 23


DAMAGE_BROKER_NUMBER NATIONAL CHARACTER VARYING(125) 0.0384615 1022
0 0 341 000000000
Not supplied by OpCo
22 519761 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0384615 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
23, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'000000000
', 'Not supplied by OpCo
', 22, 519761
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 24 DAMAGE_BROKER_NAME


NATIONAL CHARACTER VARYING(125) 0.0384615 1022 0 0 341
.
ΣΦΑΚΙΑΝΑΚΗΣ ΑΕΒΕ
61 1135644 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0384615 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
24, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'.
', 'ΣΦΑΚΙΑΝΑΚΗΣ ΑΕΒΕ
', 61, 1135644
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 25 OWN_RISK_AMOUNT


NUMERIC(11,2) 0.0434783 1754 0.000932124 0 341 0.00
12345.67 0 0 10305030
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0434783 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
25, 1754, (CAST(0.000932124 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '12345.67
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 26


OWN_RISK_AMOUNT_EUR NUMERIC(11,2) 0.0434783 1754 0.000932124 0
341 0.00 12345.67
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0434783 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
26, 1754, (CAST(0.000932124 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '12345.67
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 27


OWN_FAULT_INDICATOR CHARACTER(1) 1 1058 1 0 341

0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
27, 1058, (CAST(1 as float)),
(CAST(0 as float)), '341', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 28


CAR_TRANSPORTATION_REQUIRED CHARACTER(1) 0.333333 1058 0.000932124
0 341
Y
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
28, 1058, (CAST(0.000932124 as float)),
(CAST(0 as float)), '341', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 29


CH_DAMAGE_CIRCUMSTANCE_ID INTEGER 0.2 97 0 0 341
1599433 999990532 0 0
10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
29, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1599433 ', '999990532 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 30 CH_DAMAGE_AREA_ID


INTEGER 0.25 97 0 0 341 1599466
999990533 0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
30, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1599466 ', '999990533 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 31


CH_DAMAGE_STATUS_ID INTEGER 1 97 1 0 341 0
0 0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 31 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 31 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
31, 97, (CAST(1 as float)),
(CAST(0 as float)), '341', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 32 ACCIDENT_ADDRESS


NATIONAL CHARACTER VARYING(125) 4.03779e-05 1022 0.000932124 0 341

χολαργος,ναξου
52 1254232 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.03779e-05 as float))
WHERE
attnum = 32 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 32 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
32, 1022, (CAST(0.000932124 as float)),
(CAST(0 as float)), '341', '',
'
', 'χολαργος,ναξου
', 52, 1254232
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 33


DAMAGE_CREATION_DATE DATE 1 1095 1 0 341 2000-01-01
2000-01-01
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 33 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 33 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
33, 1095, (CAST(1 as float)),
(CAST(0 as float)), '341', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 34


DAMAGE_ASSESSMENT_DATE DATE 0.000517331 1095 0.000932124 0 341
0001-01-01
2031-05-05
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000517331 as float))
WHERE
attnum = 34 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 34 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
34, 1095, (CAST(0.000932124 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '2031-05-05
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 35


REPAIRSHOP_ENTRY_DATE DATE 0.000317058 1095 0 0 341 0001-
01-01
9999-12-31
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000317058 as float))
WHERE
attnum = 35 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 35 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
35, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 36


DAMAGEREPAIR_BUDGETAPPR_DATE DATE 0.047619 1095 0.000932124 0 341
0001-01-01
2016-07-13
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.047619 as float))
WHERE
attnum = 36 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 36 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
36, 1095, (CAST(0.000932124 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '2016-07-13
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 37


DAMAGEREPAIR_START_DATE DATE 0.000270636 1095 0.000932124 0 341
0001-01-01
2209-04-07
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000270636 as float))
WHERE
attnum = 37 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 37 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
37, 1095, (CAST(0.000932124 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '2209-04-07
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 38
PLANNED_DAMAGEREPAIR_END_DATE DATE 0.000286123 1095 0.000932124 0 341
2001-01-01
9999-12-31
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000286123 as float))
WHERE
attnum = 38 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 38 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
38, 1095, (CAST(0.000932124 as float)),
(CAST(0 as float)), '341', '',
'2001-01-01
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 39


ACTUAL_DAMAGEREPAIR_END_DATE DATE 0.00031736 1095 0 0 341
2003-08-31
9999-12-31
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00031736 as float))
WHERE
attnum = 39 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 39 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
39, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2003-08-31
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 40


DAMAGEREPAIR_DURATION NUMERIC(3,0) 0.00746269 1754 0.000932124 0
341 0 380
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00746269 as float))
WHERE
attnum = 40 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 40 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
40, 1754, (CAST(0.000932124 as float)),
(CAST(0 as float)), '341', '',
'0 ', '380
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 41


CH_DAMAGE_CATEGORY_ID INTEGER 0.25 97 0 0 341
1680826 999990552 0 0
10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 41 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 41 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
41, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1680826 ', '999990552 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 42


LOCAL_KEY_DRIVER_AT_ACCIDENT NATIONAL CHARACTER VARYING(125) 4.705e-05
1022 0 0 341 GRINDD0000048001
Not supplied by OpCo
22 860800 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.705e-05 as float))
WHERE
attnum = 42 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 42 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
42, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GRINDD0000048001
', 'Not supplied by OpCo
', 22, 860800
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 43


DRIVER_AT_ACCIDENT_NUMBER NATIONAL CHARACTER VARYING(125) 4.70278e-05
1022 0 0 341 0000048001
Not supplied by OpCo
22 594268 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.70278e-05 as float))
WHERE
attnum = 43 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 43 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
43, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0000048001
', 'Not supplied by OpCo
', 22, 594268
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 44


DRIVER_AT_ACCIDENT_NAME NATIONAL CHARACTER VARYING(125) 5.82581e-05 1022
0 0 341
κ. ΣΙΜΟΠΟΥΛΟΣ ΕΥΣΤΡ.
70 1633465 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (5.82581e-05 as float))
WHERE
attnum = 44 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 44 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
44, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'κ. ΣΙΜΟΠΟΥΛΟΣ ΕΥΣΤΡ.
', 70, 1633465
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 45 AT_FAULT_INDICATOR


CHARACTER(1) 0.333333 1058 0 0 341
Y
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 45 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 45 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
45, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 46


CH_DAMAGE_FILE_STATUS_ID INTEGER 0.25 97 0 0 341
1599499 999990534 0 0
10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 46 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 46 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
46, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1599499 ', '999990534 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 47


DAMAGE_NOTIFICATION_DATE DATE 0.00431034 1095 0 0 341
0001-01-01
5207-10-03
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00431034 as float))
WHERE
attnum = 47 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 47 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
47, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '5207-10-03
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 48


CH_OD_ACCIDENT_TYPE_ID INTEGER 0.5 97 0 0 341
999990532 999992532 0 0
10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 48 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 48 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
48, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'999990532 ', '999992532 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 49


CH_TPL_ACCIDENT_TYPE_ID INTEGER 0.5 97 0 0 341
999990532 999992532 0 0
10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 49 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 49 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
49, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'999990532 ', '999992532 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 50


MILEAGE_AT_DAMAGEEVENTMOMENT NUMERIC(7,0) 0.00114811 1754 0 0
341 0 235543
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00114811 as float))
WHERE
attnum = 50 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 50 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
50, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '235543
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 51


BODILY_INJURY_INDICATOR CHARACTER(1) 0.333333 1058 0 0 341

Y
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 51 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 51 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
51, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 52 DAMAGE_DESCRIPTION


NATIONAL CHARACTER VARYING(500) 0.00238095 1022 0 0 341
Scratch Wind / fall of object Right side
77 1021877 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00238095 as float))
WHERE
attnum = 52 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 52 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
52, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Scratch Wind / fall of object Right side
', 77, 1021877
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 53


RECOVERABLE_INDICATOR CHARACTER(1) 0.333333 1058 0 0 341

Y
0 0 10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 53 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 53 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
53, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_DAMAGE f 0 47204 142 54


CH_LEGAL_LIABILITY_TYPE_ID INTEGER 0.125 97 0 0 341
1911586 999990760 0 0
10305030 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.125 as float))
WHERE
attnum = 54 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 54 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_DAMAGE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
54, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1911586 ', '999990760 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_EARNED_INSURANCE_PREMIUM -------------

-- LPGR_DMA_ENTITY_REPORT2.F_EARNED_INSURANCE_PREMIUM f 0 30 1 1
EARNED_PREMIUN_ID BIGINT 0.0333333 412 0 0 85
2174552536 2174552594 0 0
10305032 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 30,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0333333 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2174552536 ', '2174552594 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_EARNED_INSURANCE_PREMIUM f 0 30 1 2
LOCAL_KEY_EARNED_PREMIUM NATIONAL CHARACTER VARYING(125) 0.0333333
1022 0 0 85 GR000200001150IOB8923201501
GR000205015180IOY2742201508
29 870 10305032 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0333333 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'GR000200001150IOB8923201501
', 'GR000205015180IOY2742201508
', 29, 870
);

-- LPGR_DMA_ENTITY_REPORT2.F_EARNED_INSURANCE_PREMIUM f 0 30 1 3
INSURANCE_COVER_ID BIGINT 0.0555556 412 0 0 85
2169409808 2169409948 0 0
10305032 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0555556 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2169409808 ', '2169409948 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_EARNED_INSURANCE_PREMIUM f 0 30 1 4
CH_COVER_TYPE_ID INTEGER 0.5 97 0 0 85 1593602
1593608 0 0 10305032 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1593602 ', '1593608 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_EARNED_INSURANCE_PREMIUM f 0 30 1 5
START_DATE_EARNED_PREMIUM DATE 0.125 1095 0 0 85 2015-
01-01
2015-08-01
0 0 10305032 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.125 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2015-01-01
', '2015-08-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_EARNED_INSURANCE_PREMIUM f 0 30 1 6
END_DATE_EARNED_PREMIUM DATE 0.0714286 1095 0 0 85 2015-
01-31
2015-08-07
0 0 10305032 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0714286 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2015-01-31
', '2015-08-07
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_EARNED_INSURANCE_PREMIUM f 0 30 1 7
EARNED_PREMIUM_AMOUNT NUMERIC(11,2) 0.0769231 1754 0 0 85
0.02 18.45
0 0 10305032 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0769231 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.02 ', '18.45
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_EARNED_INSURANCE_PREMIUM f 0 30 1 8
EARNED_PREMIUM_AM_EUR NUMERIC(11,2) 0.0769231 1754 0 0 85
0.02 18.45
0 0 10305032 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0769231 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.02 ', '18.45
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_EARNED_INSURANCE_PREMIUM f 0 30 1 9
STOP_LOSS_EARNED_AMOUNT NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 10305032 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_EARNED_INSURANCE_PREMIUM f 0 30 1 10
STOP_LOSS_EARNED_AMOUNT_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 10305032 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_EARNED_INSURANCE_PREMIUM f 0 30 1 11
LOAD_DATE DATE 1 1095 0 0 85 2018-10-04
2018-10-04
0 0 10305032 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_EARNED_INSURANCE_PREMIUM^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_FINAL_TOTALS -------------

-- LPGR_DMA_ENTITY_REPORT2.F_FINAL_TOTALS f 0 0 10 1
FINAL_TOTALS_ID BIGINT 0 412 0 0 16554
0 0 10305033 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 10
WHERE
oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_FINAL_TOTALS f 0 0 10 2
LOCAL_KEY_FINAL_TOTALS NATIONAL CHARACTER VARYING(125) 0 1022 0
0 16554

0 0 10305033 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_FINAL_TOTALS f 0 0 10 3 BOOKPERIOD
DATE 0 1095 0 0 16554

0 0 10305033 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_FINAL_TOTALS f 0 0 10 4 COST_AMOUNT
NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305033
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_FINAL_TOTALS f 0 0 10 5
CUMULATIVE_COST NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305033
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_FINAL_TOTALS f 0 0 10 6
INVOICED_AMOUNT NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305033
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_FINAL_TOTALS f 0 0 10 7
CUMULATIVE_INVOICED NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305033
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_FINAL_TOTALS f 0 0 10 8
PREPAID_AMOUNT NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305033
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_FINAL_TOTALS f 0 0 10 9
CUMULATIVE_PREPAID NUMERIC(11,2) 0 1754 0 0 16554
0 0 10305033
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_FINAL_TOTALS f 0 0 10 10
LEASE_CONTRACT_ID BIGINT 0 412 0 0 16554
0 0 10305033 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_FINAL_TOTALS f 0 0 10 11
CH_REPORTTYPE_ID INTEGER 0 97 0 0 16554
0 0 10305033 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_FINAL_TOTALS f 0 0 10 12
CH_SERVICE_ID INTEGER 0 97 0 0 16554
0 0 10305033 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_FINAL_TOTALS f 0 0 10 13
CH_LEASE_CONTRACT_STATUS_ID INTEGER 0 97 0 0 16554
0 0 10305033 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_FINAL_TOTALS f 0 0 10 14 LOAD_DATE
DATE 0 1095 0 0 16554

0 0 10305033 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_FINAL_TOTALS^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER -------------

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 1
INSURANCE_COVER_ID BIGINT 0.0104167 412 0 0 85
2169409808 2169409964 0 0
10305034 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 96,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0104167 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2169409808 ', '2169409964 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 2
LOCAL_KEY_INSURANCE_COVER NATIONAL CHARACTER VARYING(125) 0.0104167
1022 0 0 85 GR000200001150IOB892320150101GRORGS00010090401
GR000206059180IPT682920150803GRORGS00010090401
48 4608 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0104167 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'GR000200001150IOB892320150101GRORGS00010090401
', 'GR000206059180IPT682920150803GRORGS00010090401
', 48, 4608
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 3
INSURANCE_AGREEMENT_ID BIGINT 0.5 412 0 0 85 0
2169409980 0 0 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '2169409980 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 4
INSURER_ID BIGINT 1 412 0 0 85 2152361163
2152361163 0 0 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2152361163 ', '2152361163 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 5
LEASE_CONTRACT_VEHICLE_ID BIGINT 0.011236 412 0 0 85
2165928837 2169409715 0 0
10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.011236 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2165928837 ', '2169409715 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 6
CH_COVER_TYPE_ID INTEGER 0.333333 97 0 0 85
1593602 1593608 0 0
10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1593602 ', '1593608 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 7
CH_PREMIUM_PERIOD_TYPE_ID INTEGER 1 97 0 0 85
1593735 1593735 0 0
10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1593735 ', '1593735 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 8
VEHICLE_REMOVED_DATE DATE 0.111111 1095 0 0 85 2015-
07-08
2015-08-31
0 0 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2015-07-08
', '2015-08-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 9
VEHICLE_ADDED_DATE DATE 0.0833333 1095 0 0 85 2015-
01-01
2015-09-01
0 0 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0833333 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2015-01-01
', '2015-09-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 10
MULTI_YEAR_COVER_INDICATOR CHARACTER(1) 1 1058 0 0 85

0 0 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 11
GROSS_WRITTEN_PREMIUM_AM NUMERIC(11,2) 0.5 1754 0 0 85
6.96 244.00
0 0 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'6.96 ', '244.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 12
GROSS_WRITTEN_PREMIUM_AM_EUR NUMERIC(11,2) 0.5 1754 0 0 85
6.96 244.00
0 0 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'6.96 ', '244.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 13
PREMIUM_MARGIN_AM NUMERIC(11,2) 1 1754 0 0 85 0.00
0.00 0 0 10305034
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 14
PREMIUM_MARGIN_AM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 15
STOP_LOSS_WRITTEN_AM NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 16
STOP_LOSS_WRITTEN_AM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 17
VEHICLE_WRITE_OFF_INDICATOR CHARACTER(1) 1 1058 0 0 85
N
N
0 0 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'N
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 18
AGGREGATE_DEDUCTABLE_INDICATOR CHARACTER(1) 1 1058 0 0
85 N
N
0 0 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'N
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 19
FIXED_PREMIUM_DURATION NUMERIC(2,0) 1 1754 0 0 85
0 0
0 0 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 20
CLAIM_FRANCHISE_AM NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 21
CLAIM_FRANCHISE_AM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INSURANCE_COVER f 0 96 1 22
LOAD_DATE DATE 1 1095 0 0 85 2018-10-04
2018-10-04
0 0 10305034 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INSURANCE_COVER^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_INVOICE_PAYMENT_DETAILS -------------

-- LPGR_DMA_ENTITY_REPORT2.F_INVOICE_PAYMENT_DETAILS f 0 39025 20 1
INVOICE_PAYMENTS_ID BIGINT 2.56246e-05 412 0 0 341
2175376233 2180080345 0 0
10305035 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 39025,
relrefs = 0,
relpages = 20
WHERE
oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (2.56246e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2175376233 ', '2180080345 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INVOICE_PAYMENT_DETAILS f 0 39025 20 2
INVOICE_ID BIGINT 1 412 0 0 341 0
0 0 0 10305035 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INVOICE_PAYMENT_DETAILS f 0 39025 20 3
DEBTOR_ID BIGINT 0.000401445 412 0 0 341 2152664744
2152899219 0 0 10305035 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000401445 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2152664744 ', '2152899219 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INVOICE_PAYMENT_DETAILS f 0 39025 20 4
LOCAL_KEY_INVOICE_PAYMENTS NATIONAL CHARACTER VARYING(125) 2.56568e-05
1022 0 0 341 GRORGD000200001-200901
GRORGD000400575-201211
24 936600 10305035 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.56568e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GRORGD000200001-200901
', 'GRORGD000400575-201211
', 24, 936600
);

-- LPGR_DMA_ENTITY_REPORT2.F_INVOICE_PAYMENT_DETAILS f 0 39025 20 5
BOOKPERIOD DATE 0.0212766 1095 0 0 341 2009-01-31
2012-11-30
0 0 10305035 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0212766 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2009-01-31
', '2012-11-30
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INVOICE_PAYMENT_DETAILS f 0 39025 20 6
PAYED_AMOUNT NUMERIC(11,2) 4.69903e-05 1754 0 0 341
0.02 754799.94
0 0 10305035 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.69903e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.02 ', '754799.94
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_INVOICE_PAYMENT_DETAILS f 0 39025 20 7
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125) 1 1022 0 0
341

2 78050 10305035 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', '
', 2, 78050
);

-- LPGR_DMA_ENTITY_REPORT2.F_INVOICE_PAYMENT_DETAILS f 0 39025 20 8
LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305035 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_INVOICE_PAYMENT_DETAILS^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_KPI -------------

-- LPGR_DMA_ENTITY_REPORT2.F_KPI f 0 134 1 1 KPI_ID BIGINT


0.00746269 412 0 0 85 2172339147
2172339280 0 0 10305036 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 134,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00746269 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2172339147 ', '2172339280 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_KPI f 0 134 1 2 LOCAL_KEY_KPI


NATIONAL CHARACTER VARYING(125) 0.00746269 1022 0 0 85
GR-GRINDUSMCP-001-ACT-60
GR-GRORGS000100666-007-TAR-31
31 3748 10305036 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00746269 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'GR-GRINDUSMCP-001-ACT-60
', 'GR-GRORGS000100666-007-TAR-31
', 31, 3748
);

-- LPGR_DMA_ENTITY_REPORT2.F_KPI f 0 134 1 3 PERIOD DATE


1 1095 0 0 85 2012-12-31
2012-12-31
0 0 10305036 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2012-12-31
', '2012-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_KPI f 0 134 1 4 VALUE


NUMERIC(11,2) 0.0108696 1754 0 0 85 0.00
750000.00 0 0 10305036
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0108696 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '750000.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_KPI f 0 134 1 5 INVOLVED_PARTY_ID


BIGINT 0.0357143 412 0 0 85 2152353753
2152360917 0 0 10305036 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0357143 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2152353753 ', '2152360917 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_KPI f 0 134 1 6 CH_KPI_ID


INTEGER 0.125 97 0 0 85 1593705
1593712 0 0 10305036 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.125 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1593705 ', '1593712 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_KPI f 0 134 1 7 CH_PERIOD_TYPE_ID


INTEGER 1 97 0 0 85 1593713
1593713 0 0 10305036 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1593713 ', '1593713 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_KPI f 0 134 1 8 CH_VALUE_TYPE_ID


INTEGER 0.5 97 0 0 85 1593714
1593715 0 0 10305036 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1593714 ', '1593715 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_KPI f 0 134 1 9 LOAD_DATE DATE


1 1095 0 0 85 2018-10-04
2018-10-04
0 0 10305036 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_KPI^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_LC_STATUS_REGISTRATION_HIST -------------

-- LPGR_DMA_ENTITY_REPORT2.F_LC_STATUS_REGISTRATION_HIST f 0 54638 9
1 LEASE_CONTRACT_VEHICLE_ID BIGINT 2.25795e-05 412 0 0
341 2165923382 2171729639 0
0 10305037 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 54638,
relrefs = 0,
relpages = 9
WHERE
oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (2.25795e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2165923382 ', '2171729639 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_LC_STATUS_REGISTRATION_HIST f 0 54638 9
2 EFFECTIVE_START_DATE DATE 0.2 1095 0 0 341 2014-
06-10
2017-06-23
0 0 10305037 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2014-06-10
', '2017-06-23
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_LC_STATUS_REGISTRATION_HIST f 0 54638 9
3 CH_LEASE_CONTRACT_STATUS_ID INTEGER 0.1 97 0 0 341
1546 1593301 0 0
10305037 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1546 ', '1593301 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_LC_STATUS_REGISTRATION_HIST f 0 54638 9
4 EFFECTIVE_END_DATE DATE 0.25 1095 0 0 341 2015-
08-08
9999-12-31
0 0 10305037 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LC_STATUS_REGISTRATION_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2015-08-08
', '9999-12-31
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_LEASE_CONTRACT_STATUS_HIST -------------

-- LPGR_DMA_ENTITY_REPORT2.F_LEASE_CONTRACT_STATUS_HIST f 0 1515306
417 1 LEASE_CONTRACT_VEHICLE_ID BIGINT 2.13945e-05 412 0
0 341 2165923382 2171729640
0 0 10305038 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 1515306,
relrefs = 0,
relpages = 417
WHERE
oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (2.13945e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2165923382 ', '2171729640 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_LEASE_CONTRACT_STATUS_HIST f 0 1515306
417 2 CUSTOMER_ID BIGINT 0.000221533 412 0 0 341
0 2152892625 0 0
10305038 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000221533 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '2152892625 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_LEASE_CONTRACT_STATUS_HIST f 0 1515306
417 3 STATUS_PERIOD_DATE DATE 0.00595238 1095 0 0 341
2004-02-29
2018-01-31
0 0 10305038 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00595238 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2004-02-29
', '2018-01-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_LEASE_CONTRACT_STATUS_HIST f 0 1515306
417 4 LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305038 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_LEASE_CONTRACT_STATUS_HIST f 0 1515306
417 5 LEASE_CONTRACT_PERIOD_STATUS NATIONAL CHARACTER VARYING(125)
0.2 1022 0 0 341 Ended
Unreliable
13 19361409 10305038 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LEASE_CONTRACT_STATUS_HIST^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'Ended
', 'Unreliable
', 13, 19361409
);

------------- LPGR_DMA_ENTITY_REPORT2.F_LP_ENTITY_LC_STATUS_HIST -------------

-- LPGR_DMA_ENTITY_REPORT2.F_LP_ENTITY_LC_STATUS_HIST f 0 484 1 1
PERIOD_DATE DATE 0.00826446 1095 0 0 85 2008-01-31
2018-01-31
0 0 10305039 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 484,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00826446 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2008-01-31
', '2018-01-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_LP_ENTITY_LC_STATUS_HIST f 0 484 1 2
LOAD_DATE DATE 1 1095 0 0 85 2018-10-04
2018-10-04
0 0 10305039 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_LP_ENTITY_LC_STATUS_HIST f 0 484 1 3
LEASE_CONTRACT_STATUS NATIONAL CHARACTER VARYING(125) 0.2 1022 0
0 85 Ended
Unreliable
13 4929 10305039 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Ended
', 'Unreliable
', 13, 4929
);

-- LPGR_DMA_ENTITY_REPORT2.F_LP_ENTITY_LC_STATUS_HIST f 0 484 1 4
LP_ENTITY_LC_STATUS_HIST_KEY NATIONAL CHARACTER VARYING(125) 0.00206612
1022 0 0 85 2008-01-31_Ended
2018-01-31_Unreliable
24 10253 10305039 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00206612 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2008-01-31_Ended
', '2018-01-31_Unreliable
', 24, 10253
);

-- LPGR_DMA_ENTITY_REPORT2.F_LP_ENTITY_LC_STATUS_HIST f 0 484 1 5
NUMBER_OF_LEASE_CONTRACTS BIGINT 0.0031348 412 0 0 85
1 22186 0 0
10305039 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0031348 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_LP_ENTITY_LC_STATUS_HIST^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1 ', '22186 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE -------------

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 1


LEASE_CONTRACT_VEHICLE_ID BIGINT 2.31166e-05 412 0 0 341
2165923382 2171729640 0 0
10305041 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 416670,
relrefs = 0,
relpages = 856
WHERE
oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (2.31166e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2165923382 ', '2171729640 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 2


LEASE_SERVICE_ID INTEGER 0.0555556 97 0 0 341 0
1593502 0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0555556 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '1593502 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 3


START_DATE_MANAGED_SERVICE DATE 0.000325203 1095 0 0 341
0001-01-01
2017-06-12
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000325203 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '2017-06-12
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 4


END_DATE_MANAGED_SERVICE DATE 0.000567859 1095 0 0 341
2008-01-01
9999-12-31
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000567859 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2008-01-01
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 5


SERVICE_CHARGE NUMERIC(11,2) 4.58169e-05 1754 0 0 341
0.00 5627.60
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.58169e-05 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '5627.60
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 6


SERVICE_CHARGE_EUR NUMERIC(11,2) 4.58169e-05 1754 0 0 341
0.00 5627.60
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.58169e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '5627.60
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 7


SERVICE_CHARGE_SLA_MARGIN NUMERIC(11,2) 1 1754 0 0 341
0.00 0.00
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 8


SERVICE_CHARGE_SLA_MARGIN_EUR NUMERIC(11,2) 1 1754 0 0 341
0.00 0.00
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 9


SERVICE_CHARGE_LC_MARGIN NUMERIC(11,2) 0.000123579 1754 0 0
341 -1751.16 2301.20
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000123579 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-1751.16 ', '2301.20
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 10


SERVICE_CHARGE_LC_MARGIN_EUR NUMERIC(11,2) 0.000123579 1754 0 0
341 -1751.16 2301.20
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000123579 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-1751.16 ', '2301.20
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 11


SERV_CHARGE_MVA_OVER_MIL NUMERIC(17,7) 0.00143062 1754 0 0
341 0.0000000 40.0000000
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00143062 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.0000000 ', '40.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 12


SERV_CHARGE_MVA_OVER_MIL_EUR NUMERIC(17,7) 0.00143062 1754 0 0
341 0.0000000 40.0000000
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00143062 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.0000000 ', '40.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 13


SERVICE_REPAY_MVA_UNDER_MIL NUMERIC(17,7) 0.00194932 1754 0 0
341 0.0000000 20.0000000
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00194932 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.0000000 ', '20.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 14


SERV_REPAY_MVA_UNDER_MIL_EUR NUMERIC(17,7) 0.00194932 1754 0 0
341 0.0000000 20.0000000
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00194932 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.0000000 ', '20.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 15


RESIDUAL_VALUE NUMERIC(11,2) 9.08513e-05 1754 0 0 341
0.00 55000.00
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (9.08513e-05 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '55000.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 16


RESIDUAL_VALUE_EUR NUMERIC(11,2) 9.08513e-05 1754 0 0 341
0.00 55000.00
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (9.08513e-05 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '55000.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 17


RESIDUAL_VALUE_SLA_MARGIN NUMERIC(11,2) 1 1754 0 0 341
0.00 0.00
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 18


RESIDUAL_VALUE_SLA_MARGIN_EUR NUMERIC(11,2) 1 1754 0 0 341
0.00 0.00
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 19


RESIDUAL_VALUE_LC_MARGIN NUMERIC(11,2) 0.000112233 1754 0 0
341 -33618.90 47544.31
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000112233 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-33618.90 ', '47544.31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 20


RESIDUAL_VALUE_LC_MARGIN_EUR NUMERIC(11,2) 0.000112233 1754 0 0
341 -33618.90 47544.31
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000112233 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-33618.90 ', '47544.31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 21


INTEREST_PERCENTAGE NUMERIC(6,3) 0.00137552 1754 0 0 341
0.000 59.220
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00137552 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.000 ', '59.220
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 22


INTEREST_PERCENTAGE_SLA_MARGIN NUMERIC(6,3) 0.00296736 1754 0
0 341 -2.350 5.980
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00296736 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-2.350 ', '5.980
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 23


INTEREST_PERCENTAGE_LC_MARGIN NUMERIC(6,3) 0.00156986 1754 0 0
341 -7.000 52.080
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00156986 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
23, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-7.000 ', '52.080
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 24


INTEREST_FIXING_DATE DATE 0.000331345 1095 0 0 341 0001-
01-01
2017-07-01
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000331345 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
24, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '2017-07-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 25


LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
25, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 26


MANAGED_SERVICE_ID BIGINT 2.58074e-06 412 0 0 341
2165625762 2171710586 0 0
10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.58074e-06 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
26, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2165625762 ', '2171710586 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 27


LOCAL_KEY_MANAGED_SERVICE NATIONAL CHARACTER VARYING(125) 2.62708e-06
1022 0 0 341 GRL0000001000110001010100000024181
GRL0673242009990001010100000002929
36 15000120 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.62708e-06 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
27, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GRL0000001000110001010100000024181
', 'GRL0673242009990001010100000002929
', 36, 15000120
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 28


CH_SERVICE_CHARGE_METHOD_ID INTEGER 1 97 0 0 341
4420 4420 0 0
10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
28, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'4420 ', '4420 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 29


SERV_CHARGE_FORMAL_EXT NUMERIC(11,2) 1 1754 0 0 341
0.00 0.00
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
29, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 30
SERV_CHARGE_FORMAL_EXT_EUR NUMERIC(11,2) 1 1754 0 0 341
0.00 0.00
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
30, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 31
CALCULATION_VERSION CHARACTER(1) 1 1058 0 0 341
O
O
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 31 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 31 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
31, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'O
', 'O
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 32
LOCAL_KEY_SERVICE_SUPPLIER NATIONAL CHARACTER VARYING(125) 0.166667
1022 0.865479 0 341 GRORGS000100108
GRORGS00012026001
19 1026751 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 32 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 32 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
32, 1022, (CAST(0.865479 as float)),
(CAST(0 as float)), '341', '',
'GRORGS000100108
', 'GRORGS00012026001
', 19, 1026751
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 33


SERVICE_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125) 0.166667 1022
0.865479 0 341 000100108
000120260
11 616561 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 33 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 33 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
33, 1022, (CAST(0.865479 as float)),
(CAST(0 as float)), '341', '',
'000100108
', '000120260
', 11, 616561
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 34


SERVICE_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125) 0.166667 1022
0.865479 0 341 D.A.S. HELLAS AE
ΕΘΝΙΚΗ ΑΣΦΑΛΙΣΤΙΚΗ ΑΕ
58 1246894 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 34 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 34 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
34, 1022, (CAST(0.865479 as float)),
(CAST(0 as float)), '341', '',
'D.A.S. HELLAS AE
', 'ΕΘΝΙΚΗ ΑΣΦΑΛΙΣΤΙΚΗ ΑΕ
', 58, 1246894
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 35


POLICY_NUMBER NATIONAL CHARACTER VARYING(125) 0.00029967 1022 0
0 341
000400503
11 1337799 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00029967 as float))
WHERE
attnum = 35 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 35 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
35, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', '000400503
', 11, 1337799
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 36


POLICY_START_DATE DATE 0.000736377 1095 0 0 341 0001-01-01
2017-07-01
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000736377 as float))
WHERE
attnum = 36 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 36 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
36, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '2017-07-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 37


POLICY_END_DATE DATE 0.0133333 1095 0 0 341 2017-02-03
9999-12-31
0 0 10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0133333 as float))
WHERE
attnum = 37 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 37 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
37, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2017-02-03
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_MANAGED_SERVICE f 0 416670 856 38


CH_INSURED_PARTY_TYPE_ID INTEGER 0.5 97 0 0 341
1681049 999990584 0 0
10305041 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 38 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 38 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_MANAGED_SERVICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
38, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1681049 ', '999990584 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT -------------

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


1 CUSTOMER_ID BIGINT 0.000219202 412 0 0 341
2152354668 2152892631 0 0
10305042 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 94637,
relrefs = 0,
relpages = 145
WHERE
oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000219202 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2152354668 ', '2152892631 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


2 DEBTOR_ID BIGINT 0.00021978 412 0 0 341
2152662916 2152899219 0 0
10305042 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00021978 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2152662916 ', '2152899219 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


3 BOOK_PERIOD_DATE DATE 0.0175439 1095 0 0 341 2009-
01-31
2017-05-31
0 0 10305042 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0175439 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2009-01-31
', '2017-05-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


4 TOTAL_DEBTOR_AMOUNT NUMERIC(11,2) 5.12243e-05 1754 0 0
341 -536600.09 1516399.95
0 0 10305042 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (5.12243e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-536600.09 ', '1516399.95
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


5 TOTAL_DEBTOR_AMOUNT_EUR NUMERIC(11,2) 5.12243e-05 1754 0 0
341 -536600.09 1516399.95
0 0 10305042 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (5.12243e-05 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-536600.09 ', '1516399.95
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


6 AGEING_BUCKET0_AMOUNT NUMERIC(11,2) 0.000291545 1754 0 0
341 -2790.00 1102799.90
0 0 10305042 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000291545 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-2790.00 ', '1102799.90
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


7 AGEING_BUCKET0_AMOUNT_EUR NUMERIC(11,2) 0.000291545 1754 0
0 341 -2790.00
1102799.90 0 0 10305042
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000291545 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-2790.00 ', '1102799.90
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


8 AGEING_BUCKET1_AMOUNT NUMERIC(11,2) 0.000239923 1754 0 0
341 -202400.05 467355.81
0 0 10305042 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000239923 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-202400.05 ', '467355.81
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


9 AGEING_BUCKET1_AMOUNT_EUR NUMERIC(11,2) 0.000239923 1754 0
0 341 -202400.05
467355.81 0 0 10305042
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000239923 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-202400.05 ', '467355.81
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


10 AGEING_BUCKET2_AMOUNT NUMERIC(11,2) 0.000625782 1754 0 0
341 -70800.00 337002.66
0 0 10305042 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000625782 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-70800.00 ', '337002.66
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


11 AGEING_BUCKET2_AMOUNT_EUR NUMERIC(11,2) 0.000625782 1754 0
0 341 -70800.00
337002.66 0 0 10305042
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000625782 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-70800.00 ', '337002.66
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


12 AGEING_BUCKET3_AMOUNT NUMERIC(11,2) 0.00132275 1754 0 0
341 -248000.04 337002.66
0 0 10305042 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00132275 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-248000.04 ', '337002.66
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


13 AGEING_BUCKET3_AMOUNT_EUR NUMERIC(11,2) 0.00132275 1754 0
0 341 -248000.04
337002.66 0 0 10305042
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00132275 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-248000.04 ', '337002.66
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


14 AGEING_BUCKET4_AMOUNT NUMERIC(11,2) 0.00203666 1754 0 0
341 -248000.04 610138.14
0 0 10305042 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00203666 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-248000.04 ', '610138.14
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


15 AGEING_BUCKET4_AMOUNT_EUR NUMERIC(11,2) 0.00203666 1754 0
0 341 -248000.04
610138.14 0 0 10305042
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00203666 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-248000.04 ', '610138.14
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


16 AGEING_BUCKET5_AMOUNT NUMERIC(11,2) 0.00352113 1754 0 0
341 -3690.00 107415.44
0 0 10305042 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00352113 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-3690.00 ', '107415.44
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


17 AGEING_BUCKET5_AMOUNT_EUR NUMERIC(11,2) 0.00352113 1754 0
0 341 -3690.00
107415.44 0 0 10305042
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00352113 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-3690.00 ', '107415.44
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


18 AGEING_BUCKET6_AMOUNT NUMERIC(11,2) 0.00537634 1754 0 0
341 -2616.52 63443.07
0 0 10305042 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00537634 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-2616.52 ', '63443.07
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


19 AGEING_BUCKET6_AMOUNT_EUR NUMERIC(11,2) 0.00537634 1754 0
0 341 -2616.52
63443.07 0 0 10305042
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00537634 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-2616.52 ', '63443.07
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


20 AGEING_BUCKET7_AMOUNT NUMERIC(11,2) 0.000514933 1754 0 0
341 -6194.70 154249.96
0 0 10305042 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000514933 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-6194.70 ', '154249.96
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


21 AGEING_BUCKET7_AMOUNT_EUR NUMERIC(11,2) 0.000514933 1754 0
0 341 -6194.70
154249.96 0 0 10305042
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000514933 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-6194.70 ', '154249.96
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


22 OUTSTANDING_INVOICE_AMOUNT_ID BIGINT 1.05667e-05 412 0 0
341 2172073799 201707152899116 0
0 10305042 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.05667e-05 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2172073799 ', '201707152899116 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


23 LOCAL_KEY_OUTSTANDING_INV_AMNT NATIONAL CHARACTER VARYING(125)
1.14394e-05 1022 0 0 341
GRORGD000400575201211
23 2048047 10305042 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.14394e-05 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
23, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'GRORGD000400575201211
', 23, 2048047
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


24 DEBTOR_NUMBER NATIONAL CHARACTER VARYING(125) 0.000179308 1022
0 0 341 000200001
400575
11 775468 10305042 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000179308 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
24, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'000200001
', '400575
', 11, 775468
);

-- LPGR_DMA_ENTITY_REPORT2.F_OUTSTANDING_INVOICE_AMOUNT f 0 94637 145


25 LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305042 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_OUTSTANDING_INVOICE_AMOUNT^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
25, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_SALE -------------

-- LPGR_DMA_ENTITY_REPORT2.F_SALE f 0 9656 7 1 BUYER_ID BIGINT


0.000867303 412 0 0 341 2152353879
2152892932 0 0 10305043 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 9656,
relrefs = 0,
relpages = 7
WHERE
oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000867303 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2152353879 ', '2152892932 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_SALE f 0 9656 7 2
LEASE_CONTRACT_VEHICLE_ID BIGINT 0.000106542 412 0 0 341
2165923382 2171722641 0 0
10305043 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000106542 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2165923382 ', '2171722641 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_SALE f 0 9656 7 3 SALE_DATE DATE


0.00101112 1095 0 0 341 2008-01-08
2017-06-12
0 0 10305043 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00101112 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2008-01-08
', '2017-06-12
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_SALE f 0 9656 7 4 SALE_ID BIGINT


0.000103563 412 0 0 341 2172064287
2180186556 0 0 10305043 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000103563 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2172064287 ', '2180186556 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_SALE f 0 9656 7 5 SALE_NUMBER


NATIONAL CHARACTER VARYING(125) 0.00010367 1022 0 0 341
0000000
5000642
9 86904 10305043 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00010367 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0000000
', '5000642
', 9, 86904
);

-- LPGR_DMA_ENTITY_REPORT2.F_SALE f 0 9656 7 6 SALE_AMOUNT


NUMERIC(11,2) 0.000527426 1754 0 0 341 -36991.87
56910.57 0 0 10305043
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000527426 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-36991.87 ', '56910.57
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_SALE f 0 9656 7 7 SALE_AMOUNT_EUR


NUMERIC(11,2) 0.000527426 1754 0 0 341 -36991.87
56910.57 0 0 10305043
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000527426 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-36991.87 ', '56910.57
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.F_SALE f 0 9656 7 8 LOAD_DATE DATE
1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305043 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_SALE f 0 9656 7 9 LOCAL_KEY_SALE


NATIONAL CHARACTER VARYING(125) 0.000103638 1022 0 0 341
GR000007430006991
GR064538931121441
19 183464 10305043 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000103638 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GR000007430006991
', 'GR064538931121441
', 19, 183464
);

-- LPGR_DMA_ENTITY_REPORT2.F_SALE f 0 9656 7 10 CH_PURCHASE_BY_ID


INTEGER 0.5 97 0 0 341 1593421
1593422 0 0 10305043 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1593421 ', '1593422 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_SALE f 0 9656 7 11
EFFECTIVE_START_DATE DATE 0.333333 1095 0 0 341 2013-
12-12
2017-06-23
0 0 10305043 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2013-12-12
', '2017-06-23
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_SALE f 0 9656 7 12 CREATION_DATE_SALE


DATE 1 1095 1 0 341 2000-01-01
2000-01-01
0 0 10305043 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SALE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1095, (CAST(1 as float)),
(CAST(0 as float)), '341', '',
'2000-01-01
', '2000-01-01
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION -------------

-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238


1 SERVICE_AUTORISATION_ID BIGINT 3.98932e-06 412 0 0 341
0 2180623093 0 0
10305044 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 250669,
relrefs = 0,
relpages = 238
WHERE
oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (3.98932e-06 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '2180623093 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238
2 LOCAL_KEY_SERV_AUTHORISATION NATIONAL CHARACTER VARYING(125)
4.0859e-06 1022 0 0 341 Error in delivery
GR0686484001
24 3509381 10305044 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.0859e-06 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'Error in delivery
', 'GR0686484001
', 24, 3509381
);

-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238


3 CH_AUTHORISAT_TYPE_ID INTEGER 0.333333 97 0 0 341
1911182 999990573 0 0
10305044 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1911182 ', '999990573 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238
4 CH_AUTHORISAT_REPAIR_STATUS_ID INTEGER 0.25 97 0 0
341 1911174 999990572 0
0 10305044 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1911174 ', '999990572 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238


5 CH_PROCESS_STATUS_ID INTEGER 0.5 97 0 0 341
1911209 999990570 0 0
10305044 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1911209 ', '999990570 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238


6 SERVICE_AUTHORISATION_SEQUENCE NUMERIC(3,0) 0.02 1754 0
0 341 0 49
0 0 10305044 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.02 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '49
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238


7 USER_CREATION NATIONAL CHARACTER VARYING(125) 0.0140845 1022
0 0 341
ZAFIK E9EB
34 4261385 10305044 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0140845 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'ZAFIK E9EB
', 34, 4261385
);

-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238


8 ESTIMATED_DELIVERY_DATE DATE 0.000283527 1095 0 0 341
0001-01-01
9999-12-31
0 0 10305044 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000283527 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238


9 AUTHORISATION_FOLLOW_UP NATIONAL CHARACTER VARYING(125) 0.166667
1022 0 0 341
Ν
34 752056 10305044 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Ν
', 34, 752056
);

-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238


10 AUTHORISATION_REPAIR_DESC NATIONAL CHARACTER VARYING(250)
1.09607e-05 1022 0 0 341
ψυκτρα βασησ λαδιου Άλλο
471 20829541 10305044 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.09607e-05 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'ψυκτρα βασησ λαδιου Άλλο
', 471, 20829541
);
-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238
11 AUTHORISATION_REPAIR_MILEAGE NUMERIC(7,0) 1.158e-05 1754 0
0 341 0
1192303 0 0 10305044
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.158e-05 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '1192303
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238
12 APPROVAL_DATE_TIME TIMESTAMP 4.80208e-06 1322 0 0 341
0001-01-01 00:00:00
2082-05-03 15:52:09
0 0 10305044 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.80208e-06 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1322, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01 00:00:00
', '2082-05-03 15:52:09
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238
13 APPROVAL_AMOUNT NUMERIC(11,2) 2.78466e-05 1754 0 0 341
-433.83 20000000.00
0 0 10305044 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.78466e-05 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-433.83 ', '20000000.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238
14 IND_EMAIL_SEND_REPLACEMENT_CAR CHARACTER(4) 0.333333 1058
0 0 341
Y
0 0 10305044 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Y
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238
15 IND_NOTIFICATION_SMS_SEND CHARACTER(4) 0.333333 1058 0
0 341
Y
0 0 10305044 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Y
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238
16 LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305044 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238
17 SUPPLIER_ID BIGINT 0.000625391 412 0 0 341 0
2152901568 0 0 10305044 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000625391 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '2152901568 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.F_SERVICE_AUTHORISATION f 0 250669 238


18 LEASE_CONTRACT_VEHICLE_ID BIGINT 2.7407e-05 412 0 0
341 0 2171729639 0
0 10305044 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.7407e-05 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^F_SERVICE_AUTHORISATION^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '2171729639 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.INSURANCE_AGREEMENT -------------

-- LPGR_DMA_ENTITY_REPORT2.INSURANCE_AGREEMENT f 0 1 1 1
INSURANCE_AGREEMENT_ID BIGINT 1 412 0 0 85
2169409980 2169409980 0 0
10305045 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 1,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2169409980 ', '2169409980 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INSURANCE_AGREEMENT f 0 1 1 2
LOCAL_KEY_INSURANCE_AGREEMENT NATIONAL CHARACTER VARYING(125) 1 1022
0 0 85 GR000206059
GR000206059
13 13 10305045 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'GR000206059
', 'GR000206059
', 13, 13
);

-- LPGR_DMA_ENTITY_REPORT2.INSURANCE_AGREEMENT f 0 1 1 3
INSURED_PARTY_ID BIGINT 1 412 0 0 85 0
0 0 0 10305045 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INSURANCE_AGREEMENT f 0 1 1 4
CH_AGREEMENT_PERIOD_TYPE_ID INTEGER 1 97 0 0 85
1593732 1593732 0 0
10305045 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1593732 ', '1593732 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INSURANCE_AGREEMENT f 0 1 1 5
INSURANCE_AGREEMENT_NUMBER NATIONAL CHARACTER VARYING(125) 1 1022
0 0 85 000206059
000206059
11 11 10305045 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'000206059
', '000206059
', 11, 11
);

-- LPGR_DMA_ENTITY_REPORT2.INSURANCE_AGREEMENT f 0 1 1 6
AGREEMENT_RENEWAL_DAY INTEGER 1 97 0 0 85 101
101 0 0 10305045 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'101 ', '101 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INSURANCE_AGREEMENT f 0 1 1 7
LOAD_DATE DATE 1 1095 0 0 85 2018-10-04
2018-10-04
0 0 10305045 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INSURANCE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY -------------

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 1


INVOLVED_PARTY_ID BIGINT 8.80189e-06 412 0 0 341 0
2152945519 0 0 10305046 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 113612,
relrefs = 0,
relpages = 434
WHERE
oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (8.80189e-06 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '2152945519 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 2


INVOLVED_PARTY_TYPE INTEGER 0.333333 97 0 0 341
0 3 0 0
10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '3 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 3


IS_A_BUYER CHARACTER(1) 0.333333 1058 0 0 341
Y
0 0 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 4


IS_A_CUSTOMER CHARACTER(1) 0.333333 1058 0 0 341
Y
0 0 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 5


IS_A_LP_INVOICE_RECEIVER CHARACTER(1) 0.333333 1058 0 0
341
Y
0 0 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 6


IS_A_SUPPLIER_INVOICE_SENDER CHARACTER(1) 0.333333 1058 0 0
341
Y
0 0 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 7


LP_ORGANISATION_CODE CHARACTER(4) 0.5 1058 0 0 341
LPGR
0 0 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'LPGR
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 8


ORGANISATION_TYPE_ID INTEGER 0.333333 97 0 0 341
0 11 0 0
10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '11 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 9


ORGANISATION_TYPE_LOCAL NATIONAL CHARACTER VARYING(125) 0.125 1022 0
0 341
S
19 253647 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.125 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'S
', 19, 253647
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 10


LP_COMPANY_CODE NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0
341
Error in delivery
19 227241 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Error in delivery
', 19, 227241
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 11


IP_NUMBER NATIONAL CHARACTER VARYING(125) 9.84843e-06 1022 0 0
341
SM-S2
19 1323839 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (9.84843e-06 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'SM-S2
', 19, 1323839
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 12


IP_NAME NATIONAL CHARACTER VARYING(125) 1.55577e-05 1022 0 0
341
κος ΠΑΝΤΑΖΑΚΟΣ
70 3729776 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.55577e-05 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'κος ΠΑΝΤΑΖΑΚΟΣ
', 70, 3729776
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 13


IP_SHORT_NAME NATIONAL CHARACTER VARYING(125) 1.82023e-05 1022 0
0 341
κος ΠΑΝΤΑΖΑΚΟΣ
70 3196182 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.82023e-05 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'κος ΠΑΝΤΑΖΑΚΟΣ
', 70, 3196182
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 14


LPI_CUST_L1_NAME NATIONAL CHARACTER VARYING(125) 0.0103093 1022 0
0 341
YARA INTERNATIONAL
31 228748 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0103093 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'YARA INTERNATIONAL
', 31, 228748
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 15


LPI_CUST_L2_NAME NATIONAL CHARACTER VARYING(125) 0.0102041 1022 0
0 341
YARA INTERNATIONAL
31 228765 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0102041 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'YARA INTERNATIONAL
', 31, 228765
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 16


LPI_CUST_L3_NAME NATIONAL CHARACTER VARYING(125) 0.0102041 1022 0
0 341
YARA INTERNATIONAL
31 228765 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0102041 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'YARA INTERNATIONAL
', 31, 228765
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 17


LPI_CUST_L4_NAME NATIONAL CHARACTER VARYING(125) 0.0102041 1022 0
0 341
YARA INTERNATIONAL
31 228765 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0102041 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'YARA INTERNATIONAL
', 31, 228765
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 18


LPI_CUST_L5_NAME NATIONAL CHARACTER VARYING(125) 0.0102041 1022 0
0 341
YARA INTERNATIONAL
31 228765 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0102041 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'YARA INTERNATIONAL
', 31, 228765
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 19


LPI_REGION_NAME NATIONAL CHARACTER VARYING(125) 0.142857 1022 0
0 341
TECHNOLOGIES
20 227924 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'TECHNOLOGIES
', 20, 227924
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 20


PRIMARY_CONTACT NATIONAL CHARACTER VARYING(125) 0.000231911 1022 0
0 341
κύριος Χρηστάρας Αλέξανδρος
69 519155 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000231911 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'κύριος Χρηστάρας Αλέξανδρος
', 69, 519155
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 21


PRIMARY_TELEPHONE_NUMBER NATIONAL CHARACTER VARYING(125) 0.000100412
1022 0 0 341
ΑΤ
19 410319 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000100412 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'ΑΤ
', 19, 410319
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 22


PRIMARY_FAX_NUMBER NATIONAL CHARACTER VARYING(125) 0.000239808 1022
0 0 341
KIN6944288695
20 308934 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000239808 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'KIN6944288695
', 20, 308934
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 23


DUNS_NUMBER NATIONAL CHARACTER VARYING(125) 0.000300661 1022 0 0
341
Error in delivery
19 302795 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000300661 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
23, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Error in delivery
', 19, 302795
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 24


VAT_NUMBER NATIONAL CHARACTER VARYING(125) 6.63658e-05 1022 0 0
341
ΧΧΧΧΧΧΧΧΧΧΧ
31 437154 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (6.63658e-05 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
24, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'ΧΧΧΧΧΧΧΧΧΧΧ
', 31, 437154
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 25


RISK_WEIGHTING NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0
341
Error in delivery
19 227241 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
25, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Error in delivery
', 19, 227241
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 26


STREET_NAME_AND_NUMBER NATIONAL CHARACTER VARYING(125) 3.88999e-05 1022
0 0 341
χλμ ΕΘΝΙΚΗΣ ΟΔΟΥ ΑΘΗΝΩΝ-ΛΑΜΙΑΣ,
70 2681410 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.88999e-05 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
26, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'χλμ ΕΘΝΙΚΗΣ ΟΔΟΥ ΑΘΗΝΩΝ-ΛΑΜΙΑΣ,
', 70, 2681410
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 27


POSTAL_CODE NATIONAL CHARACTER VARYING(125) 0.000584454 1022 0 0
341
ΩΡΕΩΝ
22 406302 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000584454 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
27, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'ΩΡΕΩΝ
', 22, 406302
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 28 CITY


NATIONAL CHARACTER VARYING(125) 0.00034459 1022 0 0 341
μΑΡΟΥΣΙ
51 918675 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00034459 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
28, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'μΑΡΟΥΣΙ
', 51, 918675
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 29


PROVINCE NATIONAL CHARACTER VARYING(125) 0.5 1022 0 0 341

Error in delivery
19 227241 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
29, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Error in delivery
', 19, 227241
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 30


LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
30, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 31


IS_A_SERVICE_SUPPLIER CHARACTER(1) 0.333333 1058 0 0 341

Y
0 0 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 31 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 31 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
31, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 32


IS_A_DEBTOR CHARACTER(1) 0.333333 1058 0 0 341
Y
0 0 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 32 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 32 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
32, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 33


LOCAL_KEY_INVOLVED_PARTY NATIONAL CHARACTER VARYING(125) 9.08273e-06
1022 0 0 341 Error in delivery
GRORGS000127410
24 2049139 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (9.08273e-06 as float))
WHERE
attnum = 33 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 33 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
33, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'Error in delivery
', 'GRORGS000127410
', 24, 2049139
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 34


LOCAL_KEY_ADDRESS NATIONAL CHARACTER VARYING(125) 2.4122e-05 1022 0
0 341
GRORGS000127410
24 2034162 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.4122e-05 as float))
WHERE
attnum = 34 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 34 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
34, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'GRORGS000127410
', 24, 2034162
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 35


LOCAL_SOURCE NATIONAL CHARACTER VARYING(125) 0.111111 1022 0
0 341 *SYS
Init
19 795275 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 35 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 35 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
35, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'*SYS
', 'Init
', 19, 795275
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 36


LOCAL_KEY_ULTIMATE_PARENT NATIONAL CHARACTER VARYING(125) 9.40796e-06
1022 0 0 341 Error in delivery
GRORGS000127410
24 2033579 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (9.40796e-06 as float))
WHERE
attnum = 36 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 36 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
36, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'Error in delivery
', 'GRORGS000127410
', 24, 2033579
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 37


ULTIMATE_PARENT_NUMBER NATIONAL CHARACTER VARYING(125) 1.00441e-05 1022
0 0 341
SM-S2
19 1336287 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.00441e-05 as float))
WHERE
attnum = 37 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 37 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
37, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'SM-S2
', 19, 1336287
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 38


ULTIMATE_PARENT_NAME NATIONAL CHARACTER VARYING(125) 1.60999e-05 1022
0 0 341
κος ΠΑΝΤΑΖΑΚΟΣ
70 3717549 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.60999e-05 as float))
WHERE
attnum = 38 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 38 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
38, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'κος ΠΑΝΤΑΖΑΚΟΣ
', 70, 3717549
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 39


CH_BASEL2_BUSINESS_CLASS_ID INTEGER 0.25 97 0 0 341
1566 999991448 0 0
10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 39 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 39 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
39, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1566 ', '999991448 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 40


CH_BRANCH_CODE_ID INTEGER 0.0128205 97 0 0 341 1529
999991435 0 0 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0128205 as float))
WHERE
attnum = 40 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 40 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
40, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1529 ', '999991435 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 41


CH_CUSTOMER_SEGMENT_ID INTEGER 0.0172414 97 0 0 341
1523 999991406 0 0
10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0172414 as float))
WHERE
attnum = 41 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 41 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
41, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1523 ', '999991406 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 42


CH_CUSTOMER_REGION_ID INTEGER 0.25 97 0 0 341 1522
999991405 0 0 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 42 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 42 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
42, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1522 ', '999991405 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 43


LPI_MANAGING_ORGANISATION CHARACTER(4) 0.5 1058 0 0 341

LPIX
0 0 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 43 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 43 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
43, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'LPIX
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 44


CH_COUNTRY_ID INTEGER 0.0294118 97 0 0 341 0
999990906 0 0 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0294118 as float))
WHERE
attnum = 44 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 44 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
44, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '999990906 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 45


CH_CUSTOMER_TYPE_ID INTEGER 0.0714286 97 0 0 341
1593719 999991667 0 0
10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0714286 as float))
WHERE
attnum = 45 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 45 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
45, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1593719 ', '999991667 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 46


CH_LP_RATING_LOCAL_ID INTEGER 0.142857 97 0 0 341
1593751 999991694 0 0
10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 46 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 46 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
46, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1593751 ', '999991694 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 47


CUST_FINANCIAL_GROUP_NUMBER NATIONAL CHARACTER VARYING(125) 9.84843e-06
1022 0 0 341
SM-S2
19 1323839 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (9.84843e-06 as float))
WHERE
attnum = 47 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 47 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
47, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'SM-S2
', 19, 1323839
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 48


CUST_FINANCIAL_GROUP_NAME NATIONAL CHARACTER VARYING(125) 1.55577e-05
1022 0 0 341
κος ΠΑΝΤΑΖΑΚΟΣ
70 3729776 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.55577e-05 as float))
WHERE
attnum = 48 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 48 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
48, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'κος ΠΑΝΤΑΖΑΚΟΣ
', 70, 3729776
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 49


LOCAL_KEY_CUST_FINANCIAL_GROUP NATIONAL CHARACTER VARYING(125)
9.08273e-06 1022 0 0 341 Error in delivery
GRORGS000127410
24 2049139 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (9.08273e-06 as float))
WHERE
attnum = 49 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 49 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
49, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'Error in delivery
', 'GRORGS000127410
', 24, 2049139
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 50


LOCAL_KEY_REPORTS_TO NATIONAL CHARACTER VARYING(125) 9.08876e-06 1022
0 0 341 Error in delivery
GRORGS000127410
24 2049138 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (9.08876e-06 as float))
WHERE
attnum = 50 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 50 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
50, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'Error in delivery
', 'GRORGS000127410
', 24, 2049138
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 51


REPORTS_TO_NUMBER NATIONAL CHARACTER VARYING(125) 9.63187e-06 1022 0
0 341
SM-S2
19 1323838 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (9.63187e-06 as float))
WHERE
attnum = 51 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 51 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
51, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'SM-S2
', 19, 1323838
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 52


REPORTS_TO_NAME NATIONAL CHARACTER VARYING(125) 1.53478e-05 1022 0
0 341
κος ΠΑΝΤΑΖΑΚΟΣ
70 3730500 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.53478e-05 as float))
WHERE
attnum = 52 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 52 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
52, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'κος ΠΑΝΤΑΖΑΚΟΣ
', 70, 3730500
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 53


IS_A_INSURER CHARACTER(1) 0.333333 1058 0 0 341
Y
0 0 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 53 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 53 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
53, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 54


RELATIONSHIP_SINCE_DATE DATE 1 1095 0.767569 0 341 0001-
01-01
0001-01-01
0 0 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 54 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 54 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
54, 1095, (CAST(0.767569 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '0001-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 55


IP_NAME_LOCAL NATIONAL CHARACTER VARYING(125) 0.5 1022 0.767718
0 341
Error in delivery
19 52797 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 55 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 55 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
55, 1022, (CAST(0.767718 as float)),
(CAST(0 as float)), '341', '',
'
', 'Error in delivery
', 19, 52797
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 56


IP_FIRST_NAME NATIONAL CHARACTER VARYING(125) 0.000164663 1022 0
0 341
οι NIGICO
60 1467840 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000164663 as float))
WHERE
attnum = 56 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 56 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
56, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'οι NIGICO
', 60, 1467840
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 57


IP_LAST_NAME NATIONAL CHARACTER VARYING(125) 3.96087e-05 1022 0
0 341
κος
65 1666825 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.96087e-05 as float))
WHERE
attnum = 57 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 57 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
57, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'κος
', 65, 1666825
);

-- LPGR_DMA_ENTITY_REPORT2.INVOLVED_PARTY f 0 113612 434 58


PREFERRED_SUPPLIER_INDICATOR CHARACTER(1) 0.333333 1058 0.767569
0 341
Y
0 0 10305046 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 58 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 58 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^INVOLVED_PARTY^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
58, 1058, (CAST(0.767569 as float)),
(CAST(0 as float)), '341', '',
'
', 'Y
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES -------------

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 1
LOCAL_KEY_LC_FREE_ATTRIBUTES NATIONAL CHARACTER VARYING(125) 0.000379795
1022 0 0 341 GRL0000012
GRL0669051
12 31608 10305047 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 2634,
relrefs = 0,
relpages = 4
WHERE
oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000379795 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GRL0000012
', 'GRL0669051
', 12, 31608
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 2
LC_FREE_DATE_1 DATE 1 1095 0 0 341 0001-01-01
0001-01-01
0 0 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '0001-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 3
LC_FREE_DATE_2 DATE 1 1095 0 0 341 0001-01-01
0001-01-01
0 0 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '0001-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 4
LC_FREE_DATE_3 DATE 1 1095 0 0 341 0001-01-01
0001-01-01
0 0 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '0001-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 5
LC_FREE_DATE_4 DATE 1 1095 0 0 341 0001-01-01
0001-01-01
0 0 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '0001-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 6
LC_FREE_DATE_5 DATE 1 1095 0 0 341 0001-01-01
0001-01-01
0 0 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '0001-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 7
LC_FREE_AMOUNT_1 NUMERIC(11,2) 1 1754 0 0 341 0.00
0.00 0 0 10305047
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 8
LC_FREE_AMOUNT_2 NUMERIC(11,2) 1 1754 0 0 341 0.00
0.00 0 0 10305047
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 9
LC_FREE_AMOUNT_3 NUMERIC(11,2) 0.05 1754 0 0 341 0.00
194.67 0 0 10305047
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.05 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '194.67
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 10
LC_FREE_AMOUNT_4 NUMERIC(11,2) 1 1754 0 0 341 0.00
0.00 0 0 10305047
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 11
LC_FREE_AMOUNT_5 NUMERIC(11,2) 1 1754 0 0 341 0.00
0.00 0 0 10305047
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 12
LC_FREE_FLAG_1 CHARACTER(1) 1 1058 0 0 341

0 0 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 13
LC_FREE_FLAG_2 CHARACTER(1) 1 1058 0 0 341

0 0 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 14
LC_FREE_FLAG_3 CHARACTER(1) 1 1058 0 0 341

0 0 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 15
LC_FREE_FLAG_4 CHARACTER(1) 1 1058 0 0 341

0 0 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 16
LC_FREE_FLAG_5 CHARACTER(1) 1 1058 0 0 341

0 0 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 17
LC_FREE_TEXT_1 NATIONAL CHARACTER VARYING(125) 1 1022 0 0
341

2 5268 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', '
', 2, 5268
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 18
LC_FREE_TEXT_2 NATIONAL CHARACTER VARYING(125) 1 1022 0 0
341

2 5268 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', '
', 2, 5268
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 19
LC_FREE_TEXT_3 NATIONAL CHARACTER VARYING(125) 1 1022 0 0
341

2 5268 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', '
', 2, 5268
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 20
LC_FREE_TEXT_4 NATIONAL CHARACTER VARYING(125) 1 1022 0 0
341

2 5268 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', '
', 2, 5268
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 21
LC_FREE_TEXT_5 NATIONAL CHARACTER VARYING(125) 1 1022 0 0
341

2 5268 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', '
', 2, 5268
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 22
LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 23
LC_FREE_NUMERIC_1 NUMERIC(11,2) 0.2 1754 0 0 341 0.00
100303.00 0 0 10305047
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
23, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '100303.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 24
LC_FREE_NUMERIC_2 NUMERIC(11,2) 0.0833333 1754 0 0 341
0.00 100108.00
0 0 10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0833333 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
24, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '100108.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 25
LC_FREE_NUMERIC_3 NUMERIC(11,2) 1 1754 0 0 341 0.00
0.00 0 0 10305047
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
25, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 26
LC_FREE_NUMERIC_4 NUMERIC(11,2) 1 1754 0 0 341 0.00
0.00 0 0 10305047
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
26, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 27
LC_FREE_NUMERIC_5 NUMERIC(11,2) 1 1754 0 0 341 0.00
0.00 0 0 10305047
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
27, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 28
LC_FREE_ATTRIBUTES_ID BIGINT 0.000379651 412 0 0 341
2165969421 2171734876 0 0
10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000379651 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
28, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2165969421 ', '2171734876 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.LC_FREE_ATTRIBUTES f 0 2634 4 29
LEASE_CONTRACT_VEHICLE_ID BIGINT 0.000379651 412 0 0 341
2165923377 2171729489 0 0
10305047 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000379651 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LC_FREE_ATTRIBUTES^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
29, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2165923377 ', '2171729489 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS -------------


-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
1 LOCAL_KEY_LEASE_CONTRACT NATIONAL CHARACTER VARYING(125)
4.38423e-05 1022 0 0 341 GRL0000012
GRL0669051
12 275268 10305048 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 22939,
relrefs = 0,
relpages = 57
WHERE
oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (4.38423e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GRL0000012
', 'GRL0669051
', 12, 275268
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
2 INC_DURATION INTEGER 0.0166667 97 0 0 341
1 84 0 0
10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0166667 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1 ', '84 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
3 INC_MILEAGE INTEGER 0.000595238 97 0 0 341 0
337756 0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000595238 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '337756 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
4 INC_COBF NUMERIC(6,3) 0.0018018 1754 0 0 341
0.000 14.670
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0018018 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.000 ', '14.670
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
5 INC_BUDG_INVESTMENT_VALUE NUMERIC(11,2) 0.000112663 1754 0
0 341 0.00
252593.57 0 0 10305048
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000112663 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '252593.57
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
6 INC_STANDARD_RV_AMOUNT NUMERIC(11,2) 0.00011352 1754 0 0
341 0.00 72727.20
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00011352 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '72727.20
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
7 INC_BUDG_RV_AMOUNT NUMERIC(11,2) 0.000125219 1754 0 0
341 0.00 81647.62
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000125219 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '81647.62
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
8 INC_BUDG_RV_AMOUNT_SLA_MARGIN NUMERIC(11,2) 1 1754 0 0
341 0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
9 INC_BUDG_RV_AMOUNT_LC_MARGIN NUMERIC(11,2) 1 1754 0 0
341 0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
10 INC_BUDG_REPAIR_AMOUNT NUMERIC(11,2) 1 1754 0 0 341
0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
11 INC_BUDG_MAINTENANCE_AMOUNT NUMERIC(11,2) 0.00016975 1754 0
0 341 0.00
11700.00 0 0 10305048
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00016975 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '11700.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
12 INC_BUDG_TYRE_AMOUNT NUMERIC(11,2) 0.000182315 1754 0 0
341 0.00 5137.20
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000182315 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '5137.20
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
13 INC_BUDG_REPAIR_AMOUNT_SLA_MARGIN NUMERIC(11,2) 1 1754 0
0 341 0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
14 INC_BUDG_MAINT_AMOUNT_SLA_MARGIN NUMERIC(11,2) 1 1754 0
0 341 0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
15 INC_BUDG_TYRE_AMOUNT_SLA_MARGIN NUMERIC(11,2) 1 1754 0
0 341 0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
16 INC_BUDG_REPAIR_AMOUNT_LC_MARGIN NUMERIC(11,2) 1 1754 0
0 341 0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
17 INC_BUDG_MAINT_AMOUNT_LC_MARGIN NUMERIC(11,2) 1 1754 0
0 341 0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
18 INC_BUDG_TYRE_AMOUNT_LC_MARGIN NUMERIC(11,2) 1 1754 0
0 341 0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
19 INC_MILEAGEKM INTEGER 0.000595238 97 0 0 341
0 337756 0 0
10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000595238 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '337756 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
20 INC_BUDG_INVESTMENT_VALUE_EUR NUMERIC(11,2) 0.000112663 1754 0
0 341 0.00
252593.57 0 0 10305048
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000112663 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '252593.57
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
21 INC_STANDARD_RV_AMOUNT_EUR NUMERIC(11,2) 0.00011352 1754 0
0 341 0.00
72727.20 0 0 10305048
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00011352 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '72727.20
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
22 INC_BUDG_RV_AMOUNT_EUR NUMERIC(11,2) 0.000125219 1754 0 0
341 0.00 81647.62
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000125219 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '81647.62
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
23 INC_BUDG_RV_AMOUNT_SLA_MRG_EUR NUMERIC(11,2) 1 1754 0
0 341 0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
23, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
24 INC_BUDG_RV_AMOUNT_LC_MRG_EUR NUMERIC(11,2) 1 1754 0 0
341 0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
24, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
25 INC_BUDG_REPAIR_AMOUNT_EUR NUMERIC(11,2) 1 1754 0 0
341 0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
25, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
26 INC_BUDG_MAINTENANCE_AMNT_EUR NUMERIC(11,2) 0.00016975 1754 0
0 341 0.00
11700.00 0 0 10305048
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00016975 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
26, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '11700.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
27 INC_BUDG_TYRE_AMOUNT_EUR NUMERIC(11,2) 0.000182315 1754 0
0 341 0.00
5137.20 0 0 10305048
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000182315 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
27, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '5137.20
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
28 INC_BUDG_REPAIR_SLA_MRGN_EUR NUMERIC(11,2) 1 1754 0 0
341 0.00 0.00
0 0 10305048 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
28, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
29 INC_BUDG_MAINT_SLA_MRGN_EUR NUMERIC(11,2) 1 1754 0 0
341 0.00 0.00
0 0 10305048 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
29, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
30 INC_BUDG_TYRE_MRGN_EUR NUMERIC(11,2) 1 1754 0 0 341
0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
30, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
31 INC_BUDG_REPAIR_LC_MRGN_EUR NUMERIC(11,2) 1 1754 0 0
341 0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 31 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 31 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
31, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
32 INC_BUDG_MAINT_LC_MRGN_EUR NUMERIC(11,2) 1 1754 0 0
341 0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 32 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 32 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
32, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
33 INC_BUDG_TYRE_LC_MRGN_EUR NUMERIC(11,2) 1 1754 0 0
341 0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 33 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 33 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
33, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
34 LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 34 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 34 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
34, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
35 INC_STANDARD_MAINT_AMOUNT NUMERIC(11,2) 0.00353357 1754 0
0 341 0.00
7110.00 0 0 10305048
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00353357 as float))
WHERE
attnum = 35 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 35 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
35, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '7110.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
36 INC_STANDARD_TYRE_AMOUNT NUMERIC(11,2) 0.00206186 1754 0
0 341 -0.60
2663.50 0 0 10305048
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00206186 as float))
WHERE
attnum = 36 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 36 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
36, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-0.60 ', '2663.50
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
37 INC_STANDARD_REPAIR_AMOUNT NUMERIC(11,2) 1 1754 0 0
341 0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 37 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 37 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
37, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
38 INC_STANDARD_MAINT_AMOUNT_EUR NUMERIC(11,2) 0.00353357 1754 0
0 341 0.00
7110.00 0 0 10305048
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00353357 as float))
WHERE
attnum = 38 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 38 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
38, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '7110.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
39 INC_STANDARD_TYRE_AMOUNT_EUR NUMERIC(11,2) 0.00206186 1754 0
0 341 -0.60
2663.50 0 0 10305048
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00206186 as float))
WHERE
attnum = 39 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 39 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
39, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-0.60 ', '2663.50
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
40 INC_STANDARD_REPAIR_AMOUNT_EUR NUMERIC(11,2) 1 1754 0
0 341 0.00 0.00
0 0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 40 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 40 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
40, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
41 LEASE_CONTRACT_ID BIGINT 4.35939e-05 412 0 0 341
2165923377 2171729489 0 0
10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.35939e-05 as float))
WHERE
attnum = 41 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 41 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
41, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2165923377 ', '2171729489 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_INITIAL_AMOUNTS f 0 22939 57
42 LEASE_CONTRACT_INITIALS_ID BIGINT 4.35939e-05 412 0 0
341 2165949193 2171732307 0
0 10305048 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.35939e-05 as float))
WHERE
attnum = 42 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 42 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_CONTRACT_INITIAL_AMOUNTS^
and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
42, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2165949193 ', '2171732307 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE -------------

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 1
LEASE_SERVICE_ID INTEGER 0.00833333 97 0 0 85 4435
999990442 0 0 10305050 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 120,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00833333 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'4435 ', '999990442 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 2
LEASE_SERVICE_CODE NATIONAL CHARACTER VARYING(125) 0.00833333 1022
0 0 85 EX010
PM01004
19 938 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00833333 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'EX010
', 'PM01004
', 19, 938
);
-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 3
LEASE_SERVICE_DESC NATIONAL CHARACTER VARYING(125) 0.00840336 1022
0 0 85
Παρακράτηση Χαρτοσήμου
45 2770 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00840336 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Παρακράτηση Χαρτοσήμου
', 45, 2770
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 4
LEASE_SERVICE_CONS NATIONAL CHARACTER VARYING(125) 0.0217391 1022
0 0 85 Car Financing
Wreck Sale
55 2559 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0217391 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Car Financing
', 'Wreck Sale
', 55, 2559
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 5 LOAD_DATE


DATE 1 1095 0 0 85 2018-10-04
2018-10-04
0 0 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 6
LEASE_SERVICE_CONS_496 NATIONAL CHARACTER VARYING(125) 0.0277778 1022
0 0 85 Car Financing
Wreck Sale
33 2190 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0277778 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Car Financing
', 'Wreck Sale
', 33, 2190
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 7
LEASE_SERVICE_CONS_497 NATIONAL CHARACTER VARYING(125) 0.0277778 1022
0 0 85 Car Financing
Wreck Sale
33 2190 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0277778 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Car Financing
', 'Wreck Sale
', 33, 2190
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 8
LEASE_SERVICE_CONS_RM NATIONAL CHARACTER VARYING(125) 0.0666667 1022
0 0 85 Depreciation
Tyres
42 2240 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0666667 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Depreciation
', 'Tyres
', 42, 2240
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 9
LEASE_SERVICE_CONS_LPI NATIONAL CHARACTER VARYING(125) 0.047619 1022
0 0 85 Accident management
Tyres
39 2399 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.047619 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Accident management
', 'Tyres
', 39, 2399
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 10
IS_A_DELIVERED_LEASE_SERVICE CHARACTER(1) 0.5 1058 0 0 85
N
Y
0 0 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'N
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 11
IS_A_INVOICED_LEASE_SERVICE CHARACTER(1) 0.5 1058 0 0 85
N
Y
0 0 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'N
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 12
IS_A_MANAGED_LEASE_SERVICE CHARACTER(1) 0.5 1058 0 0 85
N
Y
0 0 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'N
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 13
IS_A_AGREED_LEASE_SERVICE CHARACTER(1) 0.5 1058 0 0 85
N
Y
0 0 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'N
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 14
LEASE_SERVICE_L1_CODE NATIONAL CHARACTER VARYING(125) 0.0138889 1022
0 0 85 EX010
PM01004
19 938 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0138889 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'EX010
', 'PM01004
', 19, 938
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 15
LEASE_SERVICE_L1_DESC NATIONAL CHARACTER VARYING(125) 0.0138889 1022
0 0 85
Wreck Sale
36 2748 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0138889 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Wreck Sale
', 36, 2748
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 16
LEASE_SERVICE_L2_CODE NATIONAL CHARACTER VARYING(125) 0.00862069 1022
0 0 85 EX010
PM01004
19 938 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00862069 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'EX010
', 'PM01004
', 19, 938
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 17
LEASE_SERVICE_L3_CODE NATIONAL CHARACTER VARYING(125) 0.00833333 1022
0 0 85 EX010
PM01004
19 938 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00833333 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
17, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'EX010
', 'PM01004
', 19, 938
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 18
LEASE_SERVICE_L4_CODE NATIONAL CHARACTER VARYING(125) 0.00833333 1022
0 0 85 EX010
PM01004
19 938 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00833333 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
18, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'EX010
', 'PM01004
', 19, 938
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 19
LEASE_SERVICE_L5_CODE NATIONAL CHARACTER VARYING(125) 0.00833333 1022
0 0 85 EX010
PM01004
19 938 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00833333 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
19, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'EX010
', 'PM01004
', 19, 938
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 20
LEASE_SERVICE_L2_DESC NATIONAL CHARACTER VARYING(125) 0.00869565 1022
0 0 85
Παρακράτηση Χαρτοσήμου
45 2750 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00869565 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
20, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Παρακράτηση Χαρτοσήμου
', 45, 2750
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 21
LEASE_SERVICE_L3_DESC NATIONAL CHARACTER VARYING(125) 0.00840336 1022
0 0 85
Παρακράτηση Χαρτοσήμου
45 2770 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00840336 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
21, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Παρακράτηση Χαρτοσήμου
', 45, 2770
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 22
LEASE_SERVICE_L4_DESC NATIONAL CHARACTER VARYING(125) 0.00840336 1022
0 0 85
Παρακράτηση Χαρτοσήμου
45 2770 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00840336 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
22, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Παρακράτηση Χαρτοσήμου
', 45, 2770
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 23
LEASE_SERVICE_L5_DESC NATIONAL CHARACTER VARYING(125) 0.00840336 1022
0 0 85
Παρακράτηση Χαρτοσήμου
45 2770 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00840336 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
23, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Παρακράτηση Χαρτοσήμου
', 45, 2770
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 24
LEASE_SERVICE_CONS_MODULE NATIONAL CHARACTER VARYING(125) 0.0909091
1022 0 0 85 Contract Services
Taxes
24 1848 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0909091 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
24, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Contract Services
', 'Taxes
', 24, 1848
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE f 0 120 1 25
IS_A_TOTALIZED_LEASE_SERVICE CHARACTER(1) 0.5 1058 0 0 85
N
Y
0 0 10305050 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE^ and objschemaoid
= (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
25, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'N
', 'Y
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE_AGREEMENT -------------

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE_AGREEMENT f 0 74047 53 1
LEASE_SERVICE_ID INTEGER 0.0192308 97 0 0 341 0
1593540 0 0 10305051 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 74047,
relrefs = 0,
relpages = 53
WHERE
oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0192308 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '1593540 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE_AGREEMENT f 0 74047 53 2
CUSTOMER_SLA_ID BIGINT 0.000189861 412 0 0 341 0
2153405692 0 0 10305051 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000189861 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '2153405692 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE_AGREEMENT f 0 74047 53 3
LEASE_SERVICE_AGREEMENT_ID BIGINT 1.35049e-05 412 0 0 341
2152219621 2153395863 0 0
10305051 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.35049e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2152219621 ', '2153395863 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE_AGREEMENT f 0 74047 53 4
PREFERRED_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125) 0.111111
1022 0 0 341 000100108
1
11 303629 10305051 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'000100108
', '1
', 11, 303629
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE_AGREEMENT f 0 74047 53 5
PREFERRED_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125) 0.111111 1022
0 0 341 ALLIANCE-VW ΑΣΦΑΛΙΣΤΙΚΗ
ΕΘΝΙΚΗ ΑΣΦΑΛΙΣΤΙΚΗ ΑΕ
58 1958846 10305051 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'ALLIANCE-VW ΑΣΦΑΛΙΣΤΙΚΗ
', 'ΕΘΝΙΚΗ ΑΣΦΑΛΙΣΤΙΚΗ ΑΕ
', 58, 1958846
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE_AGREEMENT f 0 74047 53 6
PREFERRED_SUPPLIER_CONS NATIONAL CHARACTER VARYING(125) 1 1022 0
0 341

2 148094 10305051 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', '
', 2, 148094
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE_AGREEMENT f 0 74047 53 7
SERVICE_INCLUSION CHARACTER(1) 0.5 1058 0 0 341 O
Y
0 0 10305051 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'O
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE_AGREEMENT f 0 74047 53 8
LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305051 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE_AGREEMENT f 0 74047 53 9
LOCAL_KEY_LEASE_SERVICE_AGREEM NATIONAL CHARACTER VARYING(125)
1.35648e-05 1022 0 0 341 GR00020000100001PM00101
GR000400503L00002170
25 1736965 10305051 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.35648e-05 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GR00020000100001PM00101
', 'GR000400503L00002170
', 25, 1736965
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE_AGREEMENT f 0 74047 53 10
LOCAL_KEY_PREFERRED_SUPPLIER NATIONAL CHARACTER VARYING(125) 0.111111
1022 0 0 341 GR-MDFORG-Not-Supplied
GRORGS00010090401
24 1720897 10305051 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GR-MDFORG-Not-Supplied
', 'GRORGS00010090401
', 24, 1720897
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE_AGREEMENT f 0 74047 53 11
CH_SUPPL_SELECT_MANDATE_ID INTEGER 1 97 0 0 341
1593314 1593314 0 0
10305051 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1593314 ', '1593314 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LEASE_SERVICE_AGREEMENT f 0 74047 53 12
CH_SERVICE_CHARGE_METHOD_ID INTEGER 0.25 97 0 0 341
4420 1593304 0 0
10305051 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
DELETE FROM _t_statistic
WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LEASE_SERVICE_AGREEMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'4420 ', '1593304 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE -------------

-- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE f 0 23040 20 1
LP_INVOICE_ID BIGINT 4.34028e-05 412 0 0 341
2328558912 2329503165 0 0
10305052 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 23040,
relrefs = 0,
relpages = 20
WHERE
oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (4.34028e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2328558912 ', '2329503165 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE f 0 23040 20 2
LP_INVOICE_RECEIVER_ID BIGINT 0.000264831 412 0 0 341
2152353886 2152892932 0 0
10305052 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000264831 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2152353886 ', '2152892932 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE f 0 23040 20 3
INVOICE_AMOUNT_EX_VAT NUMERIC(11,2) 8.50123e-05 1754 0 0 341
-86831.66 396673.41
0 0 10305052 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (8.50123e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-86831.66 ', '396673.41
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE f 0 23040 20 4
INVOICE_AMOUNT_EX_VAT_EUR NUMERIC(11,2) 8.50123e-05 1754 0 0
341 -86831.66 396673.41
0 0 10305052 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (8.50123e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-86831.66 ', '396673.41
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE f 0 23040 20 5
INVOICE_AMT_NONRECLAIM_VAT NUMERIC(11,2) 1 1754 0 0 341
0.00 0.00
0 0 10305052 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE f 0 23040 20 6
INVOICE_AMT_NONRECLAIM_VAT_EUR NUMERIC(11,2) 1 1754 0 0
341 0.00 0.00
0 0 10305052 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE f 0 23040 20 7 INVOICE_DATE


DATE 0.0151515 1095 0 0 341 2015-08-04
2017-06-12
0 0 10305052 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0151515 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2015-08-04
', '2017-06-12
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE f 0 23040 20 8
INVOICE_DUE_DATE DATE 0.00373134 1095 0 0 341 2015-08-04
2017-09-20
0 0 10305052 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00373134 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2015-08-04
', '2017-09-20
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE f 0 23040 20 9
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125) 4.34858e-05 1022 0
0 341 0000001
9999999
9 207360 10305052 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.34858e-05 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0000001
', '9999999
', 9, 207360
);

-- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE f 0 23040 20 10
INVOICE_PAYMENT_DATE DATE 1 1095 0 0 341 0001-01-01
0001-01-01
0 0 10305052 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '0001-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE f 0 23040 20 11
TOT_INVOICE_AMT_REM_ITEMS NUMERIC(11,2) 1 1754 0 0 341
0.00 0.00
0 0 10305052 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE f 0 23040 20 12
TOT_INVOICE_AMT_REM_ITEMS_EUR NUMERIC(11,2) 1 1754 0 0 341
0.00 0.00
0 0 10305052 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE f 0 23040 20 13 LOAD_DATE


DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305052 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE f 0 23040 20 14
LOCAL_KEY_LP_INVOICE NATIONAL CHARACTER VARYING(125) 4.35161e-05 1022
0 0 341 GR201508042174470
GR201706123112323
19 437760 10305052 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.35161e-05 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GR201508042174470
', 'GR201706123112323
', 19, 437760
);

-- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE f 0 23040 20 15
INVOICE_BOOK_PERIOD NUMERIC(6,0) 0.111111 1754 0 0 341
101 201706
0 0 10305052 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'101 ', '201706
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.LP_INVOICE f 0 23040 20 16
CH_LP_INVOICE_TYPE_ID INTEGER 0.2 97 0 0 341
1593542 1593546 0 0
10305052 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^LP_INVOICE^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
16, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1593542 ', '1593546 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.PRODUCT -------------

-- LPGR_DMA_ENTITY_REPORT2.PRODUCT f 0 7 1 1 PRODUCT_ID BIGINT


0.142857 412 0 0 85 0
2147484098 0 0 10305053 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 7,
relrefs = 0,
relpages = 1
WHERE
oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '2147484098 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.PRODUCT f 0 7 1 2 LOCAL_KEY_PRODUCT
NATIONAL CHARACTER VARYING(125) 0.142857 1022 0 0 85
Error in delivery
GRR
19 49 10305053 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'GRR
', 19, 49
);

-- LPGR_DMA_ENTITY_REPORT2.PRODUCT f 0 7 1 3 PRODUCT_NUMBER
NATIONAL CHARACTER VARYING(125) 0.142857 1022 0 0 85
D
R
19 37 10305053 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'D
', 'R
', 19, 37
);

-- LPGR_DMA_ENTITY_REPORT2.PRODUCT f 0 7 1 4 PRODUCT_NAME
NATIONAL CHARACTER VARYING(125) 0.142857 1022 0 0 85
Error in delivery
LP Rental Plan
28 126 10305053 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'LP Rental Plan
', 28, 126
);

-- LPGR_DMA_ENTITY_REPORT2.PRODUCT f 0 7 1 5 PRODUCT_TYPE_CODE
NATIONAL CHARACTER VARYING(125) 0.142857 1022 0 0 85
D
R
19 37 10305053 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'D
', 'R
', 19, 37
);
-- LPGR_DMA_ENTITY_REPORT2.PRODUCT f 0 7 1 6
PRODUCT_TYPE_DESCRIPTION NATIONAL CHARACTER VARYING(125) 0.142857
1022 0 0 85 Error in delivery
LP Rental Plan
28 126 10305053 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'LP Rental Plan
', 28, 126
);
-- LPGR_DMA_ENTITY_REPORT2.PRODUCT f 0 7 1 7 PRODUCT_NAME_CONS
NATIONAL CHARACTER VARYING(125) 0.166667 1022 0 0 85
Comfort Plan
Partner Plan
19 106 10305053 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Comfort Plan
', 'Partner Plan
', 19, 106
);

-- LPGR_DMA_ENTITY_REPORT2.PRODUCT f 0 7 1 8 PRODUCT_TYPE_CONS
NATIONAL CHARACTER VARYING(125) 0.166667 1022 0 0 85
Closed calculation (basic)
Open Calculation
31 149 10305053 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Closed calculation (basic)
', 'Open Calculation
', 31, 149
);

-- LPGR_DMA_ENTITY_REPORT2.PRODUCT f 0 7 1 9 LOAD_DATE DATE


1 1095 0 0 85 2018-10-04
2018-10-04
0 0 10305053 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^PRODUCT^ and objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE -------------

-- LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE f 0 51401 44 1
SUPPLIER_INVOICE_ID BIGINT 1.94549e-05 412 0 0 341
2353023190 2354000334 0 0
10305054 10266453
\echo -n .
UPDATE _t_class
SET
reltuples = 51401,
relrefs = 0,
relpages = 44
WHERE
oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (1.94549e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2353023190 ', '2354000334 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE f 0 51401 44 2
INVOICE_NUMBER NATIONAL CHARACTER VARYING(125) 2.91843e-05 1022 0
0 341
Road Tax
22 1068137 10305054 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.91843e-05 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', 'Road Tax
', 22, 1068137
);

-- LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE f 0 51401 44 3
INVOICE_DATE DATE 0.00259067 1095 0 0 341 0001-01-01
2017-06-12
0 0 10305054 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00259067 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '2017-06-12
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE f 0 51401 44 4
INVOICE_BOOK_PERIOD NUMERIC(6,0) 0.0714286 1754 0 0 341
101 201706
0 0 10305054 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0714286 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'101 ', '201706
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE f 0 51401 44 5
INVOICE_AMOUNT_EX_VAT NUMERIC(13,2) 4.25514e-05 1754 0 0 341
-58232.65 5522306.12
0 0 10305054 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.25514e-05 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-58232.65 ', '5522306.12
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE f 0 51401 44 6
INVOICE_AMOUNT_EX_VAT_EUR NUMERIC(13,2) 4.25514e-05 1754 0 0
341 -58232.65 5522306.12
0 0 10305054 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.25514e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-58232.65 ', '5522306.12
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE f 0 51401 44 7
INVOICE_AMT_NONRECLAIM_VAT NUMERIC(11,2) 1 1754 0 0 341
0.00 0.00
0 0 10305054 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE f 0 51401 44 8
INVOICE_AMT_NONRECLAIM_VAT_EUR NUMERIC(11,2) 1 1754 0 0
341 0.00 0.00
0 0 10305054 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE f 0 51401 44 9
TOT_INVOICE_AMT_REM_ITEMS NUMERIC(11,2) 1 1754 0 0 341
0.00 0.00
0 0 10305054 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE f 0 51401 44 10
TOT_INVOICE_AMT_REM_ITEMS_EUR NUMERIC(11,2) 1 1754 0 0 341
0.00 0.00
0 0 10305054 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE f 0 51401 44 11
LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305054 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE f 0 51401 44 12
SUPPLIER_INVOICE_SENDER_ID BIGINT 0.00155039 412 0 0 341
2152360122 2152901573 0 0
10305054 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00155039 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2152360122 ', '2152901573 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE f 0 51401 44 13
LOCAL_KEY_SUPPLIER_INVOICE NATIONAL CHARACTER VARYING(125) 1.95271e-05
1022 0 0 341 GRL000000009241956
GRL9326929
20 737332 10305054 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.95271e-05 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GRL000000009241956
', 'GRL9326929
', 20, 737332
);

-- LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE f 0 51401 44 14
CH_SUPPLIER_INVOICE_TYPE_ID INTEGER 0.1 97 0 0 341
4423 1593313 0 0
10305054 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.1 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'4423 ', '1593313 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2.SUPPLIER_INVOICE f 0 51401 44 15
APPROVAL_HEADER_ID BIGINT 7.37137e-05 412 0 0 341
2179604926 999999999999999998 0 0
10305054 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (7.37137e-05 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^SUPPLIER_INVOICE^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2179604926 ', '999999999999999998 ', 0, 0
);
------------- LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT -------------

-- LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT f 0 780380 691 1


LEASE_CONTRACT_VEHICLE_ID BIGINT 4.31034e-05 412 0 0 341
2165923382 2171729640 0 0
10305055 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 780380,
relrefs = 0,
relpages = 691
WHERE
oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
;

UPDATE _t_attribute
SET
attdispersion = (CAST (4.31034e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2165923382 ', '2171729640 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT f 0 780380 691 2


VEHICLE_EQUIPMENT_ID BIGINT 1.28143e-06 412 0 0 341
2170600365 2172764980 0 0
10305055 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.28143e-06 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2170600365 ', '2172764980 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT f 0 780380 691 3


OPTION_ACCESSORY_STANDARD NATIONAL CHARACTER VARYING(125) 0.166667
1022 0 0 341 A
Y
3 2341140 10305055 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.166667 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'A
', 'Y
', 3, 2341140
);

-- LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT f 0 780380 691 4


CATALOGUE_PRICE NUMERIC(11,2) 0.000114982 1754 0 0 341
-22046.14 46620.00
0 0 10305055 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000114982 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
4, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-22046.14 ', '46620.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT f 0 780380 691 5


CATALOGUE_PRICE_EUR NUMERIC(11,2) 0.000114982 1754 0 0 341
-22046.14 46620.00
0 0 10305055 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000114982 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
5, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-22046.14 ', '46620.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT f 0 780380 691 6


COMMERCIAL_DISCOUNT_AMOUNT NUMERIC(11,2) 0.00021561 1754 0 0
341 0.00 2215.20
0 0 10305055 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00021561 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '2215.20
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT f 0 780380 691 7


COMMERCIAL_DISCOUNT_AMOUNT_EUR NUMERIC(11,2) 0.00021561 1754 0
0 341 0.00
2215.20 0 0 10305055
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00021561 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '2215.20
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT f 0 780380 691 8


TAX_AMOUNT_NON_RECLAIMABLE NUMERIC(11,2) 0.00207039 1754 0 0
341 0.00 8977.58
0 0 10305055 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00207039 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '8977.58
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT f 0 780380 691 9


TAX_AMOUNT_NON_RECLAIMABLE_EUR NUMERIC(11,2) 0.00207039 1754 0
0 341 0.00
8977.58 0 0 10305055
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00207039 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '8977.58
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT f 0 780380 691 10


VAT_PERCENTAGE NUMERIC(6,3) 0.5 1754 0 0 341 23.000
24.000 0 0 10305055
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'23.000 ', '24.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT f 0 780380 691 11


LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 10305055 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
11, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT f 0 780380 691 12


LOCAL_KEY_VEHICLE_EQUIPMENT NATIONAL CHARACTER VARYING(125) 1.37062e-06
1022 0 0 341 GR000007400007400038O
GR06732420504587mumuO
27 17939250 10305055 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.37062e-06 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
12, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GR000007400007400038O
', 'GR06732420504587mumuO
', 27, 17939250
);

-- LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT f 0 780380 691 13


VEHICLE_EQUIPMENT_NUMBER NATIONAL CHARACTER VARYING(125) 3.14634e-05
1022 0 0 341 0002
oyty
6 4682280 10305055 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.14634e-05 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
13, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0002
', 'oyty
', 6, 4682280
);

-- LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT f 0 780380 691 14


CH_EQUIPMENT_TYPE_ID INTEGER 0.2 97 0 0 341 1585
999990410 0 0 10305055 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
14, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1585 ', '999990410 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2.VEHICLE_EQUIPMENT f 0 780380 691 15


CH_EQUIPMENT_GROUP_ID INTEGER 0.5 97 0 0 341 370328
999992487 0 0 10305055 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where oid = (
select objid from _t_object where objname = ^VEHICLE_EQUIPMENT^ and
objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)
),
15, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'370328 ', '999992487 ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_DELIVERED_SERVICE -------------

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 1


LEASE_SERVICE_ID INTEGER 0.0204082 97 0 0 341
1593424 1593502 0 0
11505729 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 795217,
relrefs = 0,
relpages = 832
WHERE
relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
);

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0204082 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1593424 ', '1593502 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 2


SERVICE_DATE DATE 0.0010917 1095 0 0 341 0001-01-01
2017-12-22
0 0 11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0010917 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '2017-12-22
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 3


LEASE_CONTRACT_VEHICLE_ID BIGINT 3.52361e-05 412 0 0 341
2165924346 2171729639 0 0
11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.52361e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2165924346 ', '2171729639 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 4


SUPPLIER_INVOICE_ID BIGINT 1.94496e-05 412 0 0 341
2353023190 2354000334 0 0
11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.94496e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2353023190 ', '2354000334 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 5


AMOUNT_TYPE CHARACTER(1) 0.333333 1058 0 0 341 A
P
0 0 11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'A
', 'P
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 6


DELIVERED_SERVICE_AMOUNT NUMERIC(11,2) 2.53582e-05 1754 0 0
341 -37930.10 105338.09
0 0 11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.53582e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-37930.10 ', '105338.09
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 7


DELIVERED_SERVICE_AMOUNT_EUR NUMERIC(11,2) 2.53582e-05 1754 0 0
341 -37930.10 105338.10
0 0 11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.53582e-05 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-37930.10 ', '105338.10
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 8


SERVICE_MILEAGE NUMERIC(7,0) 0.000113148 1754 0 0 341
0 412875
0 0 11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000113148 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '412875
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 9


SERVICE_SUPPLIER_ID BIGINT 0.333333 412 0 0 341
92 144 0 0
11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
9, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'92 ', '144 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 10


SERVICE_MILEAGE_KM NUMERIC(7,0) 0.000113148 1754 0 0 341
0 412875
0 0 11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000113148 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '412875
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 11


SERVICE_QUANTITY NUMERIC(11,2) 1 1754 0 0 341 0.00
0.00 0 0 11505729
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 12


LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
12, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 13


SERVICE_ID BIGINT 1.25752e-06 412 0 0 341 2353023634
2354596681 0 0 11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1.25752e-06 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
13, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2353023634 ', '2354596681 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 14


CH_SERVICE_TYPE_ID INTEGER 0.5 97 0 0 341 4422
974590 0 0 11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
14, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'4422 ', '974590 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 15


CH_SUBJECT_TYPE_ID INTEGER 0.5 97 0 0 341 4427
974450 0 0 11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
15, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'4427 ', '974450 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 16


CH_SUBJECT_BRAND_ID INTEGER 0.5 97 0 0 341 4426
974534 0 0 11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
16, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'4426 ', '974534 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 17


BOOK_PERIOD_DATE DATE 0.0714286 1095 0 0 341 0001-01-01
2017-06-30
0 0 11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0714286 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
17, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '2017-06-30
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 18


SERVICE_TYPE_ID INTEGER 0.333333 97 0 0 341 68
72 0 0 11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
18, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'68 ', '72 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 19
VEHICLE_AGE INTEGER 0.00666667 97 0 0 341 -1
24197 0 0 11505729 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00666667 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
19, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-1 ', '24197 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 20


DAMAGE_ID BIGINT 0.000833333 412 0 0 341 2172011487
999999999999999998 0 0 11505729 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (0.000833333 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
20, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2172011487 ', '999999999999999998 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 21


SERVICE_NUMBER NATIONAL CHARACTER VARYING(125) 0.000791139 1022 0
0 341
9323029
52 41351284 11505729 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (0.000791139 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
21, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'
', '9323029
', 52, 41351284
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 22


LOCAL_KEY_SERVICE NATIONAL CHARACTER VARYING(125) 1.34291e-06 1022 0
0 341 GR00000000924195600313932015010120151231650
GRL201706129326929048995199720170501
52 41351284 11505729 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (1.34291e-06 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
22, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GR00000000924195600313932015010120151231650
', 'GRL201706129326929048995199720170501
', 52, 41351284
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505729 f 0 795217 832 23


NUMBER_OF_REPLACEMENT_CAR_DAYS NUMERIC(7,0) 0.5 1754 0 0
341 0 1
0 0 11505729 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
23, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0 ', '1
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_LP_INVOICE_DETAIL -------------

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505880 f 0 1412593 917 1


LEASE_SERVICE_ID INTEGER 0.027027 97 0 0 341
1593424 1593502 0 0
11505880 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 1412593,
relrefs = 0,
relpages = 917
WHERE
relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
);

UPDATE _t_attribute
SET
attdispersion = (CAST (0.027027 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1593424 ', '1593502 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505880 f 0 1412593 917 2


BOOK_PERIOD_DATE DATE 0.111111 1095 0 0 341 0001-01-01
2017-06-30
0 0 11505880 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '2017-06-30
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505880 f 0 1412593 917 3


LEASE_CONTRACT_VEHICLE_ID BIGINT 3.84749e-05 412 0 0 341
2165925311 2171729639 0 0
11505880 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.84749e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2165925311 ', '2171729639 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505880 f 0 1412593 917 4


LP_INVOICE_ID BIGINT 4.3399e-05 412 0 0 341
2328558912 2329503165 0 0
11505880 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.3399e-05 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2328558912 ', '2329503165 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505880 f 0 1412593 917 5


AMOUNT_TYPE CHARACTER(1) 0.5 1058 0 0 341 I
P
0 0 11505880 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'I
', 'P
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505880 f 0 1412593 917 6


INVOICE_AMOUNT NUMERIC(11,2) 2.96648e-05 1754 0 0 341
-34330.80 38300.00
0 0 11505880 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.96648e-05 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-34330.80 ', '38300.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505880 f 0 1412593 917 7


INVOICE_AMOUNT_EUR NUMERIC(11,2) 2.96648e-05 1754 0 0 341
-34330.80 38300.00
0 0 11505880 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (2.96648e-05 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-34330.80 ', '38300.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505880 f 0 1412593 917 8


INVOICED_MILEAGE NUMERIC(7,0) 0.000345304 1754 0 0 341
-85680 125050
0 0 11505880 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000345304 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-85680 ', '125050
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505880 f 0 1412593 917 9


INVOICED_MILEAGE_KM NUMERIC(7,0) 0.000345304 1754 0 0 341
-85680 125050
0 0 11505880 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000345304 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-85680 ', '125050
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505880 f 0 1412593 917 10


LOAD_DATE DATE 1 1095 0 0 341 2018-10-04
2018-10-04
0 0 11505880 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
10, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505880 f 0 1412593 917 11


LP_INVOICE_LINE_ID BIGINT 7.07918e-07 412 0 0 341
2328560336 2330290720 0 0
11505880 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (7.07918e-07 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
11, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2328560336 ', '2330290720 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505880 f 0 1412593 917 12


VEHICLE_AGE INTEGER 0.00694444 97 0 0 341 -1
164 0 0 11505880 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00694444 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
12, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'-1 ', '164 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2._BTS_11505880 f 0 1412593 917 13
DAMAGE_ID BIGINT 0.00193798 412 0 0 341 2174552903
999999999999999998 0 0 11505880 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00193798 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
13, 412, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'2174552903 ', '999999999999999998 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_11505880 f 0 1412593 917 14


LOCAL_KEY_LP_INVOICE_LINE NATIONAL CHARACTER VARYING(125) 7.61262e-07
1022 0 0 341 GR00000010210025841
GR99999990427933999
52 73454836 11505880 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (7.61262e-07 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_LP_INVOICE_DETAIL^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
14, 1022, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'GR00000010210025841
', 'GR99999990427933999
', 52, 73454836
);

------------- LPGR_DMA_ENTITY_REPORT2.LEASE_CONTRACT_VEHICLE -------------


-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 1
LEASE_CONTRACT_VEHICLE_ID BIGINT 3.31928e-05 412 0 0 85
0 999999999999999999 0 0
22900546 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 30127,
relrefs = 0,
relpages = 332
WHERE
relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
);

UPDATE _t_attribute
SET
attdispersion = (CAST (3.31928e-05 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
1, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '999999999999999999 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 2 CUSTOMER_ID


BIGINT 0.000348675 412 0 0 85 0
2152892625 0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000348675 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
2, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '2152892625 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 3


LC_LEASE_CONTRACT_NUMBER NATIONAL CHARACTER VARYING(125) 3.34415e-05
1022 0 0 85 0000074
Not supplied by OPCO
22 271179 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.34415e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
3, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0000074
', 'Not supplied by OPCO
', 22, 271179
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 4


LC_COST_CENTER_NAME NATIONAL CHARACTER VARYING(125) 0.000882613 1022
0 0 85
ΨΥΛΑΚΗ ΣΤΑΥΡΟΥΛΑ
69 310829 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000882613 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
4, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'ΨΥΛΑΚΗ ΣΤΑΥΡΟΥΛΑ
', 69, 310829
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 5 LC_SLB_FLAG


CHARACTER(1) 0.5 1058 0 0 85
N
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 6


LC_START_DATE_LEASECONTRACT DATE 0.000341647 1095 0 0 85
0001-01-01
2017-06-12
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000341647 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
6, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2017-06-12
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 7


LC_END_DATE_LEASECONTRACT DATE 0.000412201 1095 0 0 85
2000-01-01
9999-12-31
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000412201 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
7, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 8


LC_BUDG_END_DATE_LEASECONTRACT DATE 0.000238209 1095 0 0 85
0001-01-01
9999-12-31
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000238209 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
8, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 9


LC_STARTMILEAGELEASECONTRACTKM NUMERIC(7,0) 0.000349406 1754 0
0 85 -2916 228000
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000349406 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
9, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-2916 ', '228000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 10


LC_ENDMILEAGELEASECONTRACT NUMERIC(7,0) 5.83839e-05 1754 0 0
85 0 382000
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (5.83839e-05 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '382000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 11


LC_CONTRACT_DURATION NUMERIC(3,0) 0.0133333 1754 0 0 85
0 84
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0133333 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '84
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 12


LC_CONTRACT_MILEAGE NUMERIC(7,0) 0.00101729 1754 0 0 85
0 350000
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00101729 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
12, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '350000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 13


LC_DISCONMONTHLY_LEASEINST NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
13, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 14


LC_MONTHLY_LEASEINSTALMENT NUMERIC(11,2) 6.53253e-05 1754 0 0
85 0.00 7314.97
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (6.53253e-05 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
14, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '7314.97
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 15


LC_MVA_FEE_OVER_MILEAGE NUMERIC(11,2) 0.00219298 1754 0 0 85
0.00 80.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00219298 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
15, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '80.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 16


LC_MVA_REPAY_UNDER_MILEAGE NUMERIC(11,2) 0.00268097 1754 0 0
85 0.00 48.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00268097 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
16, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '48.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 17


LC_ACTUAL_INVEST_AMOUNT NUMERIC(11,2) 6.63306e-05 1754 0 0 85
0.00 251105.36
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (6.63306e-05 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
17, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '251105.36
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 18


LC_BUDGETED_INVEST_AMOUNT NUMERIC(11,2) 8.06517e-05 1754 0 0
85 0.00 252593.57
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (8.06517e-05 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
18, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '252593.57
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 19


LC_INVEST_INTEREST_BASE NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
19, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 20


LC_PREPAYMNT_INTEREST_BASE NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
20, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 21


LC_UFWT_AMOUNT NUMERIC(11,2) 9.84737e-05 1754 0 0 85
-350.00 8292.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (9.84737e-05 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
21, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-350.00 ', '8292.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 22


LC_EXTENSION_PENALTY NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
22, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 23


LC_EARLY_TERM_PENALTY NUMERIC(11,2) 0.000426257 1754 0 0 85
-2182.75 40938.04
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000426257 as float))
WHERE
attnum = 23 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 23 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
23, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-2182.75 ', '40938.04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 24


VEH_VEHICLE_NUMBER NATIONAL CHARACTER VARYING(125) 3.34415e-05 1022
0 0 85 0000074
Not supplied by OPCO
22 271179 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.34415e-05 as float))
WHERE
attnum = 24 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 24 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
24, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0000074
', 'Not supplied by OPCO
', 22, 271179
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 25


VEH_MODEL_TYPE_DESCRIPTION NATIONAL CHARACTER VARYING(125) 0.000222816
1022 0 0 85
ΜΤ 4WD INVITE AS&G CC
45 651747 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000222816 as float))
WHERE
attnum = 25 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 25 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
25, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'ΜΤ 4WD INVITE AS&G CC
', 45, 651747
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 26


VEH_CATALOGUE_PRICE NUMERIC(11,2) 0.000102344 1754 0 0 85
0.00 327124.77
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000102344 as float))
WHERE
attnum = 26 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 26 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
26, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '327124.77
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 27


VEH_CATALOGUE_PRICE_EUR NUMERIC(11,2) 0.000102344 1754 0 0 85
0.00 327124.77
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000102344 as float))
WHERE
attnum = 27 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 27 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
27, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '327124.77
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 28


VEH_ACTUAL_DISCOUNT_PERC NUMERIC(6,3) 0.000415455 1754 0 0
85 -2.000 64.360
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000415455 as float))
WHERE
attnum = 28 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 28 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
28, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-2.000 ', '64.360
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 29
VEH_COMMERCIAL_DISCNT_AMT NUMERIC(11,2) 0.00010791 1754 0 0
85 -229.53 55100.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00010791 as float))
WHERE
attnum = 29 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 29 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
29, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-229.53 ', '55100.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 30
VEH_COMMERCIAL_DISCNT_AMT_EUR NUMERIC(11,2) 0.00010791 1754 0 0
85 -229.53 55100.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00010791 as float))
WHERE
attnum = 30 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 30 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
30, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-229.53 ', '55100.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 31
VEH_TAX_AMT_NON_RECLAIM NUMERIC(11,2) 0.000837521 1754 0 0 85
0.00 41695.20
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000837521 as float))
WHERE
attnum = 31 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 31 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
31, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '41695.20
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 32


VEH_TAX_AMT_NON_RECLAIM_EUR NUMERIC(11,2) 0.000837521 1754 0 0
85 0.00 41695.20
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000837521 as float))
WHERE
attnum = 32 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 32 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
32, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '41695.20
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 33


VEH_VAT_PERCENTAGE NUMERIC(6,3) 0.333333 1754 0 0 85
0.000 24.000
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 33 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 33 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
33, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '24.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 34


VEH_TOT_OPTIONS_AMT NUMERIC(11,2) 0.000159185 1754 0 0 85
-3427.74 51266.30
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000159185 as float))
WHERE
attnum = 34 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 34 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
34, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-3427.74 ', '51266.30
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 35


VEH_TOTAL_OPTIONS_AMT_EUR NUMERIC(11,2) 0.000159185 1754 0 0
85 -3427.74 51266.30
0 0 22900546 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (0.000159185 as float))
WHERE
attnum = 35 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 35 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
35, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-3427.74 ', '51266.30
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 36


VEH_TOT_ACCESSOIRIES_AMT NUMERIC(11,2) 0.000317662 1754 0 0
85 -22041.34 11500.00
0 0 22900546 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (0.000317662 as float))
WHERE
attnum = 36 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 36 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
36, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-22041.34 ', '11500.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 37


VEH_TOT_ACCESSOIRIES_AMT_EUR NUMERIC(11,2) 0.000317662 1754 0 0
85 -22041.34 11500.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000317662 as float))
WHERE
attnum = 37 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 37 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
37, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-22041.34 ', '11500.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 38


VEH_DELIVERY_COSTS NUMERIC(11,2) 0.0018622 1754 0 0 85
0.00 33213.94
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0018622 as float))
WHERE
attnum = 38 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 38 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
38, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '33213.94
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 39


VEH_DELIVERY_COSTS_EUR NUMERIC(11,2) 0.0018622 1754 0 0 85
0.00 33213.94
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0018622 as float))
WHERE
attnum = 39 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 39 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
39, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '33213.94
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 40


VEH_REGISTRATION_NUMBER NATIONAL CHARACTER VARYING(125) 3.45901e-05 1022
0 0 85
ZYX7012
22 264201 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.45901e-05 as float))
WHERE
attnum = 40 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 40 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
40, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'ZYX7012
', 22, 264201
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 41


VEH_REGISTRATION_DATE DATE 0.000359454 1095 0 0 85 0001-
01-01
2017-06-12
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000359454 as float))
WHERE
attnum = 41 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 41 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
41, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2017-06-12
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 42


VEH_VEH_IDENTIFICATION_NUMBER NATIONAL CHARACTER VARYING(125) 3.63848e-05
1022 0 0 85
ΥV1MV8461E2157502
22 528814 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.63848e-05 as float))
WHERE
attnum = 42 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 42 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
42, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'ΥV1MV8461E2157502
', 22, 528814
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 43


VEH_NUMBER_OF_DOORS NUMERIC(3,0) 0.2 1754 0 0 85
0 5
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 43 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 43 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
43, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '5
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 44


VEH_ENGINE_CAPACITY NUMERIC(5,0) 0.00381679 1754 0 0 85
0 6496
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00381679 as float))
WHERE
attnum = 44 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 44 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
44, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '6496
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 45


VEH_ENGINE_POWER NUMERIC(5,0) 0.005 1754 0 0 85 0
560 0 0 22900546
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.005 as float))
WHERE
attnum = 45 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 45 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
45, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '560
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 46


VEH_NUMBER_OF_CYLINDERS NUMERIC(3,0) 1 1754 0 0 85
0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 46 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 46 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
46, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 47


VEH_TARE_WEIGHT NUMERIC(5,0) 0.00128041 1754 0 0 85
0 2745
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00128041 as float))
WHERE
attnum = 47 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 47 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
47, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '2745
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 48


VEH_GROSS_WEIGHT NUMERIC(5,0) 0.00219298 1754 0 0 85
0 3500
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00219298 as float))
WHERE
attnum = 48 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 48 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
48, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '3500
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 49


VEH_FUEL_CONSUMPT_MANUFACTURER NUMERIC(7,2) 0.0075188 1754 0
0 85 0.00 22.20
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0075188 as float))
WHERE
attnum = 49 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 49 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
49, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '22.20
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 50


VEH_EXTERNAL_REFERENCE NATIONAL CHARACTER VARYING(125) 7.75254e-05 1022
0 0 85 0000000000
Not supplied by OPCO
27 723985 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (7.75254e-05 as float))
WHERE
attnum = 50 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 50 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
50, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0000000000
', 'Not supplied by OPCO
', 27, 723985
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 51


VEH_TYRE_SIZE_AT_DELIVERY NATIONAL CHARACTER VARYING(125) 0.0026738
1022 0 0 85
Not supplied by OPCO
22 341244 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0026738 as float))
WHERE
attnum = 51 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 51 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
51, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not supplied by OPCO
', 22, 341244
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 52


VEH_STANDARD_DISCOUNT_PERC NUMERIC(6,3) 0.0153846 1754 0 0
85 0.000 33.000
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0153846 as float))
WHERE
attnum = 52 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 52 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
52, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.000 ', '33.000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 53 LOAD_DATE


DATE 1 1095 0 0 85 2018-10-04
2018-10-04
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 53 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 53 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
53, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2018-10-04
', '2018-10-04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 54


MNGSERV_TOT_RESIDUAL_VALUE NUMERIC(11,2) 0.000102659 1754 0.0451754
0 85 0
55000.00 0 0 22900546
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000102659 as float))
WHERE
attnum = 54 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 54 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
54, 1754, (CAST(0.0451754 as float)),
(CAST(0 as float)), '85', '',
'0 ', '55000.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 55


MNGSERV_INTEREST_PERC_INVESTM NUMERIC(6,3) 0.00155763 1754 0.0451754
0 85 0 14.790
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00155763 as float))
WHERE
attnum = 55 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 55 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
55, 1754, (CAST(0.0451754 as float)),
(CAST(0 as float)), '85', '',
'0 ', '14.790
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 56


MNGSERV_INTEREST_PERC_PREPAYM NUMERIC(6,3) 0.00200401 1754 0.0451754
0 85 0 59.220
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00200401 as float))
WHERE
attnum = 56 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 56 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
56, 1754, (CAST(0.0451754 as float)),
(CAST(0 as float)), '85', '',
'0 ', '59.220
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 57


MNGSERV_TOT_RESIDUAL_VALUE_EUR NUMERIC(11,2) 0.000102669 1754 0
0 85 0.00
55000.00 0 0 22900546
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000102669 as float))
WHERE
attnum = 57 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 57 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
57, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '55000.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 58


LC_MONTHLY_LEASEINSTALMENT_EUR NUMERIC(11,2) 6.53253e-05 1754 0
0 85 0.00
7314.97 0 0 22900546
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (6.53253e-05 as float))
WHERE
attnum = 58 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 58 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
58, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '7314.97
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 59


LC_MVA_FEE_OVER_MILEAGE_EUR NUMERIC(11,2) 0.00219298 1754 0 0
85 0.00 80.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00219298 as float))
WHERE
attnum = 59 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 59 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
59, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '80.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 60


LC_MVA_REPAY_UNDER_MILEAGE_EUR NUMERIC(11,2) 0.00268097 1754 0
0 85 0.00 48.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00268097 as float))
WHERE
attnum = 60 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 60 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
60, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '48.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 61


LC_ACTUAL_INVEST_AMOUNT_EUR NUMERIC(11,2) 6.64143e-05 1754 0 0
85 0.00 251105.36
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (6.64143e-05 as float))
WHERE
attnum = 61 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 61 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
61, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '251105.36
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 62


LC_BUDGETED_INVEST_AMOUNT_EUR NUMERIC(11,2) 8.06972e-05 1754 0 0
85 0.00 252593.57
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (8.06972e-05 as float))
WHERE
attnum = 62 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 62 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
62, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '252593.57
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 63


LC_INVEST_INTEREST_BASE_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 63 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 63 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
63, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 64


LC_PREPAYMNT_INTEREST_BASE_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 64 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 64 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
64, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 65


LC_UFWT_AMOUNT_EUR NUMERIC(11,2) 9.84737e-05 1754 0 0 85
-350.00 8292.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (9.84737e-05 as float))
WHERE
attnum = 65 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 65 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
65, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-350.00 ', '8292.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 66


LC_EXTENSION_PENALTY_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 66 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 66 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
66, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 67


LC_EARLY_TERM_PENALTY_EUR NUMERIC(11,2) 0.000426257 1754 0 0
85 -2182.75 40938.04
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000426257 as float))
WHERE
attnum = 67 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 67 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
67, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-2182.75 ', '40938.04
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 68


OR_ORDER_NUMBER NATIONAL CHARACTER VARYING(125) 3.34806e-05 1022 0
0 85
Not Supplied by OpCo
22 271159 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.34806e-05 as float))
WHERE
attnum = 68 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 68 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
68, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 271159
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 69


OR_ORDER_DATE DATE 0.000370233 1095 0 0 85 0001-01-01
2017-06-12
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000370233 as float))
WHERE
attnum = 69 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 69 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
69, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2017-06-12
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 70


OR_ESTIMATED_DELIVERY_DATE DATE 0.000353857 1095 0 0 85
0001-01-01
2020-12-31
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000353857 as float))
WHERE
attnum = 70 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 70 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
70, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2020-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 71


CUSTOMER_SLA_ID BIGINT 0.000298597 412 0 0 85 0
2153405668 0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000298597 as float))
WHERE
attnum = 71 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 71 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
71, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '2153405668 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 72


LC_DRIVER_NUMBER NATIONAL CHARACTER VARYING(125) 3.34874e-05 1022 0
0 85
Not Supplied by OpCo
22 361531 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.34874e-05 as float))
WHERE
attnum = 72 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 72 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
72, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 361531
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 73


LC_DRIVER_NAME NATIONAL CHARACTER VARYING(125) 4.584e-05 1022 0
0 85
κος ΠΑΝΤΑΖΑΚΟΣ
70 984470 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (4.584e-05 as float))
WHERE
attnum = 73 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 73 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
73, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'κος ΠΑΝΤΑΖΑΚΟΣ
', 70, 984470
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 74


OR_ORDER_SUPPLIER_NUMBER NATIONAL CHARACTER VARYING(125) 0.00471698
1022 0 0 85
Not Supplied by OpCo
22 331407 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00471698 as float))
WHERE
attnum = 74 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 74 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
74, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 331407
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 75


OR_ORDER_SUPPLIER_NAME NATIONAL CHARACTER VARYING(125) 0.0052356 1022
0 0 85
ΧΑΝΙΑΔΑΚΗΣ Α.Ε.
67 711287 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0052356 as float))
WHERE
attnum = 75 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 75 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
75, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'ΧΑΝΙΑΔΑΚΗΣ Α.Ε.
', 67, 711287
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 76


LC_LOCAL_KEY_LEASE_CONTRACT NATIONAL CHARACTER VARYING(125) 3.34706e-05
1022 0 0 85 Error in delivery
Not Supplied by OpCo
22 361550 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.34706e-05 as float))
WHERE
attnum = 76 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 76 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
76, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 22, 361550
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 77


VEH_LOCAL_KEY_VEHICLE NATIONAL CHARACTER VARYING(125) 3.34706e-05 1022
0 0 85 Error in delivery
Not Supplied by OpCo
22 361554 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.34706e-05 as float))
WHERE
attnum = 77 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 77 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
77, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 22, 361554
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 78


OR_LOCAL_KEY_ORDER NATIONAL CHARACTER VARYING(125) 3.34706e-05 1022
0 0 85
Not Supplied by OpCo
22 361531 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.34706e-05 as float))
WHERE
attnum = 78 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 78 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
78, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 361531
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 79


LC_LOCAL_KEY_COST_CENTER NATIONAL CHARACTER VARYING(125) 0.000598802
1022 0 0 85
Not Supplied by OpCo
22 255271 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000598802 as float))
WHERE
attnum = 79 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 79 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
79, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 255271
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 80


LC_LOCAL_KEY_DRIVER NATIONAL CHARACTER VARYING(125) 3.34829e-05 1022
0 0 85 Error in delivery
Not Supplied by OpCo
24 542297 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.34829e-05 as float))
WHERE
attnum = 80 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 80 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
80, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'Error in delivery
', 'Not Supplied by OpCo
', 24, 542297
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 81


OR_LOCAL_KEY_ORDER_SUPPLIER NATIONAL CHARACTER VARYING(125) 0.00362319
1022 0 0 85
Not Supplied by OpCo
22 542356 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00362319 as float))
WHERE
attnum = 81 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 81 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
81, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 542356
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 82


CH_LEASE_CONTRACT_STATUS_ID INTEGER 0.0909091 97 0 0 85
1546 999993418 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0909091 as float))
WHERE
attnum = 82 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 82 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
82, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1546 ', '999993418 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 83


CH_CONTRACT_TERMINATION_ID INTEGER 0.0769231 97 0 0 85
1532 999993404 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0769231 as float))
WHERE
attnum = 83 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 83 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
83, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1532 ', '999993404 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 84


CH_CONTRACT_STOP_REASON_ID INTEGER 0.0769231 97 0 0 85
1533 999993473 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0769231 as float))
WHERE
attnum = 84 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 84 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
84, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1533 ', '999993473 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 85


CH_REGISTRATION_STATUS_ID INTEGER 0.25 97 0 0 85
1173978 999993511 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 85 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 85 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
85, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1173978 ', '999993511 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 86


CH_PURCHASED_BY_ID INTEGER 0.25 97 0 0 85
1174009 999993512 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 86 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 86 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
86, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1174009 ', '999993512 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 87


CH_WINTER_TYRES_INCLUDED_ID INTEGER 0.25 97 0 0 85
1557 999993433 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 87 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 87 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
87, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1557 ', '999993433 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 88


CH_MAKE_CODE_ID INTEGER 0.0175439 97 0 0 85 1539
999993411 0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0175439 as float))
WHERE
attnum = 88 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 88 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
88, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1539 ', '999993411 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 89


CH_MODEL_CODE_ID INTEGER 0.000158253 97 0 0 85 1540
999993412 0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000158253 as float))
WHERE
attnum = 89 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 89 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
89, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1540 ', '999993412 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 90


CH_BODY_STYLE_ID INTEGER 0.0294118 97 0 0 85 1568
999993472 0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0294118 as float))
WHERE
attnum = 90 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 90 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
90, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1568 ', '999993472 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 91


CH_DRIVING_METHOD_ID INTEGER 0.111111 97 0 0 85
1537 999993409 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.111111 as float))
WHERE
attnum = 91 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 91 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
91, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1537 ', '999993409 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 92


CH_EXTERIOR_COLOUR_ID INTEGER 0.000217014 97 0 0 85
1541 999993413 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000217014 as float))
WHERE
attnum = 92 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 92 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
92, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1541 ', '999993413 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 93


CH_EXTERIOR_COLOUR_TYPE_ID INTEGER 0.2 97 0 0 85
1542 999993414 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 93 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 93 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
93, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1542 ', '999993414 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 94


CH_PRIMARY_FUEL_TYPE_ID INTEGER 0.142857 97 0 0 85
1560 999993440 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 94 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 94 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
94, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1560 ', '999993440 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 95


CH_TRANSMISSION_TYPE_ID INTEGER 0.0625 97 0 0 85
1552 999993428 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0625 as float))
WHERE
attnum = 95 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 95 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
95, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1552 ', '999993428 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 96


CH_UPHOLSTERY_TYPE_ID INTEGER 0.2 97 0 0 85 1545
999993417 0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 96 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 96 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
96, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1545 ', '999993417 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 97


CH_VEHICLE_TYPE_ID INTEGER 0.2 97 0 0 85 1544
999993416 0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 97 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 97 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
97, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1544 ', '999993416 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 98


CH_FLEET_REPORT_CATEGORY_ID INTEGER 0.2 97 0 0 85
1565 999993447 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 98 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 98 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
98, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1565 ', '999993447 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 99


CH_PRODUCT_CATEGORY_TYPE_ID INTEGER 0.142857 97 0 0 85
1559 999993439 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.142857 as float))
WHERE
attnum = 99 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 99 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
99, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1559 ', '999993439 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 100 PRODUCT_ID


BIGINT 0.125 412 0 0 85 0
2147484218 0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.125 as float))
WHERE
attnum = 100 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 100 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
100, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '2147484218 ', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 101
LC_BOOK_VALUE NUMERIC(11,2) 7.01754e-05 1754 0 0 85
0.00 252593.57
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (7.01754e-05 as float))
WHERE
attnum = 101 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 101 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
101, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '252593.57
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 102
CH_ASSET_TYPE_ID INTEGER 0.25 97 0 0 85 1162748
999993499 0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 102 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 102 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
102, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1162748 ', '999993499 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 103


CH_VEHICLE_SEGMENT_ID INTEGER 0.0625 97 0 0 85
0 999992478 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0625 as float))
WHERE
attnum = 103 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 103 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
103, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '999992478 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 104 CH_OEM_ID


INTEGER 0.0434783 97 0 0 85 791
999993479 0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0434783 as float))
WHERE
attnum = 104 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 104 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
104, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'791 ', '999993479 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 105


LC_STARTMILEAGELEASECONTRACT NUMERIC(7,0) 0.000349406 1754 0 0
85 -2916 228000
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000349406 as float))
WHERE
attnum = 105 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 105 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
105, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-2916 ', '228000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 106


LC_ENDMILEAGELEASECONTRACTKM NUMERIC(7,0) 5.83839e-05 1754 0 0
85 0 382000
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (5.83839e-05 as float))
WHERE
attnum = 106 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 106 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
106, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '382000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 107


LC_CONTRACT_MILEAGE_KM NUMERIC(7,0) 0.00101729 1754 0 0 85
0 350000
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00101729 as float))
WHERE
attnum = 107 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 107 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
107, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '350000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 108


LC_BOOK_VALUE_EUR NUMERIC(11,2) 7.01754e-05 1754 0 0 85
0.00 252593.57
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (7.01754e-05 as float))
WHERE
attnum = 108 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 108 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
108, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '252593.57
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 109


LC_DISCONMONTHLY_LEASEINST_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 109 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 109 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
109, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 110


CH_VEHICLE_SEGMENT_LOCAL_ID INTEGER 0.2 97 0 0 85
1237437 999993636 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 110 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 110 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
110, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1237437 ', '999993636 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 111


CH_MVA_SYSTEM_ID INTEGER 0.25 97 0 0 85 1516637
999993522 0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 111 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 111 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
111, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1516637 ', '999993522 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 112


CH_BUY_BACK_CODE INTEGER 0.2 97 0 0 85 1516670
999993523 0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 112 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 112 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
112, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1516670 ', '999993523 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 113


CH_RISK_RULING_CODE INTEGER 0.25 97 0 0 85
1516703 999993524 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 113 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 113 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
113, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1516703 ', '999993524 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 114


CH_VEHICLE_GROUP_CODE INTEGER 0.25 97 0 0 85
1275277 999993637 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 114 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 114 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
114, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1275277 ', '999993637 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 115


CH_DATA_SUPPLIER_VEHICLE_CODE INTEGER 0.25 97 0 0 85
1237503 999993638 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 115 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 115 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
115, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1237503 ', '999993638 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 116


CH_OWN_DAMAGE_RISK_ID INTEGER 0.25 97 0 0 85
1237536 999993641 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 116 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 116 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
116, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1237536 ', '999993641 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 117


CH_UFWT_TYPE_ID INTEGER 0.25 97 0 0 85 1237371
999993634 0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 117 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 117 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
117, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1237371 ', '999993634 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 118


CH_MVA_SETTLEMENT_ID INTEGER 0.25 97 0 0 85
1237404 999993635 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 118 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 118 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
118, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1237404 ', '999993635 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 119


LC_CUSTOMER_DRIVER_ID NATIONAL CHARACTER VARYING(125) 0.2 1022 0
0 85
Not Supplied by OpCo
22 60310 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.2 as float))
WHERE
attnum = 119 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 119 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
119, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 60310
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 120


VEH_CO2_LEVEL_COMBINED NUMERIC(6,0) 0.0714286 1754 0 0 85
0 14
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0714286 as float))
WHERE
attnum = 120 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 120 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
120, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '14
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 121


CH_SECONDARY_FUEL_TYPE INTEGER 0.25 97 0 0 85 1560
999993517 0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 121 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 121 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
121, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1560 ', '999993517 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 122


CH_NUMBER_OF_FORWARD_GEARS INTEGER 0.1 97 0 0 85
1199505 999993516 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.1 as float))
WHERE
attnum = 122 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 122 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
122, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1199505 ', '999993516 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 123


VEH_INDICATOR_NEW_MODEL CHARACTER(1) 1 1058 3.31928e-05 0 85

0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 123 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 123 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
123, 1058, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 124


VEH_MODEL_END_DATE DATE 1 1095 3.31928e-05 0 85 2000-
01-01
9999-12-31
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 124 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 124 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
124, 1095, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 125


VEH_MODEL_INTRO_DATE DATE 1 1095 3.31928e-05 0 85 0001-
01-01
2000-01-01
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 125 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 125 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
125, 1095, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 126


VEH_MODEL_FACELIFT_INTRO_DATE DATE 1 1095 3.31928e-05 0 85
0001-01-01
2000-01-01
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 126 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 126 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
126, 1095, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 127


VEH_MODEL_FACELIFT_END_DATE DATE 0.5 1095 3.31928e-05 0 85
0001-01-01
9999-12-31
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 127 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 127 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
127, 1095, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 128


VEH_NUMBER_OF_SEATS NUMERIC(2,0) 1 1754 3.31928e-05 0 85
0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 128 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 128 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
128, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 129


LC_DRIVER_SET_SEND_DATE DATE 1 1095 3.31928e-05 0 85 0001-
01-01
2000-01-01
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 129 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 129 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
129, 1095, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 130


LC_INTEREST_LOSS_AT_TERM NUMERIC(11,2) 1 1754 3.31928e-05 0
85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 130 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 130 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
130, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 131


LC_INTEREST_LOSS_AT_TERM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 131 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 131 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
131, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 132


LC_MVA_FEE_MIN_OVERMILEAGE NUMERIC(17,7) 1 1754 3.31928e-05 0
85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 132 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 132 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
132, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 133


LC_MVA_FEE_MIN_OVERMILEAGE_EUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 133 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 133 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
133, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 134


LC_MVA_FEE_MID_OVERMILEAGE NUMERIC(17,7) 1 1754 3.31928e-05 0
85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 134 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 134 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
134, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 135


LC_MVA_FEE_MID_OVERMILEAGE_EUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 135 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 135 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
135, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 136


LC_MVA_FEE_MAX_OVERMILEAGE NUMERIC(17,7) 1 1754 3.31928e-05 0
85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 136 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 136 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
136, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 137


LC_MVA_FEE_MAX_OVERMILEAGE_EUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 137 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 137 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
137, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 138


LC_MVAREPAY_MINUNDERMILEAGE NUMERIC(17,7) 1 1754 3.31928e-05 0
85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 138 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 138 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
138, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 139


LC_MVAREPAY_MINUNDERMILEAGEEUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 139 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 139 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
139, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 140


LC_MVAREPAY_MIDUNDERMILEAGE NUMERIC(17,7) 1 1754 3.31928e-05 0
85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 140 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 140 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
140, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 141


LC_MVAREPAY_MIDUNDERMILEAGEEUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 141 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 141 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
141, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 142


LC_MVAREPAY_MAXUNDERMILEAGE NUMERIC(17,7) 1 1754 3.31928e-05 0
85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 142 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 142 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
142, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 143


LC_MVAREPAY_MAXUNDERMILEAGEEUR NUMERIC(17,7) 1 1754 0 0
85 0.0000000 0.0000000
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 143 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 143 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
143, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.0000000 ', '0.0000000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 144


LC_MVA_THRESHHIGH_OVER_MILEAGE NUMERIC(7,0) 1 1754 3.31928e-05
0 85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 144 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 144 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
144, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 145


LC_MVA_THESHHIGH_UNDER_MILEAGE NUMERIC(7,0) 1 1754 3.31928e-05
0 85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 145 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 145 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
145, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 146


LC_MVA_THRESHLOW_UNDER_MILEAGE NUMERIC(7,0) 1 1754 3.31928e-05
0 85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 146 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 146 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
146, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 147


LC_MVA_THRESHLOW_OVER_MILEAGE NUMERIC(7,0) 1 1754 3.31928e-05 0
85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 147 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 147 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
147, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 148


LC_TERMINATION_PROCESS_DATE DATE 0.5 1095 3.31928e-05 0 85
0001-01-01
9999-12-31
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 148 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 148 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
148, 1095, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 149


LC_CREATION_DATE_LEASECONTRACT DATE 1 1095 3.31928e-05 0 85
0001-01-01
2000-01-01
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 149 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 149 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
149, 1095, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 150


LC_FORMAL_EXTENSION_APPLICABLE NATIONAL CHARACTER VARYING(125)
0.333333 1022 3.31928e-05 0 85
Not Supplied by OpCo
22 90413 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 150 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 150 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
150, 1022, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 90413
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 151


LC_ACTIVATION_DATE_FORMAL_EXT DATE 1 1095 3.31928e-05 0 85
0001-01-01
2000-01-01
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 151 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 151 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
151, 1095, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 152


LC_CONTRACT_DURATION_FORMAL_EX NUMERIC(3,0) 1 1754 3.31928e-05
0 85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 152 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 152 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
152, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 153


LC_CONTRACT_MILEAGE_FORMAL_EXT NUMERIC(7,0) 1 1754 3.31928e-05
0 85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 153 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 153 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
153, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 154


LC_RESIDUAL_VALUE_FORM_EXT NUMERIC(11,2) 1 1754 3.31928e-05 0
85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 154 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 154 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
154, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 155


LC_RESIDUAL_VALUE_FORM_EXT_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 155 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 155 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
155, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 156


LC_CAR_INSPEC_ENG_DAM_AM NUMERIC(11,2) 1 1754 3.31928e-05 0
85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 156 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 156 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
156, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 157


LC_CAR_INSPEC_ENG_DAM_AM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 157 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 157 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
157, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 158


LC_CAR_INSPEC_EXT_DAM_AM NUMERIC(11,2) 1 1754 3.31928e-05 0
85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 158 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 158 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
158, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 159


LC_CAR_INSPEC_EXT_DAM_AM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 159 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 159 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
159, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 160


LC_CAR_INSPEC_INT_DAM_AM NUMERIC(11,2) 1 1754 3.31928e-05 0
85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 160 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 160 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
160, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 161
LC_CAR_INSPEC_INT_DAM_AM_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 161 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 161 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
161, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 162
LC_MVA_UM_LIMIT_PERCENTAGE NUMERIC(6,3) 1 1754 3.31928e-05 0
85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 162 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 162 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
162, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);
-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 163
LC_MVA_OM_LIMIT_PERCENTAGE NUMERIC(6,3) 1 1754 3.31928e-05 0
85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 163 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 163 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
163, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 164


LC_MVA_UM_FACTOR NUMERIC(6,3) 1 1754 3.31928e-05 0 85
0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 164 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 164 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
164, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 165


LC_MVA_OM_FACTOR NUMERIC(6,3) 1 1754 3.31928e-05 0 85
0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 165 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 165 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
165, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 166


CH_TYRE_WIDTH_FRONT INTEGER 0.25 97 0 0 85
1600473 999993675 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 166 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 166 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
166, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1600473 ', '999993675 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 167


CH_TYRE_WIDTH_REAR INTEGER 0.25 97 0 0 85
1600473 999993520 0 0
22900546 10266453
UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 167 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 167 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
167, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1600473 ', '999993520 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 168


CH_TYRE_RIM_DIAM_FRONT INTEGER 0.25 97 0 0 85
1600474 999993677 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 168 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 168 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
168, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1600474 ', '999993677 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 169


CH_TYRE_RIM_DIAM_REAR INTEGER 0.25 97 0 0 85
1600474 999993521 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 169 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 169 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
169, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1600474 ', '999993521 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 170


VEH_CONSUMER_PRICE NUMERIC(11,2) 0.000402414 1754 3.31928e-05 0
85 0 280859.61
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000402414 as float))
WHERE
attnum = 170 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 170 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
170, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '280859.61
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 171


VEH_CONSUMER_PRICE_EUR NUMERIC(11,2) 0.000402414 1754 0 0 85
0.00 280859.61
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000402414 as float))
WHERE
attnum = 171 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 171 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
171, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '280859.61
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 172


VEH_LUXURY_TAX_AM NUMERIC(11,2) 0.00311526 1754 3.31928e-05 0 85
0 32883.94
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00311526 as float))
WHERE
attnum = 172 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 172 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
172, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '32883.94
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 173


VEH_LUXURY_TAX_AM_EUR NUMERIC(11,2) 0.00311526 1754 0 0 85
0.00 32883.94
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00311526 as float))
WHERE
attnum = 173 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 173 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
173, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '32883.94
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 174


VEH_ENROLMENT_TAX_AM NUMERIC(11,2) 0.000183117 1754 3.31928e-05 0
85 -2283.14 52165.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000183117 as float))
WHERE
attnum = 174 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 174 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
174, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'-2283.14 ', '52165.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 175


VEH_ENROLMENT_TAX_AM_EUR NUMERIC(11,2) 0.000183117 1754 0 0
85 -2283.14 52165.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000183117 as float))
WHERE
attnum = 175 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 175 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
175, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-2283.14 ', '52165.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 176


LC_UFWT_TOTAL_ASSESSED_AM NUMERIC(11,2) 7.89204e-05 1754 3.31928e-05
0 85 0
711077.00 0 0 22900546
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (7.89204e-05 as float))
WHERE
attnum = 176 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 176 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
176, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '711077.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 177


LC_UFWT_TOTAL_ASSESSED_AM_EUR NUMERIC(11,2) 7.89204e-05 1754 0 0
85 0.00 711077.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (7.89204e-05 as float))
WHERE
attnum = 177 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 177 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
177, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '711077.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 178


LC_RESIDUAL_VALUE_BASE NUMERIC(11,2) 0.000100786 1754 3.31928e-05 0
85 0 245569.70
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000100786 as float))
WHERE
attnum = 178 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 178 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
178, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'0 ', '245569.70
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 179


LC_RESIDUAL_VALUE_BASE_EUR NUMERIC(11,2) 0.000100786 1754 0 0
85 0.00 245569.70
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000100786 as float))
WHERE
attnum = 179 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 179 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
179, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '245569.70
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 180


LC_INSURANCE_LOSS_RATIO NUMERIC(17,5) 0.000101616 1754 3.31928e-05 0
85 -1108.36000 562668.25000
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000101616 as float))
WHERE
attnum = 180 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 180 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
180, 1754, (CAST(3.31928e-05 as float)),
(CAST(0 as float)), '85', '',
'-1108.36000 ', '562668.25000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 181


LC_LAST_KNOWN_MILEAGE NUMERIC(7,0) 5.30195e-05 1754 0 0 85
0 382000
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (5.30195e-05 as float))
WHERE
attnum = 181 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 181 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
181, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '382000
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 182


LC_LAST_KNOWN_MILEAGE_DATE DATE 0.000405186 1095 0 0 85
0001-01-01
2017-06-12
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000405186 as float))
WHERE
attnum = 182 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 182 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
182, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2017-06-12
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 183


LC_CONTRACT_DURATION_FP NUMERIC(3,0) 1 1754 0 0 85
0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 183 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 183 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
183, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 184


LC_CONTRACT_MILEAGE_FP NUMERIC(7,0) 1 1754 0 0 85
0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 184 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 184 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
184, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 185


LC_MONTHLY_LEASEINSTALM_FP NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 185 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 185 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
185, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 186


LC_BUDGETED_INVEST_AM_FP NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 186 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 186 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
186, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 187


LC_MONTHLY_LEASEINSTALM_FP_EUR NUMERIC(11,2) 1 1754 0 0
85 0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 187 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 187 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
187, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 188


LC_BUDGETED_INVEST_AM_FP_EUR NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 188 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 188 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
188, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 189


LC_START_DATE_LEASECONTRACT_FP DATE 1 1095 0 0 85
0001-01-01
2000-01-01
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 189 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 189 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
189, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 190


LC_END_DATE_LEASECONTRACT_FP DATE 1 1095 0 0 85 2000-
01-01
9999-12-31
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 190 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 190 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
190, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 191


OR_CREATION_DATE_ORDER DATE 1 1095 0 0 85 0001-01-01
2000-01-01
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 191 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 191 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
191, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 192


LC_REGISTRATIONDATE_START DATE 1 1095 0 0 85 0001-
01-01
2000-01-01
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 192 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 192 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
192, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 193


LC_REGISTRATIONDT_TERMINATION DATE 0.5 1095 0 0 85 0001-
01-01
9999-12-31
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 193 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 193 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
193, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 194


LC_MVA_DEPR_TO_BE_INVOICED NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 194 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 194 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
194, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 195


LC_MVA_RM_TO_BE_INVOICED NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 195 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 195 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
195, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 196


LC_MVA_TYRES_TO_BE_INVOICED NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 196 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 196 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
196, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 197


LC_UFWT_TO_BE_INVOICED NUMERIC(11,2) 1 1754 0 0 85
0.00 0.00
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 197 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 197 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
197, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0.00 ', '0.00
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 198


LC_INVOICINGENDDATE_LC DATE 1 1095 0 0 85 2000-01-01
9999-12-31
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 198 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 198 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
198, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 199


CH_ACTIVATIONTYPE_LC INTEGER 0.25 97 0 0 85
1669769 999993550 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 199 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 199 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
199, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1669769 ', '999993550 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 200


CH_DEACTIVATIONTYPE_LC INTEGER 0.25 97 0 0 85
1669801 999993551 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.25 as float))
WHERE
attnum = 200 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 200 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
200, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1669801 ', '999993551 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 201


LC_LASTRECOGNIZEDOBJMILEAGE NUMERIC(7,0) 0.000124363 1754 0.580476
0 85 0 278012
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000124363 as float))
WHERE
attnum = 201 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 201 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
201, 1754, (CAST(0.580476 as float)),
(CAST(0 as float)), '85', '',
'0 ', '278012
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 202


LC_LASTRECOGNIZEDOBJMILEAGEDT DATE 0.00142045 1095 0.580476 0 85
0001-01-01
2017-06-22
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00142045 as float))
WHERE
attnum = 202 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 202 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
202, 1095, (CAST(0.580476 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2017-06-22
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 203


CH_USAGE_BY_CUSTOMER_ID INTEGER 0.333333 97 0 0 85
1680994 999993583 0 0
22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 203 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 203 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
203, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'1680994 ', '999993583 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 204


LC_LOCAL_KEY_BUSINESS_UNIT NATIONAL CHARACTER VARYING(125) 0.5 1022
0.999934 0 85
Not Supplied by OpCo
22 41 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 204 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 204 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
204, 1022, (CAST(0.999934 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 41
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 205


LC_BUSINESS_UNIT_NAME NATIONAL CHARACTER VARYING(125) 0.5 1022
0.999934 0 85
Not Supplied by OpCo
22 41 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 205 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 205 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
205, 1022, (CAST(0.999934 as float)),
(CAST(0 as float)), '85', '',
'
', 'Not Supplied by OpCo
', 22, 41
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 206


LC_DRIVER_FIRST_NAME NATIONAL CHARACTER VARYING(125) 0.00032041 1022
0 0 85
οι NIGICO
60 470208 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00032041 as float))
WHERE
attnum = 206 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 206 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
206, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'οι NIGICO
', 60, 470208
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 207


LC_DRIVER_LAST_NAME NATIONAL CHARACTER VARYING(125) 7.21917e-05 1022
0 0 85
κος
53 548168 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (7.21917e-05 as float))
WHERE
attnum = 207 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 207 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
207, 1022, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'κος
', 53, 548168
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 208


LC_SHORT_TERM_RENTAL_INDICATOR CHARACTER(1) 0.5 1058 0 0
85
N
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 208 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 208 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
208, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 209


LC_ALLOCATION_STATUS_INDICATOR CHARACTER(1) 0.333333 1058 0
0 85
Y
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 209 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 209 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
209, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 210


LC_NUMBER_OF_TYRES_IN_CONTRACT NUMERIC(2,0) 0.037037 1754 0
0 85 -4 60
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.037037 as float))
WHERE
attnum = 210 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 210 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
210, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'-4 ', '60
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 211


TELEMATICS_DEV_INSTALL_FLAG CHARACTER(1) 0.5 1058 0 0 85

N
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.5 as float))
WHERE
attnum = 211 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 211 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
211, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'N
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 212


TELEMATICS_DEV_INSTALL_DATE DATE 1 1095 0 0 85 0001-
01-01
2000-01-01
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 212 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 212 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
212, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 213


TELEMATICS_DEV_DEINSTALL_DATE DATE 1 1095 0 0 85 2000-
01-01
9999-12-31
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 213 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 213 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
213, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'2000-01-01
', '9999-12-31
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 214


PRECEDING_LEASECONTRVEHICLE_ID BIGINT 0.000226449 412 0 0
85 0 999999999999999999 0
0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000226449 as float))
WHERE
attnum = 214 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 214 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
214, 412, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '999999999999999999 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 215


LC_RENEWAL_INDICATOR CHARACTER(1) 0.333333 1058 0 0 85

Y
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 215 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 215 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
215, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 216


LC_RELEASING_INDICATOR CHARACTER(1) 0.333333 1058 0 0 85

Y
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 216 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 216 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
216, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 217


LC_RELEASING_START_DATE DATE 0.00641026 1095 0 0 85 0001-
01-01
2017-04-01
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00641026 as float))
WHERE
attnum = 217 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 217 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
217, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2017-04-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 218


CH_ORDER_STATUS_ID INTEGER 0.1 97 0 0 85 0
999993574 0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.1 as float))
WHERE
attnum = 218 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 218 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
218, 97, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '999993574 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 219


OR_ACTUAL_DELIVERY_DATE DATE 0.00034626 1095 0 0 85 0001-
01-01
2017-06-12
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00034626 as float))
WHERE
attnum = 219 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 219 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
219, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2017-06-12
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 220


OR_ORDER_RECEIPT_CONFIRM_DATE DATE 0.00162075 1095 0 0 85
0001-01-01
2017-12-06
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.00162075 as float))
WHERE
attnum = 220 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 220 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
220, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2017-12-06
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 221


OR_CERTIFICATE_RECEIPT_DATE DATE 0.000355492 1095 0 0 85
0001-01-01
2017-06-12
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000355492 as float))
WHERE
attnum = 221 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 221 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
221, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2017-06-12
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 222


OR_FIRSTDRIVERAPPOINTMENT_DATE DATE 1 1095 0 0 85
0001-01-01
2000-01-01
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 222 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 222 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
222, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2000-01-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 223


OR_DRIVER_APPOINTMENT_DATE DATE 0.000434028 1095 0 0 85
0001-01-01
2090-08-05
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.000434028 as float))
WHERE
attnum = 223 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 223 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
223, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2090-08-05
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 224


OR_ORDER_CANCELLATION_DATE DATE 0.0126582 1095 0 0 85
0001-01-01
2017-06-01
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0126582 as float))
WHERE
attnum = 224 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 224 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
224, 1095, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0001-01-01
', '2017-06-01
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 225


OR_NUMBEROF_DRIVERAPPOINTMENTS NUMERIC(2,0) 0.0909091 1754 0
0 85 0 11
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0909091 as float))
WHERE
attnum = 225 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 225 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
225, 1754, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'0 ', '11
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 226


OR_ADVANCE_PURCHASE_INDICATOR CHARACTER(1) 0.333333 1058 0 0
85
Y
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.333333 as float))
WHERE
attnum = 226 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 226 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
226, 1058, (CAST(0 as float)),
(CAST(0 as float)), '85', '',
'
', 'Y
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 227


LC_DOWNPAYMENT_INVESTMENT_AM NUMERIC(11,2) 1 1754 1 0 85
0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 227 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));
DELETE FROM _t_statistic
WHERE
staattnum = 227 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
227, 1754, (CAST(1 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._BTS_22900546 f 0 30127 332 228


LC_DOWNPAYMENT_INVESTMENT_AM_EUR NUMERIC(11,2) 1 1754 1 0
85 0 0
0 0 22900546 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (1 as float))
WHERE
attnum = 228 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

DELETE FROM _t_statistic


WHERE
staattnum = 228 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
));

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4962 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^LEASE_CONTRACT_VEHICLE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
)),
228, 1754, (CAST(1 as float)),
(CAST(0 as float)), '85', '',
'0 ', '0
', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_DELIVERED_SERVICE VERSION 1 -------------

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 1
LEASE_SERVICE_ID INTEGER 0 97 0 0 16554
0 0 11504816 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 0,
relrefs = 0,
relpages = 0
WHERE
relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1;
UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 2 SERVICE_DATE
DATE 0 1095 0 0 16554

0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 3
LEASE_CONTRACT_VEHICLE_ID BIGINT 0 412 0 0 16554
0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
3, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 4
SUPPLIER_INVOICE_ID BIGINT 0 412 0 0 16554
0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 4 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 4 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
4, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 5 AMOUNT_TYPE
CHARACTER(1) 0 1058 0 0 16554

0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 5 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 5 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
5, 1058, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 6
DELIVERED_SERVICE_AMOUNT NUMERIC(11,2) 0 1754 0 0 16554

0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 6 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 6 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
6, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 7
DELIVERED_SERVICE_AMOUNT_EUR NUMERIC(11,2) 0 1754 0 0 16554

0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 7 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 7 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
7, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 8
SERVICE_MILEAGE NUMERIC(7,0) 0 1754 0 0 16554
0 0 11504816
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 8 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 8 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
8, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 9
SERVICE_SUPPLIER_ID BIGINT 0 412 0 0 16554
0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 9 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 9 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
9, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 10
SERVICE_MILEAGE_KM NUMERIC(7,0) 0 1754 0 0 16554
0 0 11504816
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 10 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 10 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
10, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 11
SERVICE_QUANTITY NUMERIC(11,2) 0 1754 0 0 16554
0 0 11504816
10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 11 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 11 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
11, 1754, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 12 LOAD_DATE
DATE 0 1095 0 0 16554

0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 12 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
DELETE FROM _t_statistic
WHERE
staattnum = 12 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
12, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 13
_DROPPED_2_SERVICE_NUMBER NATIONAL CHARACTER VARYING(125) 0 1022
0 0 16554

0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 13 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 13 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
13, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 14 SERVICE_ID
BIGINT 0 412 0 0 16554
0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 14 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
DELETE FROM _t_statistic
WHERE
staattnum = 14 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
14, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 15
_DROPPED_2_LOCAL_KEY_SERVICE NATIONAL CHARACTER VARYING(125) 0 1022
0 0 16554

0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 15 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
DELETE FROM _t_statistic
WHERE
staattnum = 15 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
15, 1022, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 16
CH_SERVICE_TYPE_ID INTEGER 0 97 0 0 16554
0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 16 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 16 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
16, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 17
CH_SUBJECT_TYPE_ID INTEGER 0 97 0 0 16554
0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 17 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 17 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
17, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 18
CH_SUBJECT_BRAND_ID INTEGER 0 97 0 0 16554
0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 18 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 18 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
18, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 19
BOOK_PERIOD_DATE DATE 0 1095 0 0 16554

0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 19 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 19 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
19, 1095, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
'
', '
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 20
SERVICE_TYPE_ID INTEGER 0 97 0 0 16554
0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 20 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 20 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
20, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 21 VEHICLE_AGE
INTEGER 0 97 0 0 16554
0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 21 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 21 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);
INSERT INTO _t_statistic (
starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
21, 97, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_1 t 0 0 0 22 DAMAGE_ID
BIGINT 0 412 0 0 16554
0 0 11504816 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0 as float))
WHERE
attnum = 22 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

DELETE FROM _t_statistic


WHERE
staattnum = 22 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 1),
22, 412, (CAST(0 as float)),
(CAST(0 as float)), '16554', ' ',
' ', ' ', 0, 0
);

------------- LPGR_DMA_ENTITY_REPORT2.F_DELIVERED_SERVICE VERSION 2 -------------

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_2 f 0 795217 832 1


LEASE_SERVICE_ID INTEGER 0.0204082 97 0 0 341
1593424 1593502 0 0
13958823 10266453
\echo -n .

UPDATE _t_class
SET
reltuples = 795217,
relrefs = 0,
relpages = 832
WHERE
relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2;

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0204082 as float))
WHERE
attnum = 1 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

DELETE FROM _t_statistic


WHERE
staattnum = 1 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
1, 97, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'1593424 ', '1593502 ', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_2 f 0 795217 832 2


SERVICE_DATE DATE 0.0010917 1095 0 0 341 0001-01-01
2017-12-22
0 0 13958823 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (0.0010917 as float))
WHERE
attnum = 2 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
DELETE FROM _t_statistic
WHERE
staattnum = 2 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2),
2, 1095, (CAST(0 as float)),
(CAST(0 as float)), '341', '',
'0001-01-01
', '2017-12-22
', 0, 0
);

-- LPGR_DMA_ENTITY_REPORT2._TV_11505729_2 f 0 795217 832 3


LEASE_CONTRACT_VEHICLE_ID BIGINT 3.52361e-05 412 0 0 341
2165924346 2171729639 0 0
13958823 10266453

UPDATE _t_attribute
SET
attdispersion = (CAST (3.52361e-05 as float))
WHERE
attnum = 3 and
attrelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);
DELETE FROM _t_statistic
WHERE
staattnum = 3 and
starelid = (select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.oid and o.objid = c.oid and
c.relname = ^F_DELIVERED_SERVICE^ and o.objschemaoid = (
select objid from _t_object where objclass = 4941 and objname =
^LPGR_DMA_ENTITY_REPORT2^ and objdb = (
select _t_database.oid from _t_database where datname = ^LPGP_D_ENTITY^
)
)
) and relversion = 2);

INSERT INTO _t_statistic (


starelid,
staattnum, staop, stanullfrac,
stacommonfrac, starecent, stacommonval,
staloval, stahival, stamaxlen, stasumlen
) VALUES (
(select max(relfilenode) from _t_class where relfilenode in (
select refobjid from _t_depend d, _t_class c, _t_object o
where d.refclassid = 4963 and d.objid = c.o

You might also like