Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8914

union in a select

$
0
0

Hi,

 

can anybody tell me whether the following sql stardard is possible in abap and how I can emulate the same?

  select * from sapsr3.mast@st1_desarrollos
      WHERE mandt = 300
      AND werks = '1100'
      AND stlan = '1'
      AND stlal = '01'
  union
  select * from sapsr3.mast@st1_desarrollos
      WHERE mandt = 300
      AND werks = '1100'
      AND stlan = '1'
      AND stlal = '02'
      AND trim(matnr) not in
  (select distinct trim(matnr) from sapsr3.mast@st1_desarrollos
      where mandt = 300
      AND werks = '1100'
      AND stlan = '1'
      AND stlal = '01')

 

Thanks in advance.

Regards.


Viewing all articles
Browse latest Browse all 8914

Trending Articles



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