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>;
Answers were Sorted based on User's Feedback
Answer / 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 |
How to assign sql query results to pl sql variables?
how to sort records in sql?
What are the datatypes a available in PL/SQL ?
name 3 ways to get an accurate count of the number of records in a table? : Sql dba
What is difference between hql and native sql?
How does pl sql work?
Can a commit statement be executed as part of a trigger?
How to get unique records from a table?
What is t-sql? : Transact sql
What do you mean by rowid?
What is numeric function sql?
Can we use having without group by in sql?