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

Re: Recon Date getting Duplicated in Query

$
0
0

Hi Joseph,

 

Try:

 

select T0.CardCode,T0.CardName,t4.SeriesName,t4.BeginStr,RIGHT(T0.Docnum,6),T0.Docdate, MAX(T3.ReconDate) as 'Clearing Date', T0.DocTotal from

OINV T0

inner  JOin ITR1 T2 on T0.DocEntry = T2.SrcObjAbs

inner join OITR T3 on T2.ReconNum = T3.ReconNum

left join NNM1 T4 on T0.series = T4.Series

GROUP BY T0.CardCode,T0.CardName,t4.SeriesName,t4.BeginStr,T0.Docnum,T0.Docdate, T0.DocTotal

 

Thanks,

Gordon


Viewing all articles
Browse latest Browse all 8122

Trending Articles



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