1SELECT
2 AcId, AcName, PldepPer, RepId, CustCatg, HardCode, BlockCust, CrPeriod, CrLimit,
3 BillLimit, Mode, PNotes, gtab82.memno
4FROM
5 VCustomer AS v1
6INNER JOIN
7 gtab82 ON gtab82.memacid = v1.AcId
8WHERE (AcGrCode = '204' OR CreDebt = 'True')
9AND Masked = 'false'
10ORDER BY AcName