→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎04-17-2017 03:32 PM
Solved! Go to Solution.
‎05-01-2017 04:37 PM
Select
htblticket.ticketid,
htblticket.subject,
htblticket.date as creationDate,
users.name as username,
agents.name as currentAgent,
htblticket.agentid,
htblnotes.note
from htblticket
inner join htblnotes on htblnotes.ticketid = htblticket.ticketid
left outer join htblusers as users on users.userid = htblticket.fromuserid
left outer join htblusers as agents on agents.userid = htblticket.agentid
Where htblticket.date >= (GetDate() - 7)
Order by htblticket.date, htblticket.ticketid, htblnotes.date
‎05-01-2017 04:37 PM
Select
htblticket.ticketid,
htblticket.subject,
htblticket.date as creationDate,
users.name as username,
agents.name as currentAgent,
htblticket.agentid,
htblnotes.note
from htblticket
inner join htblnotes on htblnotes.ticketid = htblticket.ticketid
left outer join htblusers as users on users.userid = htblticket.fromuserid
left outer join htblusers as agents on agents.userid = htblticket.agentid
Where htblticket.date >= (GetDate() - 7)
Order by htblticket.date, htblticket.ticketid, htblnotes.date
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now