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

Re: Need Selection and Outstanding Balance in this query.

$
0
0

Hi,

 

Try this query:

 

SELECT distinct T0.[CardCode], T0.[CardName] as 'Custmer Name',  T3.[Name] as 'State',T2.[GroupName] , T0.[Balance] as 'Balance'   FROM OCRD T0  left JOIN CRD1 T1 ON T0.[CardCode] = T1.[CardCode] left JOIN OCRG T2 ON T0.[GroupCode] = T2.[GroupCode] left JOIN OCST T3 ON T1.[State] = T3.[Code] and T3.Country = T1.country  WHERE  T0.CardType = 'C' and T2.[GroupName] = [%0]

 

Thanks


Viewing all articles
Browse latest Browse all 3316

Trending Articles



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