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

Re: Aeging Report Formula Error

$
0
0

Hi,

 

Try this SQL query:

 

SELECT T0.[ItemCode], T0.[ItemName], T0.[BatchNum], T0.[WhsCode], T0.[InDate],

case when datediff(dd,T0.[InDate],getdate()) <= 30 then '1-30days'

when datediff(dd,T0.[InDate],getdate()) >= 60 then '31-60days'

when datediff(dd,T0.[InDate],getdate()) >= 90 then '61-90days'

when datediff(dd,T0.[InDate],getdate()) >= 120 then '91-120days'

when datediff(dd,T0.[InDate],getdate()) >= 120 then '121- 150days' end as status

 

FROM OIBT T0

 

Thanks & Regards,

Nagarajan


Viewing all articles
Browse latest Browse all 8430

Trending Articles



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