SQL Optimization

How to optimize SQL Statements?

Questions by kunalpurbey

Showing Answers 1 - 6 of 6 Answers

ace1234567

  • Mar 4th, 2015
 

update the statistics of all the tables used in the query. Check the explain plan. Check whether query is using the existing indexes. If required add/modify new indexes. Check for the sequence of conditions in where clause. Try to use "exist" rather than "in" for subqueries returning big number of rows.

  Was this answer useful?  Yes

Sudhir Kumar

  • Jan 20th, 2016
 

Try to make use of mqts or temporary tables if possible ..try to transfer the conditions from non key columns to key columns

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions