All Forums Database
rahularora 1 post Joined 09/14
29 Sep 2014
Information about single table join index and NUSI and USI

Hi All,
1. Single table join index:- As per my understanding, single table join index gives us flexibility to change PI of the table and we use only one table i.e no join with other table is required.
My question is in Single table join index, does joing between the tables takes place or not as i have read in forum that only one table is used?? Description with example will be helpfull for me.
2. In USI and NUSI, can both table (base and sub table) reside in same amp. If yes, how??
3. Since we don't have dense rank function available in Teradata, what is its alternative??
I have referred earlier posts but i'm not able to understand above questions clearly.
Many thanks in advance,

Raja_KT 1246 posts Joined 07/09
08 Oct 2014

A column subset of a very large base table defined with a NUPI defined on a join key that causes its rows to be hashed to the same AMP as another very large table with a primary index defined on that same join key and to which it is frequently joined.Useful for resolving joins on large tables without having to redistribute the joined rows across the AMPs.

you cannot query or update them directly STJI.


USI access is usually a two-AMP operation because Teradata Database typically distributes a USI row to a different AMP than the base table row the index points to. If the system distributes the USI subtable row to the same AMP as the base table row it points to, then only one AMP is accessed. You know NUSI .


Dense_rank is very much there in 14.



Raja K Thaw
My wiki:
Street Children suffer not by their fault. We can help them if we want.

You must sign in to leave a comment.