‎01-05-2022 05:15 PM
‎03-04-2022 12:20 AM
mdavis2503 wrote:
Is there a report that can be generated to identify the resolution by problem? Such as printer, phone, workstation, etc?
Select Top 1000000 htblticket.ticketid,
'#' + Cast(htblticket.ticketid As nvarchar) As Ticket,
htblticket.date As CreationDate,
htblticket.updated As LastUpdated,
htbltickettypes.typename As Type,
htblticketstates.statename As State,
htblpriorities.name As Priority,
htblsource.name As Source,
htblusers1.name As AssignedAgent,
htblusers2.name As UserLastNote,
'../helpdesk/icons/' + htbltickettypes.icon As icon,
htblticket.subject As Subject,
htblticketstates.description,
htblusers.name,
htblnotes.note
From htblticket
Inner Join htblpriorities On htblpriorities.priority = htblticket.priority
Inner Join htblticketstates On htblticketstates.ticketstateid =
htblticket.ticketstateid
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 htbltickettypes On htblticket.tickettypeid =
htbltickettypes.tickettypeid
Inner Join htblsource On htblticket.sourceid = htblsource.sourceid
Inner Join htblusers htblusers2 On htblticket.userid_lastnote =
htblusers2.userid
Inner Join lansweeperdb.dbo.htblnotes On htblticket.ticketid =
htblnotes.ticketid And htblusers.userid = htblnotes.userid And
htblusers1.userid = htblnotes.userid And htblusers2.userid =
htblnotes.userid
Where htblnotes.note Like '%printer%'
Order By htblticket.ticketid
<div style="font:12px Arial,Verdana;font-size:12px;font-family:Arial,Verdana;">...
Where htblnotes.note Like '%printer%' AND NOT Like '<div style%'
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now