A Software Databases
A Software Databases
• In the where clauses, if the column data type is a number, do not use
single quotes. Likewise, if the column data type is varchar2 always use
single quotes else indexes will not be used.
• When doing a join of three or more tables, try to structure the query to do
the greatest elimination on the first join. Incorporating all of the restrictive
where clause conditions on one table can often do this.
• Only If the leading column of an index is referenced in the where clause
will the index be used else not.