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

Answer Posted / subbareddy kake

I will give you example for this....

Select *from emp where deptno=20 and empno:7788

above query will take much time to execute compared to
bellow query
Select *from emp where empno=7788 and deptno=20

becoz first query will take 1st all 20th dept emps and
again it will search for specific empno.but second query
will search first 7788 empno next it will see,that empno is
related to 20th dept or no.

So it will take less time for execution.

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Highlight the limitations of TPUMP Utility.

606


How can you track login parameters of users in teradata?

632


What are the uses of bynets in multi-node systems?

589


If Fast Load Script fails and only the error tables are made available to you, then how will you restart?

633


What are the multiload utility limitations?

595






What are the available join types in teradata?

598


How is the teradata different from oracle?

626


Is it necessary to add? Quit statement after a bteq query when I am calling it in a unix environment?

652


What is database exceptions in teradata?

550


A certain load is being imposed on the table and that too, every hour. The traffic in the morning is relatively low, and that of the night is very high. As per this situation, which is the most advisable utility and how is that utility supposed to be loaded?

687


how many modules are there in telecome domain?how to explain the architecture?

1557


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

605


Syntax for case when statement?

609


How to eliminate product joins in a teradata sql query?

603


Describe the set operators in teradata.

583