Advertisement

09.15.2008 at 06:35PM PDT, ID: 23733833
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.4

Count nbr of activities completed

Asked by cpwilson in Cold Fusion Markup Language, ColdFusion Application Server

Tags:

Have a very simple  customer service-type module running where people enter calls into the database, then make callbacks until the issue is resolved. Callbacks are related to intake calls by intakeid. Intake calls are related to third table that determines the unit you work in. Need to be able to get a count of how many calls each unit has handled, but stumped on proper code to accomplish what I want. Attached code gets me everything at one time for everyone. Need to also show how many calls were handled by a particular person when queriedStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
<cfparam name='search_startdate' default = "">
<cfparam name='search_enddate' default = "">
<cfparam name='search_unitid' default  = "">
<cfparam name='search_lsccode' default = "">
<cfparam name = 'search_advocate' default = "">
<cfparam name='search_disposition' default = "">
<!----search products---->
<cfquery name="get_callbacks" datasource="#datasource#">
select  *  from call_intake
 
where 1=1
 
<cfif search_unitid is not "">
	and rils_unitid = #search_unitID#
</cfif>
 
<cfif search_advocate is not "">
	and intake_screener = '#search_advocate#'
</cfif>
 
<cfif search_lsccode is not "">
	and lsc_problemcodeid = #search_lsccode#
</cfif>
 
<cfif search_enddate is not "">
	and call_intakedate between #createODBCdate(search_startdate)# and #createODBCdate(search_enddate)# + 1
</cfif>
 
<cfif search_disposition is not "">
	and callback_disposition = #search_disposition#
</cfif>
 
and disposition_date  < #createODBCdate(now())#
and callback_disposition > 3
order by rils_unitid, call_intakedate desc
 
</cfquery>
<cfset query_time = cfquery.executiontime / 1000>
<cfset the_recordcount = get_callbacks.recordcount>
 
<!----next n interface code---->
<cfinclude template="next_n_intake_interface.cfm">
<cfloop query = 'get_callbacks'>
<cfquery name='get_calls_made' datasource='#datasource#'>
select  * from callbacks where intakeid = #get_callbacks.intakeid#
</cfquery>
<cfquery name='get_callback_codes' datasource='#datasource#'>
select * from callback_dispositions where callback_dispositionid = #get_callbacks.callback_disposition#
</cfquery>
</cfloop>
 
<cfquery name='get_advocates' datasource='#datasource#'>
	select * from system_users
	</cfquery>
	<cfquery name='get_rils_units' datasource='#datasource#'>
	select * from rils_units where rils_unitid < 10
	</cfquery>
	<cfquery name='get_lsc_code' datasource='#datasource#'>
	select * from lsc_problemcodes
	</cfquery>
		<cfquery name='get_disposition_codes' datasource='#datasource#'>
	select * from callback_dispositions where callback_dispositionid > 3
	</cfquery>
	<cfif get_calls_made.callback_dispositionid eq get_callbacks.callback_disposition>
	<cfset lagtime = datediff("d", get_callbacks.call_intakedate, get_calls_made.callback_date)>
	<cfelse>
	<cfset lagtime = datediff("d", get_callbacks.call_intakedate, get_callbacks.disposition_date)>
	</cfif>
 
Loading Advertisement...
 
[+][-]09.24.2008 at 06:12AM PDT, ID: 22559286

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Cold Fusion Markup Language, ColdFusion Application Server
Tags: coldfusion
Sign Up Now!
Solution Provided By: gdemaria
Participating Experts: 1
Solution Grade: B
 
 
[+][-]09.30.2008 at 08:13AM PDT, ID: 22606131

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.30.2008 at 09:12AM PDT, ID: 22606799

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09.30.2008 at 09:40AM PDT, ID: 22607112

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 14-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628