Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 974

Re: Order of the fields in the WHERE part of a Query

$
0
0

Faraz Khan wrote:

 

Hi Jorge,

 

If A,B and C are the key fields of Ztable, then a primary index is automatically created for Ztable.

 

This primary index will have all the key fields and if you write your select query on Ztable by using the key fields in the order, then your query will be faster than what it would be otherwise.

 

Below query would be faster:

 

SELECT * FROM ztable INTO TABLE lt_ztable

WHERE A =

AND       B =

AND       C =

 

Thanks,

Faraz Khan

Wrong.


Viewing all articles
Browse latest Browse all 974

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>