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
What is prepared statement in sql?
What are the basic techniques of indexing?
can a stored procedure call itself or recursive stored procedure? : Sql dba
Can we use pl sql in mysql?
What is structural independence and why is it important?
What is clause in sql?
Why we use stored procedure instead of query?
Is foreign key mandatory?
When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?
How to prepare for oracle pl sql certification?
Is sql workbench free?
What is union?
What is a function in oracle pl sql?
What is sql in oracle?
How do I count duplicates in sql?