Cisco CUIC Real Time Agent Report with Not Ready Reason Code

I had my first exposure to CUIC last week and was glad to finally see this product and get to play with it.  For the most part it looks just like CUIS, except for the whole appliance model.  The UI is a little more streamlined, but what I remember from CUIS, it’s all there.  Now, one big change is that with CUIC, reports are cut down to a standard set (20 if I remember correctly) as opposed to the dozens of reports available through WebView.  This created some initial confusion as you try to familiarize yourself with what kind of data the new reports have.  Perhaps the best feature is the ability to remove columns from reports and just display the data you want to see.

One report which comes up all the time is an agent real time report showing the agent’s current not ready reason code.  I have an SQL query I use to get this data myself, but now that CUIC is supposed to make it easier to create your own reports, I wanted to give it a shot and create my very first custom report.

First, let’s start with the SQL query which joins the real time agent states as well as reason code tables.

SELECT [awdb].[dbo].[t_Agent_Real_Time].[SkillTargetID]
        ,[awdb].[dbo].[t_Agent].[EnterpriseName]
      ,[DateTime]
      ,[SkillGroupSkillTargetID]
      ,[ServiceSkillTargetID]
      ,[AgentState]
      ,'Agent State' =
            CASE
                  WHEN [AgentState] = 2 THEN 'Not Ready'
                  WHEN [AgentState] = 3 THEN 'Ready'
                  WHEN [AgentState] = 4 THEN 'Talking'
                  WHEN [AgentState] = 5 THEN 'Wrap Up'
            END
      ,[awdb].[dbo].[t_Agent_Real_Time].[ReasonCode]
      ,[awdb].[dbo].[t_Reason_Code].[ReasonText]
      ,[Extension]
      ,[DateTimeLastStateChange]
  FROM [awdb].[dbo].[t_Agent_Real_Time]
  JOIN [awdb].[dbo].[t_Reason_Code] ON ([awdb].[dbo].[t_Agent_Real_Time].[ReasonCode]=[awdb].[dbo].[t_Reason_Code].[ReasonCode])
  JOIN [awdb].[dbo].[t_Agent] ON [awdb].[dbo].[t_Agent_Real_Time].[SkillTargetID] = [awdb].[dbo].[t_Agent].[SkillTargetID]
GO

Now, don’t judge me on a) the poor SQL writing skills or b) my affinity to spacing.  It’s important to understand what the above query is doing to ensure you know where your reason codes are coming from.

Second, you will need to create a new report definition based on the stock Agent Real Time report definition.  You will need to extract the SQL of the report query shown below.

