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

Re: how to apply cursor to achieve this:

$
0
0

Hi K S

use this with count > 1 and not with subquery like Abhinab Mishra

my mind goes some where else.

 

So code its like that:

 

 

Select single blenr

            MAX( gjahr )

      INTO (lv_beln, lv_gjahr)

      From besg

      Where kostl = 'WRX'

     GROUP BY belnr gjahr

     HAVING COUNT( ktosl ) > 1.


Viewing all articles
Browse latest Browse all 8927

Trending Articles



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