rdrose2499
Programmer
I have a report in which I need to specify how many tickets a tech has logged and closed for each day. I am able to get the closed value to display correctly. However, my logged field is a little tricky.
In the table, the field CALLRECEIVEDBY is the what is first populated when a ticket is created. The person who took the call will either make themselves the TECH or reassign it to someone else. This is what the SQL query looks like in my report:
SELECT
CALLS."ID", CALLS."CALLDATE", CALLS."TECH", CALLS."CLOSED", CALLS."DATETIMECLOSED", CALLS."CALLRECEIVEDBY"
FROM
"SMHDirectory"."dbo"."CALLS" CALLS, Tech
WHERE
calls.tech = tech.tech and team = 'desktop'
ORDER BY
CALLS."TECH" ASC , callreceivedby
The problem I have is for logged I need to make the formula look like this:
select count(id) from calls where calldate = ?startdate order by callreceivedby
I have one group in my report and that is CALLS.TECH. I tried playing with putting another group CALLS.CALLRECEIVEDBY, but it's like it's ignoring my SQL query because it's pulling back all the available techs instead of just the ones who are part of the "desktop" team.
Not only that, but it's not displaying the value for count on ID for that group.
Help?
In the table, the field CALLRECEIVEDBY is the what is first populated when a ticket is created. The person who took the call will either make themselves the TECH or reassign it to someone else. This is what the SQL query looks like in my report:
SELECT
CALLS."ID", CALLS."CALLDATE", CALLS."TECH", CALLS."CLOSED", CALLS."DATETIMECLOSED", CALLS."CALLRECEIVEDBY"
FROM
"SMHDirectory"."dbo"."CALLS" CALLS, Tech
WHERE
calls.tech = tech.tech and team = 'desktop'
ORDER BY
CALLS."TECH" ASC , callreceivedby
The problem I have is for logged I need to make the formula look like this:
select count(id) from calls where calldate = ?startdate order by callreceivedby
I have one group in my report and that is CALLS.TECH. I tried playing with putting another group CALLS.CALLRECEIVEDBY, but it's like it's ignoring my SQL query because it's pulling back all the available techs instead of just the ones who are part of the "desktop" team.
Not only that, but it's not displaying the value for count on ID for that group.
Help?