跳到主要内容

Summing ticket charges - 知识库 / Developer & Reporting / DPQL Examples - Deskpro Support

Summing ticket charges

作者列表

If you want to get the sum of all charges on a ticket, you can do this:

 

SELECT tickets.subject, DPQL_ALIAS(CONCAT(FLOOR(tickets.charges.charge_time / 3600), ' Hours ', FLOOR(MOD(SUM(tickets.charges.charge_time), 3600) / 60), ' mins'), 'Charge Time')

FROM tickets

GROUP BY tickets.id AS 'ID'

有帮助 没有帮助

131 人中 54 人认为这个页面有帮助

添加一条评论

请登录或注册以提交评论。

是否需要密码提醒?