Table ztest has a secondary index on the following fields:
tnum, tcode.
Select * from ztest where tnum ne '123' and tcode = '456'.
Why is the index not used in the above case?
Choices:
a) Indexes are not allowed on Z tables
b) Variables must be used, NOT literals
c) Select individual fields, not select *
d) Client is not in the where clause
e) NE invalidates the use of an index
Info: Can someone explain in detail why this happened? It
will be really helpful to handle to case in Secondary index:
Answers were Sorted based on User's Feedback
Answer / shatanjay
Correct Answer Is : " E ".
Reason(s) : Negation (In this case 'NE') of Index fields
(in this case 'TNUM' will prevent DB Optimizer from
considering the field when searching for a suitable Index)
Is This Answer Correct ? | 11 Yes | 0 No |
Answer / vkbpl6012
In my opinion, the correct answer is
E: NE invalidates the use of an index
Is This Answer Correct ? | 10 Yes | 1 No |
what are command are they abap ?
How to eliminate duplicate entries in internal tables?
if u take one worst program how can u bebugg in application server & database server?
how to trasfert script from one server to another server or one clint to another clint
What are the different kinds of lock modes?
How many ways you can create table? : abap data dictionary
what are the differences between SAP R/3 4.7 and ECC 6.0 from ABAP Point of view?
in the event at selection-screen output we use loop screen,what is screen intenal table,structure or DB table?
What will exactly the hide statement do?
What is at exit-command:?
What does the extract statement do in extract datasets? : abap modularization
What is native sql?