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
Which certification is best for sql?
What is microsoft t sql?
What are different types of keys?
Why do we use view in sql?
Explain exception handling in pl/sql?
Is pl sql still used?
how can we know the number of days between two given dates using mysql? : Sql dba
how to drop an existing index in mysql? : Sql dba
How does rowid help in running a query faster?
What is time based sql injection?
Which are the different case manipulation functions in sql?
Is sql a microsoft product?
What does a pl/sql package consist of?
how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba
what is blob? : Sql dba