SELECT Agent.EnterpriseName, full_name=(Person.LastName + ', ' + Person.FirstName) , Skill_Group.EnterpriseName as SkillName, Agent.SkillTargetID, Agent_Real_Time.DateTime, Datepart(yy, Agent_Real_Time.DateTime) as Year, Datepart(mm, Agent_Real_Time.DateTime) as Month, Datepart(ww, Agent_Real_Time.DateTime) as Week, Datepart(dy, Agent_Real_Time.DateTime) as DOY, Datepart(dw, Agent_Real_Time.DateTime) as DOW, CONVERT(char(10),Agent_Real_Time.DateTime,101) as DATE, Agent_Real_Time.SkillGroupSkillTargetID, ServiceName = Service.EnterpriseName, Media = Media_Routing_Domain.EnterpriseName, CASE Agent_Real_Time.AgentState WHEN 0 THEN 'Logged Out' WHEN 1 THEN 'Logged On' WHEN 2 THEN 'Not Ready' WHEN 3 THEN 'Ready' WHEN 4 THEN 'Talking' WHEN 5 THEN 'Work Not Ready' WHEN 6 THEN 'Work Ready' WHEN 7 THEN 'Busy Other' WHEN 8 THEN 'Reserved' WHEN 9 THEN 'Unknown' WHEN 10 THEN 'Hold' WHEN 11 THEN 'Active' WHEN 12 THEN 'Paused' WHEN 13 THEN 'Interrupted' WHEN 14 THEN 'Not Active' ELSE CONVERT(VARCHAR, Agent_Real_Time.AgentState) END AgentState, CASE Agent_Real_Time.PhoneType When 0 THEN 'Not Mobile' WHEN 1 THEN 'Call By Call' WHEN 2 THEN 'Nailed Connection' Else 'Not Applicable' END phonetypetext, remotephonenumber = Agent_Real_Time.RemotePhoneNumber, ReasonCode = CASE WHEN Agent_Real_Time.ReasonCode = 0 THEN 'NONE' ELSE CONVERT(VARCHAR, Agent_Real_Time.ReasonCode) END , Agent_Real_Time.Extension, Agent_Real_Time.DateTimeLastStateChange, Agent_Real_Time.DateTimeLogin, CASE WHEN RequestedSupervisorAssist = 1 THEN 'Yes' ELSE 'No' END RequestedSupervisorAssist, CASE Agent_Real_Time.Destination WHEN 1 THEN 'ACD' WHEN 2 THEN 'Direct' WHEN 3 THEN 'Auto Out' WHEN 4 THEN 'Reserve' WHEN 5 THEN 'Preview' ELSE 'Not Applicable' END Destination, CASE Agent_Real_Time.Direction WHEN 1 THEN 'In' WHEN 2 THEN 'Out' WHEN 3 THEN 'Other' ELSE 'Not Applicable' END Direction, CASE WHEN Agent_Real_Time.OnHold = 1 THEN 'Yes' ELSE 'No' END OnHold, Agent_Real_Time.NetworkTargetID, Agent_Real_Time.AgentStatus, Agent_Real_Time.CustomerPhoneNumber, Agent_Real_Time.CustomerAccountNumber, Agent_Real_Time.CampaignID, Agent_Real_Time.QueryRuleID, Duration = DATEDIFF(ss, Agent_Real_Time.DateTimeLastStateChange, CASE WHEN (DATEDIFF(ss, Agent_Real_Time.DateTimeLastStateChange, (SELECT NowTime from Controller_Time (nolock))) <= 0 ) THEN Agent_Real_Time.DateTimeLastStateChange ELSE(SELECT NowTime FROM Controller_Time (nolock)) END), CASE WHEN Agent_Real_Time.Routable = 1 THEN 'Yes' ELSE 'No' END RoutableText,Agent_Real_Time.DateTimeLastModeChange, Agent_Real_Time.CallInProgress, Agent_Real_Time.MaxTasks, CASE WHEN Agent_Real_Time.AvailableInMRD = 0 THEN 'No' WHEN Agent_Real_Time.AvailableInMRD = 1 THEN 'Yes_ICM' WHEN Agent_Real_Time.AvailableInMRD = 2 THEN 'Yes_APP' ELSE 'No' END AvailInMRDText, Agent_Real_Time.DateTimeTaskLevelChange, Agent_Real_Time.RouterCallsQueueNow, Agent_Real_Time.RouterLongestCallQ FROM Agent (nolock), Person (nolock), Media_Routing_Domain (nolock), Agent_Real_Time (nolock) LEFT JOIN Service (nolock) ON Agent_Real_Time.ServiceSkillTargetID = Service.SkillTargetID, Skill_Group WHERE ( Agent_Real_Time.SkillGroupSkillTargetID = Skill_Group.SkillTargetID) and Agent.PersonID=Person.PersonID and Media_Routing_Domain.MRDomainID = Agent_Real_Time.MRDomainID and ( Agent.SkillTargetID = Agent_Real_Time.SkillTargetID ) UNION SELECT Agent.EnterpriseName, full_name=(Person.LastName + ', ' + Person.FirstName) , convert(varchar,'Not Applicable'), Agent_Real_Time.SkillTargetID, Agent_Real_Time.DateTime, Datepart(yy, Agent_Real_Time.DateTime) as Year, Datepart(mm, Agent_Real_Time.DateTime) as Month, Datepart(ww, Agent_Real_Time.DateTime) as Week, Datepart(dy, Agent_Real_Time.DateTime) as DOY, Datepart(dw, Agent_Real_Time.DateTime) as DOW, CONVERT(char(10),Agent_Real_Time.DateTime,101) as DATE, Agent_Real_Time.SkillGroupSkillTargetID, ServiceName = Service.EnterpriseName, Media=Media_Routing_Domain.EnterpriseName, CASE Agent_Real_Time.AgentState WHEN 0 THEN 'Logged Out' WHEN 1 THEN 'Logged On' WHEN 2 THEN 'Not Ready' WHEN 3 THEN 'Ready' WHEN 4 THEN 'Talking' WHEN 5 THEN 'Work Not Ready' WHEN 6 THEN 'Work Ready' WHEN 7 THEN 'Busy Other' WHEN 8 THEN 'Reserved' WHEN 9 THEN 'Unknown' WHEN 10 THEN 'Hold' WHEN 11 THEN 'Active' WHEN 12 THEN 'Paused' WHEN 13 THEN 'Interrupted' WHEN 14 THEN 'Not Active' ELSE CONVERT(VARCHAR, Agent_Real_Time.AgentState) END AgentState, CASE Agent_Real_Time.PhoneType When 0 THEN 'Not Mobile'WHEN 1 THEN 'Call By Call' WHEN 2 THEN 'Nailed Connection' Else 'Not Applicable' END phonetypetext, remotephonenumber = Agent_Real_Time.RemotePhoneNumber, ReasonCode = CASE WHEN Agent_Real_Time.ReasonCode = 0 THEN 'NONE' ELSE CONVERT(VARCHAR, Agent_Real_Time.ReasonCode) END , Agent_Real_Time.Extension, Agent_Real_Time.DateTimeLastStateChange, Agent_Real_Time.DateTimeLogin, CASE WHEN RequestedSupervisorAssist = 1 THEN 'Yes' ELSE 'No' END RequestedSupervisorAssist, CASE Agent_Real_Time.Destination WHEN 1 THEN 'ACD' WHEN 2 THEN 'Direct' WHEN 3 THEN 'Auto Out' WHEN 4 THEN 'Reserve' WHEN 5 THEN 'Preview' ELSE 'Not Applicable' END Destination, CASE Agent_Real_Time.Direction WHEN 1 THEN 'In' WHEN 2 THEN 'Out' WHEN 3 THEN 'Other' ELSE 'Not Applicable' END Direction, CASE WHEN Agent_Real_Time.OnHold = 1 THEN 'Yes' ELSE 'No' END OnHold, Agent_Real_Time.NetworkTargetID, Agent_Real_Time.AgentStatus, Agent_Real_Time.CustomerPhoneNumber, Agent_Real_Time.CustomerAccountNumber, Agent_Real_Time.CampaignID, Agent_Real_Time.QueryRuleID, Duration=DATEDIFF(ss, Agent_Real_Time.DateTimeLastStateChange, CASE WHEN (DATEDIFF(ss, Agent_Real_Time.DateTimeLastStateChange, (SELECT NowTime from Controller_Time (nolock))) <= 0 ) THEN Agent_Real_Time.DateTimeLastStateChange ELSE (SELECT NowTime FROM Controller_Time (nolock)) END), CASE WHEN Agent_Real_Time.Routable = 1 THEN 'Yes' ELSE 'No' END RoutableText , Agent_Real_Time.DateTimeLastModeChange, Agent_Real_Time.CallInProgress, Agent_Real_Time.MaxTasks, CASE WHEN Agent_Real_Time.AvailableInMRD = 0 THEN 'No' WHEN Agent_Real_Time.AvailableInMRD = 1 THEN 'Yes_ICM' WHEN Agent_Real_Time.AvailableInMRD = 2 THEN 'Yes_APP' ELSE 'No' END AvailInMRDText, Agent_Real_Time.DateTimeTaskLevelChange, Agent_Real_Time.RouterCallsQueueNow, Agent_Real_Time.RouterLongestCallQ FROM Agent (nolock), Person (nolock), Media_Routing_Domain (nolock), Agent_Real_Time (nolock) LEFT JOIN Service (nolock) ON Agent_Real_Time.ServiceSkillTargetID = Service.SkillTargetID WHERE ((Agent_Real_Time.SkillGroupSkillTargetID = 0) OR (Agent_Real_Time.SkillGroupSkillTargetID IS NULL)) and Agent.PersonID=Person.PersonID and Media_Routing_Domain.MRDomainID = Agent_Real_Time.MRDomainID and ( Agent.SkillTargetID = Agent_Real_Time.SkillTargetID )

