I've been reading SynapseVampires FAQ on Optimizing SQL Pass through and I'm just not getting it.
I have a report with the following Select Expert at Record level:
({loggerlog.AGNTID} startswith "1" or
{loggerlog.AGNTID} startswith "4")
and
(Date ({loggerlog.STARTTIME}) in LastFullMonth)
and
(Len ({loggerlog.AGNTID}) >= 3)
This results in the following SQL Query:
SELECT `loggerlog1`.`LOGID`, `loggerlog1`.`LOCCHANNEL`, `loggerlog1`.`AGNTID`, `loggerlog1`.`STARTTIME`, `loggerlog1`.`RECLENGTH`
FROM `vdlogger`.`loggerlog` `loggerlog1`
WHERE (`loggerlog1`.`AGNTID` LIKE '1%' OR `loggerlog1`.`AGNTID` LIKE '4%')
I feel like the problem must be that I am not converting the datetime field "STARTTIME" correctly. As always any help is appreciated.
I have a report with the following Select Expert at Record level:
({loggerlog.AGNTID} startswith "1" or
{loggerlog.AGNTID} startswith "4")
and
(Date ({loggerlog.STARTTIME}) in LastFullMonth)
and
(Len ({loggerlog.AGNTID}) >= 3)
This results in the following SQL Query:
SELECT `loggerlog1`.`LOGID`, `loggerlog1`.`LOCCHANNEL`, `loggerlog1`.`AGNTID`, `loggerlog1`.`STARTTIME`, `loggerlog1`.`RECLENGTH`
FROM `vdlogger`.`loggerlog` `loggerlog1`
WHERE (`loggerlog1`.`AGNTID` LIKE '1%' OR `loggerlog1`.`AGNTID` LIKE '4%')
I feel like the problem must be that I am not converting the datetime field "STARTTIME" correctly. As always any help is appreciated.