→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !
‎11-09-2017 12:18 AM
Select Top 1000000 htblusers.department As Department,
htblticket.ticketid As [Ticket ID],
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
Left Join htblagents On htblagents.agentid = htblticket.agentid
Left Join htblusers htblusers1 On htblusers1.userid = htblagents.userid
Inner Join htblticketstates On htblticketstates.ticketstateid =
htblticket.ticketstateid
Where htblticket.date Between Cast('11-05-2017' As Date) And Cast('11-09-2017'
As Date) And htblticketstates.statename = 'Closed'
Order By Department,
[Ticket ID],
[Date Created]
‎11-09-2017 09:30 AM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now