Professional Documents
Culture Documents
Services_Name: INP44VSDPCOHESI
Password: Welcome01
..................................Pending...................................
CASE
WHEN ass_Group LIKE 'it_CSG_DMS%' THEN 'DMS'
WHEN ass_Group LIKE 'it_%MCP%' THEN 'MCP'
WHEN ass_Group LIKE 'it_%ECP%' THEN 'ECP'
WHEN ass_Group LIKE 'it_%TCP%' THEN 'TCP'
WHEN ass_Group LIKE 'it_traffic_reports_L2_intl%' THEN 'Traffic Reports'
WHEN ass_Group LIKE 'It_corporate_portal%' THEN 'Corporate Portal'
WHEN ass_Group LIKE 'it_apworkflow%' THEN 'AP Workflow'
WHEN ass_Group LIKE '%intranet%' THEN 'Sharepoint'
WHEN ass_Group LIKE '%it_PAS_%' THEN 'PAS'
WHEN ass_Group LIKE '%it_CER_' THEN 'CER'
WHEN ass_Group LIKE '%it_hyperion_%' THEN 'HYPERION'
WHEN ass_Group LIKE '%it_CSG_SAP_%' THEN 'SAP'
END AS BUSINESS_UNIT,
union all
select case when string1 is not null then 'null' else 'CO' end as type,
ticket_Number, Summary, Open_date, Resolved_date, ass_Group,
CASE
WHEN ass_Group LIKE 'it_CSG_DMS%' THEN 'DMS'
WHEN ass_Group LIKE 'it_%MCP%' THEN 'MCP'
WHEN ass_Group LIKE 'it_%ECP%' THEN 'ECP'
WHEN ass_Group LIKE 'it_%TCP%' THEN 'TCP'
WHEN ass_Group LIKE 'it_traffic_reports_L2_intl%' THEN 'Traffic Reports'
WHEN ass_Group LIKE 'It_corporate_portal%' THEN 'Corporate Portal'
WHEN ass_Group LIKE 'it_apworkflow%' THEN 'AP Workflow'
WHEN ass_Group LIKE '%intranet%' THEN 'Sharepoint'
WHEN ass_Group LIKE '%it_PAS_%' THEN 'PAS'
WHEN ass_Group LIKE '%it_CER_' THEN 'CER'
WHEN ass_Group LIKE '%it_hyperion_%' THEN 'HYPERION'
WHEN ass_Group LIKE '%it_CSG_SAP_%' THEN 'SAP'
END AS BUSINESS_UNIT,
raised_by,Assignee,Priority,ticket_status,string1 as urgency,category,string1 as
escalated_time,Description,RootCause
from change_open where report_date BETWEEN
DATEADD(dd,1,REPLACE(CONVERT(VARCHAR,@END_DATE, 111), '/', '-')+' 00:00:00.000')
and DATEADD(dd,1,@END_DATE)
and (ass_group LIKE '%DMS%'OR ass_group LIKE '%MCP%' OR ass_group LIKE '%ECP%' OR
ass_group LIKE '%TCP%_%API%' OR ass_group LIKE '%traffic_reports%' OR ass_group
LIKE '%It_corporate_portal%' OR ass_group LIKE 'it_apworkflow%' OR ass_group LIKE
'%intranet%' OR ass_group LIKE 'it_PAS_L1%' OR ass_group LIKE 'it_PAS_L2%' OR
ass_group LIKE 'it_CER_L1%' OR ass_group LIKE 'it_CER_L2%' OR ass_group LIKE
'%_HYPERION_%' OR ass_group LIKE 'it_CSG_SAP%')
...........................................closed
tickets...........................................
WITH ALP
AS
SELECT
A.TICKET_NUMBER,
A.TYPE,
A.SUMMARY,
A.OPEN_DATE,
A.RESOLVE_DATE,
A.CLOSE_DATE,
A.ASS_GROUP,
CASE
END AS BUSINESS_UNIT ,
A.OPENED_BY,A.ASSIGNEE,
A.PRIORITY,
A.TICKET_STATUS,
A.URGENCY,
A.CATEGORY,B.Esclated_Time ,
A.rootcause
SELECT DISTINCT(TICKET_NUMBER),*
FROM ALP