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

how can i answer for question like teradat architecture in interveiw

4 Answers   TCS,


What are the various indexes in teradata? How to use them?

0 Answers  


What is the basic syntax for teradata select statement?

0 Answers  


why use references rather than pointers in the public api, particularly for arguments which are modified?

0 Answers  


How do you Generate Sequence in Teradata?

3 Answers   TCS,


Does any body has TERADATA Certification Dumps, if any body is having please let me know to summee4you@gmail.o, it is very Very URGENT to me

25 Answers   TCS,


Give a justifiable reason why Multi-load supports NUSI instead of USI.

0 Answers  


Which Teradata concept allows more than one model generation?

1 Answers   TCS,


Explain the term 'foreign key' related to relational database management system?

0 Answers  


What is dimensional modeling?

0 Answers  


What can be achieved by using the teradata rdbms?

0 Answers  


What is the process to restart the multiload if it fails?

7 Answers  


Categories