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:

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is going life actually? What is the role of a functional consultant in it? : sap abap hr

551


What are the types of the software component being deployed in the sap?

597


Explain what is the significance of hide?

534


What are client dependant objects in abap/sap?

681


What is the significance of delivery class? : abap data dictionary

576






Define the various contents of technical specifications ?

620


How did you transfer legacy data in the mid of the financial year (us) to the sap system? : sap abap hr

541


Did you create secondary index?

691


How do you restrict the data to be entered in the payroll area? : sap abap hr

533


performance tuning concepts

959


Mention the various databases integrities?

617


What is ps structure? : abap hr

801


What are the two statements which are required in an abap program to output an icon using a write statement?

770


Hat are the different types of mode (run code) in call transaction method?

573


Is it possible to pass data to and from include programs explicitly?

585