Devirden Gelen Çeklerin borçlu hesap isimleri görünmüyor yardım edebilirmisiniz acaba yeni kod yazım dedim sadece 2013 ü getirdi
SELECT
CS.PORTFOYNO as [PortföyNo],
NEWSERINO AS [Çekin_Seri_Nosu],
CS.DUEDATE AS [Çekin_Vadesi],
CS.AMOUNT AS [Çekin_Tutarı],
CL.DEFINITION_ AS [Borçlu_Hesap],
CS.OWING AS [Çekin_Borçlusu],
CS.BANKNAME AS [Banka_Adı],
CL.CITY AS [Şehir],
CASE(CS.CURRSTAT)
WHEN 1 THEN 'PÖRTFEYDE' END 'DURUMU'
FROM
LG_008_06_CSCARD CS LEFT OUTER JOIN LG_008_06_CSTRANS CT ON CT.CSREF = CS.LOGICALREF LEFT OUTER JOIN
LG_008_06_CSROLL CR ON CT.ROLLREF=CR.LOGICALREF LEFT OUTER JOIN LG_008_CLCARD CL ON CR.CARDREF=CL.LOGICALREF
WHERE CS.DOC=1 AND CS.CURRSTAT IN (1) AND STATNO =1 AND CS.DUEDATE>getdate() ORDER BY cs.duedate asc