MyTetra Share
Делитесь знаниями!
Контрагенты не по факту
Время создания: 10.04.2020 15:11
Раздел: INFO - JOB - rtneo - Работа над задачами - Расчет по факту
Запись: wwwlir/Tetra/master/base/1586502680qc6ik71ua8/text.html на raw.githubusercontent.com

select c.personalAccount from rtneo$Contragent c where not c.type = 3

and (select count(r) from rtneo$RealEstateContainerYard r where r.contragentRealEstate.contragent.id = c.id and r.factRequest = 20)=0

and (select count(ct) from rtneo$Contract ct where ct.contragent.id = c.id and ct.accepted = true)>5

 
MyTetra Share v.0.59
Яндекс индекс цитирования