Interview Questions   Tutorials   Discussions   Programs   

Teradata - How to find number of records present in Each AMP or a Node for a given Table through SQL?




1442
views
asked mar September 20, 2014 06:38 AM  

How to find number of records present in Each AMP or a Node for a given Table through SQL?


           

1 Answers



 
answered By vishnoiprem   0  
Select HASHAMP(HASHBUCKET(HASHROW(PRIMARY_INDEX_COLUMNS))) AS AMP_NO,COUNT(*) from DATABASENAME.TABLE_NAME GROUP BY 1
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert