How to find No. of Records present in Each AMP or a Node
for a given Table through SQL?

Answers were Sorted based on User's Feedback



How to find No. of Records present in Each AMP or a Node for a given Table through SQL?..

Answer / n

Sel HASHAMP(HASHBUCKET(HASHROW(PRIMARY_INDEX_COLUMNS)))
AS AMP_NO,
COUNT(*)
From DATABASENAME.TABLE_NAME
GROUP BY 1;

Is This Answer Correct ?    30 Yes 2 No

How to find No. of Records present in Each AMP or a Node for a given Table through SQL?..

Answer / yuvaevergreen

Adding to the above,
hashrow gives the unique row hash (23 bit value) for any
value given as a parameter.
hashbucket gives the bucket value (16 bit) for any hashrow.
hashmap gives the ampno for the hashbucket.
Since, PI must be defined for any table, this hashing
function can be used to determine the ampno and the no of
rows in the amps.

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More Teradata Interview Questions

What are tpump utility limitations?

0 Answers  


what is sysdba and sysdbc ? which has high priority ?

0 Answers   Wipro,


What are the various indexes in teradata?

0 Answers  


what are the day to day activities of teradata DBA ?

0 Answers   TCS,


If RDBMS is halted what will you do ?

0 Answers   Teradata,






What is spool space? Why do you get spool space errors? How do trouble-shoot them?

0 Answers  


Why managing the data is important?

0 Answers  


What is meant by a dispatcher?

0 Answers  


What are the frequently used data types in teradata?

0 Answers  


What are the different softwares used with their functions in teradata?

0 Answers  


what is DYNAMIC SQL in TD?

1 Answers   IBM,


How to eliminate product joins in a teradata sql query?

0 Answers  


Categories