Third, modify the SQL query.  Also, it helps a lot to actually arrange the above query and break it down section by section.

 

SELECT
                Agent.EnterpriseName,
                full_name=(Person.LastName + ', ' + Person.FirstName),
                Skill_Group.EnterpriseName as SkillName,
                Agent.SkillTargetID,
                Agent_Real_Time.DateTime,
                Datepart(yy, Agent_Real_Time.DateTime) as Year,
                Datepart(mm, Agent_Real_Time.DateTime) as Month,
                Datepart(ww, Agent_Real_Time.DateTime) as Week,
                Datepart(dy, Agent_Real_Time.DateTime) as DOY,
                Datepart(dw, Agent_Real_Time.DateTime) as DOW,
                CONVERT(char(10),Agent_Real_Time.DateTime,101) as DATE, Agent_Real_Time.SkillGroupSkillTargetID,
                ServiceName = Service.EnterpriseName,
                Media = Media_Routing_Domain.EnterpriseName,
                CASE Agent_Real_Time.AgentState
                                WHEN 0 THEN 'Logged Out'
                                WHEN 1 THEN 'Logged On'
                                WHEN 2 THEN 'Not Ready'
                                WHEN 3 THEN 'Ready'
                                WHEN 4 THEN 'Talking'
                                WHEN 5 THEN 'Work Not Ready'
                                WHEN 6 THEN 'Work Ready'
                                WHEN 7 THEN 'Busy Other'
                                WHEN 8 THEN 'Reserved'
                                WHEN 9 THEN 'Unknown'
                                WHEN 10 THEN 'Hold'
                                WHEN 11 THEN 'Active'
                                WHEN 12 THEN 'Paused'
                                WHEN 13 THEN 'Interrupted'
                                WHEN 14 THEN 'Not Active'
                                ELSE CONVERT(VARCHAR, Agent_Real_Time.AgentState)
                END AgentState,
                CASE Agent_Real_Time.PhoneType
                                When 0 THEN 'Not Mobile'
                                WHEN 1 THEN 'Call By Call'
                                WHEN 2 THEN 'Nailed Connection'
                                Else 'Not Applicable'
                END phonetypetext,
                remotephonenumber = Agent_Real_Time.RemotePhoneNumber,
                ReasonCode = CASE
                                WHEN Agent_Real_Time.ReasonCode = 0
                                THEN 'NONE'
                                ELSE CONVERT(VARCHAR, Agent_Real_Time.ReasonCode)
                                END ,
                Reason_Code.ReasonText,
                Agent_Real_Time.Extension,
                Agent_Real_Time.DateTimeLastStateChange,
                Agent_Real_Time.DateTimeLogin,
                CASE
                                WHEN RequestedSupervisorAssist = 1 THEN 'Yes' ELSE 'No'
                END RequestedSupervisorAssist,
                CASE Agent_Real_Time.Destination
                                WHEN 1 THEN 'ACD'
                                WHEN 2 THEN 'Direct'
                                WHEN 3 THEN 'Auto Out'
                                WHEN 4 THEN 'Reserve'
                                WHEN 5 THEN 'Preview'
                                ELSE 'Not Applicable'
                END Destination,
                CASE  Agent_Real_Time.Direction
                                WHEN 1 THEN 'In'
                                WHEN 2 THEN 'Out'
                                WHEN 3 THEN 'Other'
                                ELSE 'Not Applicable'
                END Direction,
                CASE
                                WHEN Agent_Real_Time.OnHold = 1 THEN 'Yes'
                                ELSE 'No'
                END OnHold,
                Agent_Real_Time.NetworkTargetID,
                Agent_Real_Time.AgentStatus,
                Agent_Real_Time.CustomerPhoneNumber,
                Agent_Real_Time.CustomerAccountNumber,
                Agent_Real_Time.CampaignID,
                Agent_Real_Time.QueryRuleID,
                Duration = DATEDIFF(ss, Agent_Real_Time.DateTimeLastStateChange,
                CASE
                                WHEN (DATEDIFF(ss, Agent_Real_Time.DateTimeLastStateChange, (SELECT NowTime from Controller_Time (nolock))) <= 0 )
                                THEN Agent_Real_Time.DateTimeLastStateChange
                                ELSE(SELECT NowTime FROM Controller_Time (nolock))
                END),
                CASE
                                WHEN Agent_Real_Time.Routable = 1
                                THEN 'Yes' ELSE 'No'
                END RoutableText,
                Agent_Real_Time.DateTimeLastModeChange,
                Agent_Real_Time.CallInProgress,
                Agent_Real_Time.MaxTasks,
                CASE
                                WHEN Agent_Real_Time.AvailableInMRD = 0 THEN 'No'
                                WHEN Agent_Real_Time.AvailableInMRD = 1 THEN 'Yes_ICM'
                                WHEN Agent_Real_Time.AvailableInMRD = 2 THEN 'Yes_APP'
                                ELSE 'No'
                END AvailInMRDText,
                Agent_Real_Time.DateTimeTaskLevelChange,
                Agent_Real_Time.RouterCallsQueueNow,
                Agent_Real_Time.RouterLongestCallQ
