Can any one tell me how to increase the performance of a
sql query ie what are the performance tips in creating or
writing a sql query !!?

Answer Posted / hutashan

use Inline view to eleminate large number of rows
Avoid implicit datatype conversion
Avoid using function on an indexed column
Avoid comparing column value with NULL
Outer Join
Use OR carefully

Do not use outer join unless absolutely necessary. Degree
of optimizing outer join permutation is VERY LIMITED
Instead: Consider using default values in the base table to
avoid outer join
Do not outer join to a view. This typically results in a
non-mergable view execution plan
Always use NOT EXISTS instead of NOT IN


Remove DISTINCT keyword from SELECT if UNION is used

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain exception handling in pl/sql?

727


What is trigger types of trigger?

720


Is sql pronounced sequel or sql?

952


What does bitemporal mean?

761


what is sql? : Sql dba

741






Explain correlated query work?

792


What is foreign key sql?

748


How do you rename a table in sql?

735


What is the use of <> sql?

738


What are the advantages of stored procedure?

724


Why do we use view in sql?

727


Is pl sql different from sql?

717


What is normalization in sql?

718


how to shutdown mysql server? : Sql dba

743


What is sql trigger example?

751