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

Re: need help for logic to find no.of months betwen starting date and ending date

$
0
0

Hello Raghu.

*    You can make use of 4 variables: start_month,end_month,start_year and end_year.

 

*    start_month = dt_da+4(2)

     end_month = dt_a+4(2)

     start_year = dt_da+0(4)

     end_year = dt_a+0(4)

 

*   SELECT * FROM  zrmm_076

          WHERE  zcodleg =   2_v_zcodleg
          AND zper BETWEEN start_month AND end_month
          AND zese BETWEEN start_year AND end_year
          AND  causmov IN s_caus                           
          AND datvis_ent BETWEEN starting data          

          AND ending date

          AND zmovdoppi = space.

 

Regards.


Viewing all articles
Browse latest Browse all 9159

Trending Articles



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