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 do you explain an index number?
What is sql mysql pl sql oracle?
what are aggregate and scalar functions? : Sql dba
What are the operators used in select statements?
What is rownum and rowid?
Which are the most commonly used sql joins?
how to convert character strings to dates? : Sql dba
What are the modes of parameters that can be passed to a procedure ?
What is the source code of a program?
Explain autonomous transaction.
1 SELECT a.field1, b.field2, c.field3, d.field4 2 FROM atable a, atable b, ctable c, dtable d 3 ? 4 ORDER BY 1 What is the minimum number of joins that must be specified on line 3 in the sample code above to properly link the tables? Notice that the table "atable" is aliased twice: once as "a" and once as "b." 1. One join 2. Two joins 3. Three joins 4. Four joins 5. Five joins
What is your daily office routine?