1

How the data will be distributed among the AMPs if the records are inserted to a NUPI table from a UPI table? Will the data be copied and retained in the same AMP as that of original one?

AKSHAYAA VAIDYANATHAN
  • 2,715
  • 7
  • 30
  • 51

1 Answers1

2

In Teradata rows are distributed by the hash of the Primary Index columns, there's no difference if the PI is Unique or Non-Unique.

To check on which AMP a value will be stored you can use the built-in hash functions:

select hashamp(hashbucket(hashrow('any value(s)/column(s)')));
dnoeth
  • 59,503
  • 4
  • 39
  • 56