MyTetra Share
Делитесь знаниями!
Контрагенты которые не входили в лк, нет платежей и допов
Время создания: 06.07.2020 12:22
Раздел: INFO - JOB - rtneo - Выгрузки
Запись: wwwlir/Tetra/master/base/1594009357chkihgu4o6/text.html на raw.githubusercontent.com

select c.name, c.legalAddress, (select ct.number from rtneo$Contract ct where ct.contragent.id = c.id and ct.mainContract is null) from rtneo$Contragent c where lower(c.legalAddress) like '%бодайбо%' and size(c.contracts) <=1 and (select count(p) from rtneo$Payment p where p.inn = c.inn)=0 and ((select count(s) from sec$SessionLogEntry s where c.user = s.user)=0 or c.user is null)

Так же в этом разделе:
 
MyTetra Share v.0.59
Яндекс индекс цитирования