Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

About Partitioned Primary Index (PPI) - response (3) by Kbos

$
0
0

Hi Vikas, thanks for ur response...So, what You say is that If I add a new range by  People_Subscription_Start_DT, Do I need to include People_Subscription_Start_DT as part of PI as it follows? Every time a partition is created on a table the field MUST be part of the PI?

1

2

3

4

5

6

7

8

9

10

11

12

CREATEMULTISET TABLETR_PEOPLE_ACT ,NOFALLBACK ,

     NOBEFORE JOURNAL,

     NOAFTERJOURNAL,

     CHECKSUM = DEFAULT

     (

      People_Subscription_Start_DT DATEFORMAT 'YYYY-MM-DD',

      People_ID Integer,

      People_Subscription_End_DT DATEFORMAT 'YYYY-MM-DD',

      People_Type Varchar(8)

PRIMARYINDEXPI_TR_PPL_ACT ( People_ID, People_Subscription_Start_DT) 

PARTITION BYRANGE_N(People_Subscription_Start_DT  BETWEENDATE'2012-09-01'ANDDATE'2013-12-31'EACH INTERVAL '1'DAY,

 NORANGE);

 

 


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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