Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
sureshkumar.mr Offline
Member
 
Posts: 149
Join Date: May 2006
Question Report - SQL Query Help! - 28-09-2006, 03:24 PM

Hi Friends,
I have written a SQL query which lists Ticket ID, Date, Issue raised by, Subject, Ticket Owner, Category, Replies, Status and SLA

SELECT FROM_UNIXTIME(a.dateline,'%d-%b-%y') 'Date', a.ticketid, a.fullname, a.subject,
d.fullname, b.title, a.totalreplies, c.title 'Status', f.title
from swticketpriorities b, swtickets a, swticketstatus c, swstaff d, swslaplanprioritylink e,swslaplans f
WHERE
d.staffid = a.ownerstaffid and
c.ticketstatusid = a.ticketstatusid and
b.priorityid = a.priorityid and
e.slaplanid = f.slaplanid and
e.priorityid=b.priorityid and
a.departmentid = 2 and
MONTH(FROM_UNIXTIME(a.dateline)) = 9
ORDER BY a.dateline DESC

I need to include Avg Response time, Resolution time and a custom field from custom table. I don't know how to use left join and right join in MySQL.

Any help will be appreciated.

Last edited by sureshkumar.mr; 03-10-2006 at 02:56 PM.
   
Reply With Quote
Reply

Tags
query, report, sql

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL query to show response time in minutes jamesM Developers & Code 0 22-09-2006 11:04 PM
v3.00.27 Stable Available Varun Shoor News and Announcements 1 05-12-2005 10:21 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46