→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎11-15-2016 11:09 PM
Select Top 1000000 htblticket.date As [Date Created],
htblticket.agentid As Agent,
htblticket.fromuserid As Requester,
htblticket.subject As Subject,
htblnotes.note As Description
From htblticket
Inner Join htblnotes On htblticket.ticketid = htblnotes.ticketid
Where htblticket.ticketstateid = 2 And DateDiff(minute, htblticket.date,
Current_TimeStamp) <= 1440
Date Created: 11/15/2016 14:44:4
Agent: 16
Requester: 32
Subject: Test Subject
Description: Test description
‎11-17-2016 09:29 AM
Select Top 1000000 htblticket.date As [Date Created],
htblusers1.name As Agent,
htblusers.name As Requester,
htblticket.subject As Subject,
htblnotes.note As Description
From htblticket
Inner Join htblnotes On htblticket.ticketid = htblnotes.ticketid
Inner Join htblusers On htblusers.userid = htblticket.fromuserid
Inner Join htblticketstates On htblticketstates.ticketstateid =
htblticket.ticketstateid
Inner Join htblagents On htblagents.agentid = htblticket.agentid
Inner Join htblusers htblusers1 On htblusers1.userid = htblagents.userid And
htblusers.userid = htblnotes.userid
Where DateDiff(minute, htblticket.date, Current_TimeStamp) <= 1440
‎11-16-2016 03:55 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now