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

What is the primary index in teradata?

0 Answers  


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

0 Answers  


How to cast date "2015-03-03-012204-000000" to timestamp

1 Answers   Cognizant,


What is the purpose of joins in teradata and what are the available join types?

0 Answers  


Is multi insert ansi standard?

0 Answers  


Can we collect statistics on table level?

0 Answers  


Explain the advantages of partitioned primary index in a query?

0 Answers  


If table have access lock.In the same table write lock is posible or not?

1 Answers  


Pls any body reply for this question. Which circumstance does the optimizing choose a product join? Thanks for advance

6 Answers   Cap Gemini,


What are the components provided on node?

0 Answers  


which option is used to restart the fastexport script ?

2 Answers   TCS,


can we load 10 millions of records into target table by using tpump?

1 Answers   HP,


Categories