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

Re: Query

$
0
0

Hi,

 

Try this:

 

 

SELECT
T0.[CardCode], T0.[CardName],  CASE WHEN T0.[CardType]= 'C' THEN
'CUSTOMER'

 

WHEN
T0.[CardType]= 'S' THEN 'VENDOR'

 

WHEN
T0.[CardType]= 'L' THEN 'LEAD' END AS TYPE , T0.[Phone1],
T1.[GroupName], T2.[FormatCode], T2.[AcctName], T0.[Balance] FROM
OCRD T0  INNER JOIN OCRG T1 ON T0.GroupCode = T1.GroupCode INNER JOIN
OACT T2 ON T0.DebPayAcct = T2.AcctCode GROUP BY T0.[CardCode],
T0.[CardName], T0.[CardType], T0.[Phone1], T1.[GroupName],
T2.[FormatCode], T2.[AcctName], T0.[Balance] ORDER BY T0.[CardCode]

 

Hope helpful.

 

Thanks & Regards,

Nagarajan


Viewing all articles
Browse latest Browse all 9656

Trending Articles



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