How do you optimize SQL queries ?

Answer Posted / shail

Use function based index.
Ex: you have a date column and a simple index on it.
maximum queries referring to this column of this table
are like trunc(date_column). Then the index on this column
will be ignored. For this you can have function based index
like trunc(date_column) on this column.
This will speed up your sqls.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the meaning of disabling a trigger?

643


Can we group by two columns in sql?

500


Name three sql operations that perform a sort.

582


What is a stored procedure in sql with example?

598


What are database links used for?

591






Why do we create stored procedures & functions in pl/sql and how are they different?

500


What is sql indexing?

549


Can we join same table in sql?

521


What are the triggers associated with image items?

613


What does select top 1 do in sql?

536


How exception handling is done in advance pl/sql?

493


Which are the different case manipulation functions in sql?

533


What is the life of an sql statement?

519


What is the difference between rename and alias?

703


What is a sql select statement?

562