Třídová akce

Kód:
2
Tělo:
select
  ES.ID, ES.EmailAccount_ID
from 
  EmailsSent ES
where
  ES.SentState = 1
  and (:EmailsSentSelID = '0000000000' or ES.ID in (select Obj_ID from Seldat where Sel_ID = :EmailsSentSelID))
  and (ES.EmailAccount_ID in (select Obj_ID from Seldat where Sel_ID = :EmailAccountSelID))
order by 
  ES.EmailAccount_ID

Generated by ABRA Software a.s. 27.10.2021 16:35:16