i have this query please check i want total ap reserve invoice count in report and i have this query i am facing issue with joins please check
select OPOR.CardCode, OPOR.CardName, OPOR.U_ReferenceNo, OPOR.NumAtCard, OPOR.DocNum, count(OPCH.DocNum)...