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

what is foreign key? : Sql dba

1000


how can we destroy the cookie? : Sql dba

990


Why triggers are used?

968


Can instead of triggers be used to fire once for each statement on a view?

948


What is an example of translating a date into julian format?

1096


how are mysql timestamps seen to a user? : Sql dba

1117


What is the difference between a primary key and a unique key?

1042


how to enter numeric values as hex numbers? : Sql dba

1046


what is the difference between delete and truncate commands? : Sql dba

1043


What are the two types of exceptions.

1142


Will truncate release space?

925


What is cursor in pl sql?

1095


What is a temp table?

999


What are the benefits of triggers?

1155


Is sql open source?

950