‎11-09-2016 02:18 PM
Select Top 1000000 htblticket.ticketid,
htblticket.subject,
htblticket.priority,
htblticket.date,
htblticket.updated,
htblticketstates.statename,
htblusers.name,
htblticket.assetid
From htblticket
Inner Join htblticketstates On htblticketstates.ticketstateid =
htblticket.ticketstateid
Inner Join htblusers On htblusers.userid = htblticket.fromuserid,
htbltickettypes
Where htblticket.updated > GetDate() - 30 And htblticketstates.statename =
'Closed'
‎11-17-2016 11:47 AM
Select Top 1000000 htblticket.ticketid,
htblticket.subject,
htblusers1.name As Agent,
htblusers.name As Requester,
htblticket.priority,
htblticket.date,
htblticket.updated,
htblticketstates.statename,
htblticket.assetid
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 htblticket.updated > GetDate() - 30 And htblticketstates.statename =
'Closed'
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now