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

date and time calculation

$
0
0

HI,

 

I have a requirement that in theprogram I have to put the logic that it should only collect the date that has changed from the time the job was last run. For this I ahve maintained two varaibles in our custom table to have the latest run date and time, I have written the below logic for that:

 

 

SELECT  name1 name2 name3

from lfa1

    WHERE chng_date GE r_date and

   chng_time GE r_time.

 

 

but the problem is if the program last ran on 11/04/2014 at 21:19:10 and then if there was a change made on 11/07/2014 at 11:10:10, then my logic is not picking that change as the time 11:10:10 is less than 21:19:10 although date 11/07/2014 is greater than 11/04/2014.

 

any suggestion


Viewing all articles
Browse latest Browse all 9146

Trending Articles



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