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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is spool space?

607


What are the things to be considered while creating secondary index?

638


What is the maximum number of dml can be coded in a multiload script?

623


What is primary index and secondary index?

576


Difference between stored procedure and macro?

691






How to find duplicates in a table?

616


What is partitioned primary index (ppi)?

572


What is the use of fallback?

560


what is sysdba and sysdbc ? which has high priority ?

3374


Describe the set operators in teradata.

583


What is TPD?

910


Differentiate database data and data warehouse data?

589


Define views in teradata with syntax.

645


Mention the procedure via which, we can run Teradata jobs in a UNIX environment.

574


What is the basic syntax for teradata select statement?

580