FROM
                Agent (nolock),
                Person (nolock),
                Media_Routing_Domain (nolock),
                Agent_Real_Time (nolock) LEFT JOIN Service (nolock) ON Agent_Real_Time.ServiceSkillTargetID = Service.SkillTargetID
                JOIN Reason_Code ON Agent_Real_Time.ReasonCode = Reason_Code.ReasonCode,
                Skill_Group
WHERE ( Agent_Real_Time.SkillGroupSkillTargetID = Skill_Group.SkillTargetID)
                and Agent.PersonID=Person.PersonID
                and Media_Routing_Domain.MRDomainID = Agent_Real_Time.MRDomainID
                and ( Agent.SkillTargetID = Agent_Real_Time.SkillTargetID )
UNION SELECT
                Agent.EnterpriseName,
                full_name=(Person.LastName + ', ' + Person.FirstName) ,
                convert(varchar,'Not Applicable'),
                Agent_Real_Time.SkillTargetID,
                Agent_Real_Time.DateTime,
                Datepart(yy, Agent_Real_Time.DateTime) as Year,
                Datepart(mm, Agent_Real_Time.DateTime) as Month,
                Datepart(ww, Agent_Real_Time.DateTime) as Week,
                Datepart(dy, Agent_Real_Time.DateTime) as DOY,
                Datepart(dw, Agent_Real_Time.DateTime) as DOW,
                CONVERT(char(10),Agent_Real_Time.DateTime,101) as DATE,
                Agent_Real_Time.SkillGroupSkillTargetID,
                ServiceName = Service.EnterpriseName,
                Media=Media_Routing_Domain.EnterpriseName,
                CASE
                                Agent_Real_Time.AgentState
                                WHEN 0 THEN 'Logged Out'
                                WHEN 1 THEN 'Logged On'
                                WHEN 2 THEN 'Not Ready'
                                WHEN 3 THEN 'Ready'
                                WHEN 4 THEN 'Talking'
                                WHEN 5 THEN 'Work Not Ready'
                                WHEN 6 THEN 'Work Ready'
                                WHEN 7 THEN 'Busy Other'
                                WHEN 8 THEN 'Reserved'
                                WHEN 9 THEN 'Unknown'
                                WHEN 10 THEN 'Hold'
                                WHEN 11 THEN 'Active'
                                WHEN 12 THEN 'Paused'
                                WHEN 13 THEN 'Interrupted'
                                WHEN 14 THEN 'Not Active'
                                ELSE CONVERT(VARCHAR, Agent_Real_Time.AgentState)
                END AgentState,
                CASE
                                Agent_Real_Time.PhoneType
                                When 0 THEN 'Not Mobile'
                                WHEN 1 THEN 'Call By Call'
                                WHEN 2 THEN 'Nailed Connection'
                                Else 'Not Applicable'
                END phonetypetext,
                remotephonenumber = Agent_Real_Time.RemotePhoneNumber,
                ReasonCode =
                CASE
                                WHEN Agent_Real_Time.ReasonCode = 0 THEN 'NONE'
                                ELSE CONVERT(VARCHAR, Agent_Real_Time.ReasonCode)
                END ,
                Reason_Code.ReasonText,
                Agent_Real_Time.Extension,
                Agent_Real_Time.DateTimeLastStateChange,
                Agent_Real_Time.DateTimeLogin,
                CASE
                                WHEN RequestedSupervisorAssist = 1 THEN 'Yes'
                                ELSE 'No'
                END RequestedSupervisorAssist,
                CASE
                                Agent_Real_Time.Destination
                                WHEN 1 THEN 'ACD'
                                WHEN 2 THEN 'Direct'
                                WHEN 3 THEN 'Auto Out'
                                WHEN 4 THEN 'Reserve'
                                WHEN 5 THEN 'Preview'
                                ELSE 'Not Applicable'
                END Destination,
                CASE
                                Agent_Real_Time.Direction
                                WHEN 1 THEN 'In'
                                WHEN 2 THEN 'Out'
                                WHEN 3 THEN 'Other'
                                ELSE 'Not Applicable'
                END Direction,
                CASE
                                WHEN Agent_Real_Time.OnHold = 1 THEN 'Yes'
                                ELSE 'No'
                END OnHold,
                Agent_Real_Time.NetworkTargetID,
                Agent_Real_Time.AgentStatus,
                Agent_Real_Time.CustomerPhoneNumber,
                Agent_Real_Time.CustomerAccountNumber,
                Agent_Real_Time.CampaignID,
                Agent_Real_Time.QueryRuleID,
                Duration=DATEDIFF(ss, Agent_Real_Time.DateTimeLastStateChange,
                CASE
                                WHEN (DATEDIFF(ss, Agent_Real_Time.DateTimeLastStateChange,
                                (SELECT NowTime from Controller_Time (nolock)))  <= 0 )
                                THEN Agent_Real_Time.DateTimeLastStateChange
                                ELSE (SELECT NowTime FROM Controller_Time (nolock))
                END),
                CASE
                                WHEN Agent_Real_Time.Routable = 1 THEN 'Yes'
                                ELSE 'No'
                END RoutableText ,
                Agent_Real_Time.DateTimeLastModeChange,
                Agent_Real_Time.CallInProgress,
                Agent_Real_Time.MaxTasks,
                CASE
                                WHEN Agent_Real_Time.AvailableInMRD = 0 THEN 'No'
                                WHEN Agent_Real_Time.AvailableInMRD = 1 THEN 'Yes_ICM'
                                WHEN Agent_Real_Time.AvailableInMRD = 2 THEN 'Yes_APP'
                                ELSE 'No'
                END AvailInMRDText,
                Agent_Real_Time.DateTimeTaskLevelChange,
                Agent_Real_Time.RouterCallsQueueNow,
                Agent_Real_Time.RouterLongestCallQ
                FROM
                                Agent (nolock),
                                Person (nolock),
                                Media_Routing_Domain (nolock),
                                Agent_Real_Time (nolock) LEFT JOIN Service (nolock) ON Agent_Real_Time.ServiceSkillTargetID = Service.SkillTargetID
                                JOIN Reason_Code ON Agent_Real_Time.ReasonCode = Reason_Code.ReasonCode
                WHERE
                                ((Agent_Real_Time.SkillGroupSkillTargetID = 0) OR (Agent_Real_Time.SkillGroupSkillTargetID IS NULL))
                                and Agent.PersonID=Person.PersonID
                                and Media_Routing_Domain.MRDomainID = Agent_Real_Time.MRDomainID
                                and ( Agent.SkillTargetID = Agent_Real_Time.SkillTargetID )

