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

PPI or NUSI? - response (5) by Nishant.Bhardwaj

$
0
0

Thanks dieter & Raj,

 

 

 

Just to elaborate more ,mentioning below the example-->

 

 

 

Create table Orders

 

(orderid number NOT NULL,

 

order_yr_mon integer ,

 

order name varchar(100),

 

city varchar(100)

 

)

 

primary index (orderid)

 

PARTITION BY RANGE_N(Order_year_mon BETWEEN DATE '2009-12-06' AND DATE '2020-12-31' EACH INTERVAL '1' month);

 

Now if users query like this

 

Select * from Order where order_year_mon ='201207' (with out order id)

 

so my question is would this query would give the partiton elimination or as efficient if in case users query with orderid and order_year_mon both?

 

 

As users are insisting that they will query with order_year_mon only. . 

 

Your comments on above pls.

 

thanks!

 

cheers!


Viewing all articles
Browse latest Browse all 14773

Trending Articles