Quantcast
Channel: SCN : Popular Discussions - SAP MaxDB
Viewing all articles
Browse latest Browse all 1545

Different execution plan for the same sql statement

$
0
0

Hi all,

 

When I check the same sql statement in different systems,   P system and Q system.

It shows different execution plan for inner join

Sql statement

SQL statement.PNG
Excution plan

 

For system P    the value of MANDT is 1     table EKPO accessed first with full table scan.

Explain P.PNG

For system Q    the value of MANDT is 4     table EKKO accessed first with index EKKO~1(in P also has this index)

 

Explain Q.PNG

Data volume in Q is a little bit larger than P.

Could you please help to find out why there is such a difference?  which one is correct?

How the optimizer works when process the inner join for maxDB?

 

Thanks & Regards,

Chris


Viewing all articles
Browse latest Browse all 1545

Trending Articles



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