Below is the complete content of the command:
------------------------------------------
SELECT
srvc_ctr_nm SrvcCntr,
a.user_id Employee,
rep_actn_cd,
CASE
WHEN (extend( end_tme, year to second ) - extend( strt_tme, year to second )) < "0 00:01:00" THEN "< 60 "
WHEN (extend( end_tme, year to second ) - extend( strt_tme, year to second )) > "0 00:07:30" THEN "> 450 "
ELSE "60 - 450"
END AHT,
COUNT(*) NMBR
FROM stat_rep_time a, usr_profile_master b
WHERE a.user_id = b.user_id AND
rep_actn_cd ="N" AND
srvc_ctr_nm ="{?reqSrvcCntr}" AND
a.user_id NOT MATCHES "uut*" AND
a.user_id NOT MATCHES "00*" AND
a.user_id NOT MATCHES "a2*" AND
a.user_id NOT MATCHES "csm*" AND
a.user_id !="SODS" AND
a.user_id != mgr_id AND
quit_reas_desc IS NOT NULL AND
EXTEND(end_tme, Year to Day) BETWEEN Extend({?reqLoDate}, Year to Day) AND Extend({?reqHiDate}, Year to Day)
GROUP BY srvc_ctr_nm, a.user_id, rep_actn_cd, strt_tme, end_tme
UNION SELECT
srvc_ctr_nm SrvcCntr,
a.user_id Employee,
rep_actn_cd,
CASE
WHEN extend( end_tme, year to second ) - extend( strt_tme, year to second ) < "0 00:01:00" THEN "< 60 "
WHEN extend( end_tme, year to second ) - extend( strt_tme, year to second ) > "0 00:07:30" THEN "> 450 "
ELSE "60 - 450"
END AHT,
COUNT(*) NMBR
FROM stat_rep_time a, usr_profile_master b
WHERE a.user_id = b.user_id AND
rep_actn_cd IN("U","S","H","D") AND
srvc_ctr_nm ="{?reqSrvcCntr}" AND
a.user_id NOT MATCHES "uut*" AND
a.user_id NOT MATCHES "00*" AND
a.user_id NOT MATCHES "a2*" AND
a.user_id NOT MATCHES "csm*" AND
a.user_id !="SODS" AND
a.user_id != mgr_id AND
EXTEND(end_tme, Year to Day) BETWEEN Extend({?reqLoDate}, Year to Day) AND Extend({?reqHiDate}, Year to Day)
GROUP BY srvc_ctr_nm, a.user_id, rep_actn_cd, strt_tme, end_tme
------------------------------------------
Crosstab Format:
--ROWS--
Command.SrvcCntr
Command.Employee
Command.AHT
--COLUMNS--
Command.Rep_Actn_Cd
--SUMMARIZED FIELDS--
[SUM of Command.NMBR]
[Percentage of SUM of Command.NMBR]