Hi Folks,
I'm looking for a SQL wizard who can impart some Defined SQL variable knowledge.
I have a set of variables in an email trigger for an advanced alert that show if and alert is acknowledged, by who, and when it was acknowledged.
${Acknowledged}
${AcknowledgedBy}
${AcknowledgedTime}
The only problem is that if the alert has not been ackwoledged by anyone SW places a spurious time and date for the Acknowledge time variable which looks terrible and is confusing everyone.
So I would like to create a Defined SQL Variable to work like this,
IF ${AcknowledgedBy} = Blank THEN Blank, OTHERWISE ${AcknowledgedTime}
I have Frankesteined the Variable below from various places but can't get it to perform what I have layed out above as my SQL wizardry is not that good, any input would be greatly appreciated.
${SQL:Select 'AcknowledgedTime' = CASE WHEN '${AcknowledgedBy}' != '' THEN '' ELSE '${AcknowledgedTime}' END}