Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

explain the difference between myisam static and myisam dynamic. : Sql dba

885


What is a pragma statement?

1201


What are the three forms of normalization?

993


What is the basic structure of an sql?

1031


What are field types?

939


How to check if a column is nullable before setting to nullable?

1055


What is sql rowcount?

949


How many sql are there?

924


What are its different types of dbms?

955


what is 'mysqlimport'? : Sql dba

974


Does sql backup shrink transaction log?

914


what are all different types of collation sensitivity? : Sql dba

928


What is rowid in sql?

906


what is the difference between where clause and having clause? : Sql dba

947


What is trigger in pl sql with examples?

979