Resource id #121
select count(*) from RAvancModeloI  a left join CUP b on a.pIn0 = b.pPId and b.iVer = b.iVAt where a.lExc = 0 and a.iVer = a.iVAt and ( (1=1) or (a.pInc=3979) )