Hi,
I have a table which I want to analyse and get the following results from:
The table contains is a helpdesk table and contains information on a job, who it is allocated to and when it was submitted.
I'm trying to break down the table and find out what jobs are submitted to a certain group of people and the length of time the job was sitting there.
So for example if there are 10 jobs in the queue, I want to be able to say ok out of the 10 jobs, 5 of them were logged in the last 7 days, 2 were logged in the last fortnight and the rest in the last month.
SELECT ticket_id, priority,submitted_on,deadline,assigned_to
FROM pt6hd_ticket_view
WHERE (NOT status = 'closed' and (assigned_to = 'sean' or assigned_to = 'andrew' or assigned_to = 'matthew' or assigned_to = 'kevin' or assigned_to = '!service_desk' or assigned_to = 'belinda'))
ORDER BY submitted_on ASC
The above is my code so far...
Any help would be appreciated.. thanks.