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

SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-30
dita:mapPath
tpt1555966086716.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1145
lifecycle
previous
Product Category
Teradata Vantageā„¢

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

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

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