Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Slow left join query - response (4) by nyemul

$
0
0
CREATE TABLE MISC.table1 (  sub_sk              NUMERIC(8) NOT NULL   TITLE 'sub_sk' ,  sub_id              VARCHAR(32) NOT NULL   TITLE 'sub_id' ,  PROCESSED_DTTM       TIMESTAMP(0) NOT NULL   TITLE 'PROCESSED_DTTM') primary index(sub_sk) ; CREATE TABLE misc.table2 (  contrib_sk           NUMERIC(8) NOT NULL   TITLE 'contrib_sk',  PROD_SK              NUMERIC(8) NOT NULL   TITLE 'PROD_SK' compress 0.00,  task_sk           NUMERIC(8) NOT NULL   TITLE 'task_sk' compress 0.00,  EVENT_TYPE_SK        NUMERIC(8) NOT NULL   TITLE 'EVENT_TYPE_SK' compress 0.00,  USG_DT_SK            NUMERIC(8) NOT NULL   TITLE 'USG_DT_SK', ... )  PRIMARY INDEX (contrib_sk) PARTITION BY RANGE_N(CAST((USG_DT_SK ) AS INTEGER) BETWEEN 17901  AND 17907  EACH 1 , 17908  AND 17914  EACH 1 , ... ) Stats are refreshed.  

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>