25.10.2016 Views

SAP HANA Predictive Analysis Library (PAL)

sap_hana_predictive_analysis_library_pal_en

sap_hana_predictive_analysis_library_pal_en

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

INSERT INTO <strong>PAL</strong>_IQR_TESTDT_TBL VALUES ('P1', 10);<br />

INSERT INTO <strong>PAL</strong>_IQR_TESTDT_TBL VALUES ('P2', 11);<br />

INSERT INTO <strong>PAL</strong>_IQR_TESTDT_TBL VALUES ('P3', 10);<br />

INSERT INTO <strong>PAL</strong>_IQR_TESTDT_TBL VALUES ('P4', 9);<br />

INSERT INTO <strong>PAL</strong>_IQR_TESTDT_TBL VALUES ('P5', 10);<br />

INSERT INTO <strong>PAL</strong>_IQR_TESTDT_TBL VALUES ('P6', 24);<br />

INSERT INTO <strong>PAL</strong>_IQR_TESTDT_TBL VALUES ('P7', 11);<br />

INSERT INTO <strong>PAL</strong>_IQR_TESTDT_TBL VALUES ('P8', 12);<br />

INSERT INTO <strong>PAL</strong>_IQR_TESTDT_TBL VALUES ('P9', 10);<br />

INSERT INTO <strong>PAL</strong>_IQR_TESTDT_TBL VALUES ('P10', 9);<br />

INSERT INTO <strong>PAL</strong>_IQR_TESTDT_TBL VALUES ('P11', 1);<br />

INSERT INTO <strong>PAL</strong>_IQR_TESTDT_TBL VALUES ('P12', 11);<br />

INSERT INTO <strong>PAL</strong>_IQR_TESTDT_TBL VALUES ('P13', 12);<br />

INSERT INTO <strong>PAL</strong>_IQR_TESTDT_TBL VALUES ('P14', 13);<br />

INSERT INTO <strong>PAL</strong>_IQR_TESTDT_TBL VALUES ('P15', 12);<br />

DROP TABLE #<strong>PAL</strong>_CONTROL_TBL;<br />

CREATE LOCAL TEMPORARY COLUMN TABLE #<strong>PAL</strong>_CONTROL_TBL (<br />

"NAME" VARCHAR(100),<br />

"INTARGS" INTEGER,<br />

"DOUBLEARGS" DOUBLE,<br />

"STRINGARGS" VARCHAR (100)<br />

);<br />

INSERT INTO #<strong>PAL</strong>_CONTROL_TBL VALUES ('MULTIPLIER', null, 1.5, null);<br />

DROP TABLE <strong>PAL</strong>_IQR_QQ_TBL;<br />

CREATE COLUMN TABLE <strong>PAL</strong>_IQR_QQ_TBL LIKE <strong>PAL</strong>_IQR_QQ_T;<br />

DROP TABLE <strong>PAL</strong>_IQR_RESULTS_TBL;<br />

CREATE COLUMN TABLE <strong>PAL</strong>_IQR_RESULTS_TBL LIKE <strong>PAL</strong>_IQR_RESULT_T;<br />

CALL "DM_<strong>PAL</strong>".<strong>PAL</strong>_IQR_PROC(<strong>PAL</strong>_IQR_TESTDT_TBL, "#<strong>PAL</strong>_CONTROL_TBL",<br />

<strong>PAL</strong>_IQR_QQ_TBL, <strong>PAL</strong>_IQR_RESULTS_TBL) with overview;<br />

SELECT * FROM <strong>PAL</strong>_IQR_QQ_TBL;<br />

SELECT * FROM <strong>PAL</strong>_IQR_RESULTS_TBL;<br />

Expected Result<br />

<strong>PAL</strong>_IQR_TBL:<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Predictive</strong> <strong>Analysis</strong> <strong>Library</strong> (<strong>PAL</strong>)<br />

<strong>PAL</strong> Functions P U B L I C 447

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!