SQL sorgusu şu şekildedir burda bakiyesinide görebilirsiniz carinin diğer bilgileride mevcut
SELECT CL.CODE,CL.DEFINITION_,CL.ADDR1,CL.ADDR2,CL.TOWN,CL.CITY,CL.TAXOFFICE,CL.TAXNR,CL.SPECODE,CL.CYPHCODE,
ROUND(ISNULL((SELECT SUM(AMOUNT) FROM LG_016_01_CLFLINE WHERE CLIENTREF=CL.LOGICALREF AND SIGN=0)-
(SELECT SUM(AMOUNT) FROM LG_016_01_CLFLINE WHERE CLIENTREF=CL.LOGICALREF AND SIGN=1),0),2) AS BAKIYE
FROM LG_016_CLCARD CL