I have a table with emp id, emp name, dept id and sal where
dept id is NUSI. SEL * FROM EMP WHERE DEPTID = 100. Can any
one explain how it will fetch the record.
Answer Posted / ajain
Whenever NUSI is created, subtable will be created for each AMP's with the fields rowid and secondary index value.For NUSI ,subtable will be AMP local ie it will be having the records which are specific to the particular AMP.
When someone queries with the NUSI, all the AMPs will search in their own subtable for particular secondary index .For AMPs which found the particular record in their subtable ,it will retrieve the actual data from the AMP and PE will be consolidating the records and give to user
Since NUSI involves all AMP operation , PE will be deciding whether FULL table scan or ALL AMP operation will be more efficient .
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is primary index and secondary index?
Give the sizes of SMALLINT, BYTEINT and INTEGER.
What are the steps involved after the disk manager passes the request?
What is teradata?
Explain the term 'foreign key' related to relational database management system?
What does sleep function does in fast load?
What is spool space? Why do you get spool space errors?
What do you mean by fastexport in teradata?
How to eliminate product joins in a teradata sql query?
What are teradata utilities?
In BTEQ, how are the session-mode parameters being set?
What are types of partition primary index (ppi) in teradata?
Syntax for case when statement?
If I wanted to run a TPump job only once per day - basically working on a file that is produced once per day - how would you set up the parameters for that sort of job ?
How you will check the version of teradata?