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

1.
Use proper sequence of tables in from clause
i.e.
the table have more common column must in last
in form clause bcoz on firing of query engine link
last table in form clause
2.
Use "Exist" clause instead of "Not in"
Bcoz it return only true/false(boolean)

3.
Use "Hint" if Required

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between delete and truncate commands?

586


How sql query is executed?

657


What is flag in sql?

641


How do you select unique values in sql?

615


Can we use views in stored procedure?

608






How many types of triggers exist in pl/sql?

648


How does left join work in sql?

605


what are the limitations of identity column? : Transact sql

712


What is hibernate and its relation to sql?

674


Is a foreign key always unique?

605


does sql support programming? : Sql dba

683


Does execute immediate commit?

825


How many types of cursors are available in pl/sql?

673


Can you sum a count in sql?

652


What are the benefits of pl/sql packages?

638