‎07-21-2016 09:57 AM
Solved! Go to Solution.
‎08-04-2016 02:01 PM
Select Top 1000000 htblticket.ticketid As ID,
htblticket.subject As Subject,
htblticket.updated As [Closed Date],
Sum(htblnotes.timeworked) As [Time Worked (Minutes)],
htblusers.name As Agent,
htbltickettypes.typename As [Ticket Type],
DatePart(mm, htblticket.updated) As Month,
DatePart(yy, htblticket.updated) As Year
From htblticket
Inner Join htblnotes On htblticket.ticketid = htblnotes.ticketid
Inner Join htblagents On htblagents.agentid = htblticket.agentid
Inner Join htblusers On htblusers.userid = htblagents.userid
Inner Join htblticketstates On htblticketstates.ticketstateid =
htblticket.ticketstateid
Inner Join htbltickettypes On htblticket.tickettypeid =
htbltickettypes.tickettypeid
Where DatePart(mm, htblticket.updated) =8 And DatePart(yy, htblticket.updated)
=2016 And htblticketstates.statename = 'Closed'
Group By htblticket.ticketid,
htblticket.subject,
htblticket.updated,
htblusers.name,
htbltickettypes.typename
Select Top 1000000 htblticket.ticketid,
htblusers.name As [User],
htblticket.subject,
htblusers1.name As Agent,
htbltickettypes.typename,
htblticket.date As [Creation Date],
DatePart(mm, htblticket.date) As [Search Month],
DatePart(yy, htblticket.date) As [Search Year]
From htblticket
Inner Join htblusers On htblusers.userid = htblticket.fromuserid
Inner Join htblagents On htblagents.agentid = htblticket.agentid
Inner Join htblusers htblusers1 On htblusers1.userid = htblagents.userid
Inner Join htbltickettypes On htblticket.tickettypeid =
htbltickettypes.tickettypeid
Where DatePart(mm, htblticket.date) =8 And DatePart(yy, htblticket.date) =2016
‎09-28-2016 11:13 AM
‎09-27-2016 08:23 PM
‎09-23-2016 08:40 AM
‎09-22-2016 03:16 PM
‎09-22-2016 03:03 PM
‎09-21-2016 07:47 PM
‎09-23-2016 07:47 AM
Suzan.A wrote:
To run any of the reports found in the report center, do the following:
Open the report builder in the Lansweeper web console under Reports/Create New Report.
Paste the SQL query (report) found in the report center at the bottom of the page, replacing the default SQL query.
Left-click somewhere in the upper section of the page so the query applies.
Give the report a title.
Hit the Save & Run button to save the report. Export options are listed on the left.
‎08-04-2016 02:01 PM
Select Top 1000000 htblticket.ticketid As ID,
htblticket.subject As Subject,
htblticket.updated As [Closed Date],
Sum(htblnotes.timeworked) As [Time Worked (Minutes)],
htblusers.name As Agent,
htbltickettypes.typename As [Ticket Type],
DatePart(mm, htblticket.updated) As Month,
DatePart(yy, htblticket.updated) As Year
From htblticket
Inner Join htblnotes On htblticket.ticketid = htblnotes.ticketid
Inner Join htblagents On htblagents.agentid = htblticket.agentid
Inner Join htblusers On htblusers.userid = htblagents.userid
Inner Join htblticketstates On htblticketstates.ticketstateid =
htblticket.ticketstateid
Inner Join htbltickettypes On htblticket.tickettypeid =
htbltickettypes.tickettypeid
Where DatePart(mm, htblticket.updated) =8 And DatePart(yy, htblticket.updated)
=2016 And htblticketstates.statename = 'Closed'
Group By htblticket.ticketid,
htblticket.subject,
htblticket.updated,
htblusers.name,
htbltickettypes.typename
Select Top 1000000 htblticket.ticketid,
htblusers.name As [User],
htblticket.subject,
htblusers1.name As Agent,
htbltickettypes.typename,
htblticket.date As [Creation Date],
DatePart(mm, htblticket.date) As [Search Month],
DatePart(yy, htblticket.date) As [Search Year]
From htblticket
Inner Join htblusers On htblusers.userid = htblticket.fromuserid
Inner Join htblagents On htblagents.agentid = htblticket.agentid
Inner Join htblusers htblusers1 On htblusers1.userid = htblagents.userid
Inner Join htbltickettypes On htblticket.tickettypeid =
htbltickettypes.tickettypeid
Where DatePart(mm, htblticket.date) =8 And DatePart(yy, htblticket.date) =2016
‎05-06-2020 10:18 AM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now