Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Comment whether bottleneck is an error or not.

0 Answers  


what are the file sizes in your project?

2 Answers  


what is the difference between bpo and call centre?

2 Answers   American Solutions,


Highlight the differences between Primary Key and Primary Index.

0 Answers  


In the Primary Index, what is the score of AMPs that are actively involved?

0 Answers  


How is the teradata different from oracle?

0 Answers  


What do you mean by fastexport in teradata?

0 Answers  


In BTEQ, how are the session-mode parameters being set?

0 Answers  


What are the joins in teradata?

0 Answers  


What is the difference between fastload and multiload?

0 Answers  


Can we collect statistics on table level?

0 Answers  


what is the difference between primary index and secondary index?.

2 Answers   IBM,


Categories