select
'S' as Kind {ANDFIELDS}
from
SecurityUsers A
join MsgToRead MTR on MTR.TargetUser_ID = A.ID
join MsgSent MS on MS.ID = MTR.MsgSent_ID
where
SenderUser_ID = {$ActualUser}
and (ValidToDate$Date = 0 or ValidToDate$Date >= {$ActualDateTime})
{ANDWHERE}
{$FakeUser_Sent}
union
select
'R' as Kind {ANDFIELDS}
from
SecurityUsers A
join MsgSent MS on MS.SenderUser_ID = A.ID
join MsgToRead MTR on MTR.MsgSent_ID = MS.ID
where
TargetUser_ID = {$ActualUser}
and (ValidToDate$Date = 0 or ValidToDate$Date >= {$ActualDateTime})
{ANDWHERE}
{$FakeUser_Received}
order by 1,2
| Alias | CLSID objektu | Prefix | Popis |
|---|---|---|---|
| A | 22AHIVDVAVE13C5S00CA141B44 |
| Jméno | Typ | Velikost | Výraz | CLSID | Popis |
|---|---|---|---|---|---|
| Kind | dtString | 1 | Druh(S-odeslané, R-přijaté) |
select
{FIELDS}
from
MsgSent MS
join MsgToRead MTR on MTR.MsgSent_ID = MS.ID
where
MTR.TargetUser_ID = :ID
and MS.SenderUser_ID = {$ActualUser}
/* tohle je otazka - takto by je uz nikdy nevidel, pokud zuatanou v systemu a automaticky se nesmazou
and (MS.ValidToDate$Date = 0 or MS.ValidToDate$Date >= {$ActualDateTime})
and MTR.Deleted = 'N'
*/
{ANDWHERE}
{ORDERBY}
| Alias | CLSID objektu | Prefix | Popis |
|---|---|---|---|
| MS | 33XZARXR1BM4L55MOX54NTRBWG |
select
MTR.HaveRead as HaveRead {ANDFIELDS}
from
MsgSent MS
join MsgToRead MTR on MTR.MsgSent_ID = MS.ID
{JOIN}
where
MS.SenderUser_ID = :ID
and MTR.TargetUser_ID = {$ActualUser}
and (MS.ValidToDate$Date = 0 or MS.ValidToDate$Date >= {$ActualDateTime})
and MTR.Deleted = 'N'
{ANDWHERE}
{ORDERBY}
| Alias | CLSID objektu | Prefix | Popis |
|---|---|---|---|
| MS | 33XZARXR1BM4L55MOX54NTRBWG | ||
| SU | 22AHIVDVAVE13C5S00CA141B44 | SU | Uživatel |
select
{FIELDS}
from
MsgSent MS
where
MS.SenderUser_ID = {$ActualUser}
/* tohle je otazka - takto by je uz nikdy nevidel, pokud zuatanou v systemu a automaticky se nesmazou
and (MS.ValidToDate$Date = 0 or MS.ValidToDate$Date >= {$ActualDateTime})
and exists(select 1 from MsgToRead where MsgSent_ID = MS.ID and Deleted = 'N')
*/
{ANDWHERE}
{ORDERBY}
| Alias | CLSID objektu | Prefix | Popis |
|---|---|---|---|
| MS | 33XZARXR1BM4L55MOX54NTRBWG |
select
MTR.HaveRead as HaveRead {ANDFIELDS}
from
MsgSent MS
join MsgToRead MTR on MTR.MsgSent_ID = MS.ID
{JOIN}
where
MTR.TargetUser_ID = {$ActualUser}
and (MS.ValidToDate$Date = 0 or MS.ValidToDate$Date >= {$ActualDateTime})
and MTR.Deleted = 'N'
{ANDWHERE}
{ORDERBY}
| Alias | CLSID objektu | Prefix | Popis |
|---|---|---|---|
| MS | 33XZARXR1BM4L55MOX54NTRBWG | ||
| SU | 22AHIVDVAVE13C5S00CA141B44 | SU | Uživatel |
A.ID = {:VALUE}
<field> = {:VALUE}
<field> = {:VALUE}
MS.ID = {:VALUE}
MS.ID = {:VALUE}
MS.ID = {:VALUE}
MS.ID = {:VALUE}
MS.SentDate$DATE >= {:LOW} and
MS.SentDate$DATE < {:HIGH}
MS.SentDate$DATE >= {:LOW} and
MS.SentDate$DATE < {:HIGH}
MS.SentDate$DATE >= {:LOW} and
MS.SentDate$DATE < {:HIGH}
MS.SentDate$DATE >= {:LOW} and
MS.SentDate$DATE < {:HIGH}
<<MS.MsgSubject>> like {:VALUE}
<<MS.MsgSubject>> like {:VALUE}
<<MS.MsgSubject>> like {:VALUE}
<<MS.MsgSubject>> like {:VALUE}
Exists(select 1 from MsgSentTokens B
where MS.ID = B.Parent_ID and
B.Token like {:VALUE}
)
Exists(select 1 from MsgSentTokens B
where MS.ID = B.Parent_ID and
B.Token like {:VALUE}
)
Exists(select 1 from MsgSentTokens B
where MS.ID = B.Parent_ID and
B.Token like {:VALUE}
)
Exists(select 1 from MsgSentTokens B
where MS.ID = B.Parent_ID and
B.Token like {:VALUE}
)
exists (SELECT 1 FROM MsgAttachments Y WHERE Y.Parent_ID=MS.ID {:ANDWHERE})
exists (SELECT 1 FROM MsgAttachments Y WHERE Y.Parent_ID=MS.ID {:ANDWHERE})
exists (SELECT 1 FROM MsgAttachments Y WHERE Y.Parent_ID=MS.ID {:ANDWHERE})
exists (SELECT 1 FROM MsgAttachments Y WHERE Y.Parent_ID=MS.ID {:ANDWHERE})
<<Y.FileName>> like {:VALUE}
<<Y.FileName>> like {:VALUE}
<<Y.FileName>> like {:VALUE}
<<Y.FileName>> like {:VALUE}
MS.SentDate$DATE {DIR}, MS.IDMS.SentDate$DATE {DIR}, MS.IDMS.SentDate$DATE {DIR}, MS.IDMS.SentDate$DATE {DIR}, MS.IDMS.MsgSubject Collate PXW_CSY {DIR}, MS.IDMS.MsgSubject Collate PXW_CSY {DIR}, MS.IDMS.MsgSubject Collate PXW_CSY {DIR}, MS.IDMS.MsgSubject Collate PXW_CSY {DIR}, MS.IDSU.ShortName Collate PXW_CSY {DIR}, MS.SenderUser_IDSU.ShortName Collate PXW_CSY {DIR}, MS.SenderUser_IDGenerated by ABRA Software a.s. 27.10.2021 16:36