17.10 - Example: Which AMPs Contain the Rows of a Table - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-28
dita:mapPath
SQL_Functions__Expressions__and_Predicates.Upload_071421/djk1612415574830.ditamap
dita:ditavalPath
SQL_Functions__Expressions__and_Predicates.Upload_071421/wrg1590696035526.ditaval
dita:id
kby1472250656485

The following query shows which AMPs contain the rows of a table.

sel col1, hashamp(hashbucket(hashrow(col1)) 
          map = map1count3 colocate using u1_tabm1c3) 
          (named "which amp?") 
from u1.tabm1c3 order by 1;

       col1   which amp?
-----------  -----------
          0            3
          1            2
          2            3
          3            2
          4            2
          5            2
          6            3
          7            2
          8            3
          9            1