→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎04-20-2016 05:19 PM
Solved! Go to Solution.
‎04-20-2016 09:25 PM
Select
htblticket.ticketid,
htblticket.subject,
htblticket.ticketstateid,
htblticket.date As Created,
htblticket.updated,
Cast(Dateadd(minute,DateDiff(minute, htblticket.date, htblticket.updated), '2011-01-01 00:00:00.000') as TIME) as TimeToClose
From htblticket
Where htblticket.ticketstateid = 1
AND (Datediff(minute, htblticket.updated, CURRENT_TIMESTAMP) <= 1440)
Select Top 1000000 htblticket.ticketid,
htblticket.subject,
htblticket.date As Created,
htblticket.updated,
Cast(DateAdd(minute, DateDiff(minute, htblticket.date, htblticket.updated),
'2011-01-01 00:00:00.000') As TIME) As TimeToClose
From htblticket
Where htblticket.ticketstateid = 1
‎04-21-2016 03:30 PM
‎05-08-2016 10:44 PM
crustachio wrote:
On a related note, a big feature request from me would be smarter date criteria in the filters. So instead of requiring a specific date range, allow "last n days", so the filter results will stay accurate for things like this.
‎04-20-2016 09:25 PM
Select
htblticket.ticketid,
htblticket.subject,
htblticket.ticketstateid,
htblticket.date As Created,
htblticket.updated,
Cast(Dateadd(minute,DateDiff(minute, htblticket.date, htblticket.updated), '2011-01-01 00:00:00.000') as TIME) as TimeToClose
From htblticket
Where htblticket.ticketstateid = 1
AND (Datediff(minute, htblticket.updated, CURRENT_TIMESTAMP) <= 1440)
Select Top 1000000 htblticket.ticketid,
htblticket.subject,
htblticket.date As Created,
htblticket.updated,
Cast(DateAdd(minute, DateDiff(minute, htblticket.date, htblticket.updated),
'2011-01-01 00:00:00.000') As TIME) As TimeToClose
From htblticket
Where htblticket.ticketstateid = 1
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now