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
List and explain the different types of join clauses supported in ansi-standard sql?
Define overloaded procedure?
What are analytical functions in sql?
What is sql in java?
What is a scalar value in sql?
What is insert command in sql?
How to avoid duplicate records in a query?
what is the difference between char_length and length? : Sql dba
What is program debugging?
What is procedure explain with program?
how many ways to get the current time? : Sql dba
what is csv? : Sql dba
what is innodb? : Sql dba
Can primary key be changed?
When should I use nosql database?