/build/static/layout/Breadcrumb_cap_w.png

How Do I get a total number of tickets submitted for the 7/1/2018 - 6/30/19 range and another with a break down of all departments and the number submitted.

How Do I get a total number of tickets submitted for the 7/1/2018 - 6/30/19 range and another report with a break down of all the departments and the number submitted.


1 Comment   [ + ] Show comment
  • This should get you most of the way there, adjust to your needs.

    SELECT HD_QUEUE.NAME as Queue,
    count(HD_TICKET.ID) as "Tickets Created"
    from HD_TICKET
    JOIN HD_QUEUE on HD_QUEUE.ID = HD_TICKET.HD_QUEUE_ID
    where HD_TICKET.CREATED>'2019-09-21 00:00:00' /*change the start date here Y-M-D*/
    and HD_TICKET.CREATED<'2019-10-18 23:59:59' /*change the end date here Y-M-D*/
    and HD_TICKET.HD_QUEUE_ID in (2,3,4,10,12) /*add queue numbers here*/
    GROUP BY QUEUE - grenaud 5 years ago

Answers (0)

Be the first to answer this question

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