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 is the correct statement about truncate and delete?
Enlist the advantages of sql.
Is oracel sql developer written in java?
ERROR:Insert or update on table"accnt" violates foreign key constraints "acct_to_curr_symbol" DETAILS:KEY(accnt_curr_id)(-2)is not present in the table "curr_symbol" ......solve The Problem..
What are keys in sql?
What is pl sql script?
Are stored procedures compiled?
Explain the types of joins in sql?
What version is sql?
What is dcl in sql?
Mention what plvcmt and plvrb does in pl/sql?
How to avoid duplicate records in a query?
What is the most restrictive isolation level? : Transact sql
Does truncate free space?
Does sql full backup truncate logs?