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



In a table i have columns A,B,C and i have a composite index on columns A,B if so will the followi..

Answer / kishore vakiti

index range scan

Is This Answer Correct ?    1 Yes 1 No

In a table i have columns A,B,C and i have a composite index on columns A,B if so will the followi..

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

Post New Answer

More SQL PLSQL Interview Questions

How to assign sql query results to pl sql variables?

0 Answers  


how to sort records in sql?

3 Answers  


What are the datatypes a available in PL/SQL ?

2 Answers  


name 3 ways to get an accurate count of the number of records in a table? : Sql dba

0 Answers  


What is difference between hql and native sql?

0 Answers  






How does pl sql work?

0 Answers  


Can a commit statement be executed as part of a trigger?

0 Answers  


How to get unique records from a table?

0 Answers  


What is t-sql? : Transact sql

0 Answers  


What do you mean by rowid?

0 Answers  


What is numeric function sql?

0 Answers  


Can we use having without group by in sql?

0 Answers  


Categories