Note line 46 and 104 where the join is made to retrieve the reason text.  Also note that you need to duplicate these lines in the Union Select statement.

Finally, create a new report definition, create a new report based off the definition, and test.  This posts assumes that you know at least the very basics around CUIC.  It doesn’t hurt to know some SQL, personally I know enough to be dangerous, but touch it so seldom that I’m no expert.

Hope this helps others out there as this is a pretty common report and a lot of customer ask for it.

~david

13 Comments

  1. mark
    Do you know how to make a summary report for not ready reason codes?
  2. Mike
    I'm trying to replicate what you have here, but was wondering what version of CUIC you are using here. Thanks in advance, Mike
    1. dmacias
      Hi Mike, at the time of this posting I was using 8.5.x, I can't remember the exact x version, but it was 8.5. Are you having some issues getting this working?
  3. Rick
    I'm confused. How hard should it be to get a basic report on reason code. Everyone needs this report. I don't understand the code above. It looks like a lot of work. Is it any easier with cuic premium? I have been told that you can export the reports from CCE's Cuic software, is this true?
    1. dmacias
      Yes, much easier with Premium, yes you can export the reports and import them into standard. What version are you running I might be able to help you out.
  4. bigboy1
    does anyone have the sql code for ms access 2007 agent state detail....the above is for reat time...
    1. dmacias
      What is the problem you're facing?
  5. Anonymous
    I have a odbc connection and I am looking for the sql code for the premium package.....do you have it?
  6. stewy
    what is the problem you're facing? answer I have an odbc connection and I am backing ending the data table, want to only refresh for current data....do you no the sql code for not ready reason codes for premium package?
    1. dmacias
      Yes, that's what is included in the above post. The SQL is posted in the story.
  7. bigboy1
    will i need the entire sql code posted in story? are will i have to extract the parts i need?
  8. bigboy1
    will this work? SELECT Informix_agentstatedetail.eventdatetime, Informix_agentstatedetail.reasoncode, Case ([Informix_agentstatedetail].[reasoncode]), WHEN '1' THEN 'Not Ready Default' WHEN '2' THEN 'Break' WHEN '3' THEN 'Consult Tier' WHEN '4' THEN 'Emails' WHEN '5' THEN 'GRH' WHEN '6' THEN 'Lunch' WHEN '7' THEN 'Meeting' WHEN '8' THEN 'Not Ready' WHEN '9' THEN 'Personal' WHEN '10' THEN 'Restroom' WHEN '11' THEN 'Supervisor Coaching' WHEN '12' THEN 'Testing' WHEN '13' THEN 'Training' WHEN '14' THEN 'Trouble Reports' WHEN '15' THEN 'System Trouble' WHEN '16' THEN 'Walk-in' WHEN '17' THEN 'Workstation Maintenance' WHEN '18' THEN 'Wrap-up' WHEN '19' THEN 'Projects' ELSE 'unknown' END AS AgentState, Informix_resource.FirstName AS FirstName, Informix_resource.LastName AS LastName, Informix_resource.resourcename AS Agent Name FROM agentstatedetail INNER JOIN agentid ON agentstatedetail.agentid = agentstatedetail.agentid INNER JOIN Profileid ON agentstatedetail.profileid = agentstatedetail.profileid ORDER BY resourcename.Agent Name
  9. bigboy1
    in access 2007