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

Re: how to use inner join instead of for all entries?

$
0
0

Hi akshath,

 

 

Please go through the forum for more details about join . There are lots of notes available.

 

Here is the solution for the join.

create a final internal table with all the fields from both the internal table.

 

SELECT m~vbeln

             m~vbtyp

             m~xsitd

             m~trackn

             m~tracktstmp

             n~ vbeln

             n~vbtyp

             n~ xsitd

             n~posnr

             n~trkstatd

into it_final from vtrkh as m inner join vtrkp as n on m~vbeln = n~vbeln and m~vbtyp = n~vbtyp and m~XSITD = n~XSITD for all entries in it_parcel where vbeln = it_parcel-vbeln.

 

Hope that this will be helpful for you.

 

It is recommended to use joins if possible as a performance tuning method.

You can join more than 2 tables also.

 

 

Thanks and regards,


Viewing all articles
Browse latest Browse all 8594

Trending Articles



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