I generate a query which contains the following
date, workorder, downtime, mttr, deptgroup, status
I need to display the following variables in a report
Could someone help me with the syntax
mach_dt = sum(downtime) where deptgroup = 1
mach_wo = count(workorder) where deptgroup = 1 and status = 1 or 2
pna_dt = sum(downtime) where deptgroup = 2
thank you