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.

Answers were Sorted based on User's Feedback



I have a table with emp id, emp name, dept id and sal where dept id is NUSI. SEL * FROM EMP WHERE ..

Answer / 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

I have a table with emp id, emp name, dept id and sal where dept id is NUSI. SEL * FROM EMP WHERE ..

Answer / saravanan

If COLLECT STATS has been defined on the table EMP, then PE
will avoid going for a FULL TABLE SCAN.
If not, PE will undergo a FULL TABLE SCAN to fetch
DEPTID=100

Is This Answer Correct ?    4 Yes 2 No

I have a table with emp id, emp name, dept id and sal where dept id is NUSI. SEL * FROM EMP WHERE ..

Answer / siva reddy

in case we are using nusi in this swicthvation subtable is created same amps.it is one of the full table scan but not full table scan.it's scan only all amps sub table.if any one of the match it will disply.here no allgorithem can be performed.

Is This Answer Correct ?    1 Yes 0 No

I have a table with emp id, emp name, dept id and sal where dept id is NUSI. SEL * FROM EMP WHERE ..

Answer / saravanan

If your question is about how Parsing engine would fetch
DEPTID=10, it will undergo a FULL TABLE scan since Dept_Id
is a Non unique secondary index.

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More Teradata Interview Questions

Can any one please provide me practical example of How to do the performance tuning in Query??

5 Answers   Amdocs,


What are the available primary index types in teradata.

0 Answers  


What are the multiload utility limitations?

0 Answers  


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.

4 Answers  


What are the string manipulation operators and functions associated with teradata?

0 Answers  






What are the enhanced features in teradata v2r5 and v2r6?

0 Answers  


tomorrow i have interview in infosys.can someone pour any suggestions or any interview questions. thank you

0 Answers  


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

0 Answers  


what are the uses of fact table and dimension table in banking project?

0 Answers   TCS,


Explain some differences between mpp and smp?

0 Answers  


What is a three-tier data warehouse?

0 Answers  


Explain vproc in teradata?

0 Answers  


Categories