Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| vendors:cisco:uc:icm:sql:agent [2019/08/12 09:22] – gerardorourke | vendors:cisco:uc:icm:sql:agent [2020/05/25 16:15] (current) – gerardorourke | ||
|---|---|---|---|
| Line 549: | Line 549: | ||
| SG.EnterpriseName | SG.EnterpriseName | ||
| ORDER BY DateTime | ORDER BY DateTime | ||
| + | </ | ||
| + | |||
| + | ===== Agent Bulk export - to help with Agent bulk Import in PCCE==== | ||
| + | <code sql> | ||
| + | SELECT | ||
| + | | ||
| + | ,firstName = [FirstName] | ||
| + | ,lastName = [LastName] | ||
| + | ,ecePerson = CASE([ECEPerson]) | ||
| + | WHEN ' | ||
| + | WHEN ' | ||
| + | END | ||
| + | , | ||
| + | FROM [ucce_awdb].[dbo].[Person] | ||
| + | WHERE | ||
| + | ECEPerson = ' | ||
| + | Deleted = ' | ||
| + | ORDER BY LoginName COLLATE Latin1_General_CI_AS | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Supervisors <> Team SQL ===== | ||
| + | <code sql> | ||
| + | /****** Script for SelectTopNRows command from SSMS ******/ | ||
| + | SELECT | ||
| + | AgentTeamID = ATS.[AgentTeamID] | ||
| + | , | ||
| + | , | ||
| + | , | ||
| + | | ||
| + | FROM | ||
| + | [vhi_awdb].[dbo].[Agent_Team_Supervisor] ATS, | ||
| + | Agent A, | ||
| + | Agent_Team AT | ||
| + | |||
| + | WHERE | ||
| + | ATS.AgentTeamID = AT.AgentTeamID AND | ||
| + | ATS.SupervisorSkillTargetID = A.SkillTargetID | ||
| + | AND A.EnterpriseName like ' | ||
| </ | </ | ||