In a table i have columns A,B,C and i have a composite index
on columns A,B if so will the following query uses index or
not?
SELECT sal,name
FROM <table_name>
WHERE A=<value> AND B=<value> AND C=<value>;
Answer Posted / dinesh
Table Access (BY INDEX ROWID)
Filter predicates C=
INDEX(UNIQUE SCAN) A= B=
Here we use "AND" operator that query used index
if we used "OR" its not used Index scan
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the command used to fetch the first 5 characters of a string?
what is the difference between blob and text? : Sql dba
what happens if null values are involved in expressions? : Sql dba
what is 'mysqladmin' in mysql? : Sql dba
What is sql*loader and what is it used for?
How do I copy a table in sql?
How can I speed up sql query?
What are sql indexes?
Is oracle and sql same?
How do I make my sql query run faster?
What is the maximum number of triggers, you can apply on a single table?
Advantages and disadvantages of stored procedure?
Are sql connections encrypted?
Why do we use partitions in sql?
What is #table in sql?