Hi want to create one crystal report that returns the values for several items. I opened up a new report and the only thing I added was a command. In the command I added the following quieries:
This doesn't look correct, it will only return the first query. What am I doing wrong? I also tried to do this in a crosstab but that didn't work. I know this can be done however I just need someone to point me in the right direction.
Any help would be much appreciated.
Thanks a million in advance....
Thanks
Janet
Code:
select Count (*)As CallsIn from heat.calllog
where
(HEAT.CallLog.CS_Application = 'Encore' OR
HEAT.CallLog.CS_Application = 'Encore Timeline Tracker' or HEAT.CallLog.CS_Application = 'Encore Encounter Tracker')
SELECT COUNT(*) AS CallsClosed
FROM HEAT.calllog
WHERE (heat.calllog.callstatus = 'Closed')and
(HEAT.CallLog.CS_Application = 'Encore' OR HEAT.CallLog.CS_Application = 'Encore Timeline Tracker' or HEAT.CallLog.CS_Application = 'Encore Encounter Tracker')
SELECT COUNT(*) AS CallWaitingReplicationForWeek
FROM HEAT.Asgnmnt INNER JOIN
HEAT.CallLog ON HEAT.Asgnmnt.CallID = HEAT.CallLog.CallID
WHERE (heat.calllog.callstatus = 'open')and (HEAT.Asgnmnt.AssgState = 'Investigate/Replicate' OR
HEAT.Asgnmnt.AssgState = 'Submitted' OR
HEAT.Asgnmnt.AssgState = 'Working') AND (HEAT.CallLog.CS_Application = 'Encore' OR
HEAT.CallLog.CS_Application = 'Encore Timeline Tracker' or HEAT.CallLog.CS_Application = 'Encore Encounter Tracker')
AND (HEAT.Asgnmnt.GroupName = 'Towson Support') and (heat.asgnmnt.whoresolv = '')
SELECT COUNT(*) AS CallWaitingReplicationGrandTotal
FROM HEAT.Asgnmnt INNER JOIN
HEAT.CallLog ON HEAT.Asgnmnt.CallID = HEAT.CallLog.CallID
WHERE (heat.calllog.callstatus = 'open')and (HEAT.Asgnmnt.AssgState = 'Investigate/Replicate' OR
HEAT.Asgnmnt.AssgState = 'Submitted' OR
HEAT.Asgnmnt.AssgState = 'Working') AND (HEAT.CallLog.CS_Application = 'Encore' OR
HEAT.CallLog.CS_Application = 'Encore Timeline Tracker' or HEAT.CallLog.CS_Application = 'Encore Encounter Tracker')
AND (HEAT.Asgnmnt.GroupName = 'Towson Support') and (heat.asgnmnt.whoresolv = '')
SELECT COUNT(*) AS AssignEngineeringMaint
FROM HEAT.Asgnmnt INNER JOIN
HEAT.CallLog ON HEAT.Asgnmnt.CallID = HEAT.CallLog.CallID
WHERE (HEAT.CallLog.CallStatus = 'Open') AND (HEAT.Asgnmnt.GroupName = 'Product Maint')
AND (HEAT.Asgnmnt.Assignee = 'Engineering Maint') AND
(HEAT.CallLog.CS_Application = 'Encore' OR
HEAT.CallLog.CS_Application = 'Encore Timeline Tracker' or HEAT.CallLog.CS_Application = 'Encore Encounter Tracker')
SELECT COUNT(*) AS AssignFormsMaint
FROM HEAT.Asgnmnt INNER JOIN
HEAT.CallLog ON HEAT.Asgnmnt.CallID = HEAT.CallLog.CallID
WHERE (HEAT.CallLog.CallStatus = 'Open') AND (HEAT.Asgnmnt.GroupName = 'Product Maint')
AND (HEAT.Asgnmnt.Assignee = 'Forms Maint') AND
(HEAT.CallLog.CS_Application = 'Encore' OR
HEAT.CallLog.CS_Application = 'Encore Timeline Tracker' or HEAT.CallLog.CS_Application = 'Encore Encounter Tracker')
SELECT COUNT(*) AS AssignPCMaint
FROM HEAT.Asgnmnt INNER JOIN
HEAT.CallLog ON HEAT.Asgnmnt.CallID = HEAT.CallLog.CallID
WHERE (HEAT.CallLog.CallStatus = 'Open') AND (HEAT.Asgnmnt.GroupName = 'Product Maint')
AND (HEAT.Asgnmnt.Assignee = 'PC Maint') AND
(HEAT.CallLog.CS_Application = 'Encore' OR
HEAT.CallLog.CS_Application = 'Encore Timeline Tracker' or HEAT.CallLog.CS_Application = 'Encore Encounter Tracker')
SELECT COUNT(*) AS ClientRejected
FROM HEAT.Asgnmnt INNER JOIN
HEAT.CallLog ON HEAT.Asgnmnt.CallID = HEAT.CallLog.CallID
WHERE (HEAT.CallLog.CallStatus = 'Open') AND (HEAT.Asgnmnt.GroupName = 'Product Maint')
AND (HEAT.Asgnmnt.Assignee = 'Client Rejected') AND
(HEAT.CallLog.CS_Application = 'Encore' OR
HEAT.CallLog.CS_Application = 'Encore Timeline Tracker' or HEAT.CallLog.CS_Application = 'Encore Encounter Tracker')
SELECT COUNT(*) AS ChangeRequest
FROM HEAT.Asgnmnt INNER JOIN
HEAT.CallLog ON HEAT.Asgnmnt.CallID = HEAT.CallLog.CallID
WHERE (HEAT.CallLog.CallStatus = 'Open') AND (HEAT.Asgnmnt.GroupName = 'Change Requests')
This doesn't look correct, it will only return the first query. What am I doing wrong? I also tried to do this in a crosstab but that didn't work. I know this can be done however I just need someone to point me in the right direction.
Any help would be much appreciated.
Thanks a million in advance....
Thanks
Janet