-1
を使用して、次のクエリを実行中にエラー私はこれは少しシンプルに見えます知っているが、このクエリを実行しながら、私はこのエラーを取得されています。このクエリで一時的な列
SELECT 'NOC Service Request Acknowledgement - All severities' AS [Problem_Type_Name(Parent) Category]
,[Job_ticket_id]
,CASE WHEN (case when [Escalated to Resolved time] is null then (ISNULL([Escalated to Resolved time],0) + ISNULL([Escalated to Closed time],0)- ISNULL([hold time],0)) else (ISNULL([Escalated to Closed time],0) - ISNULL([hold time],0)) end) <0THEN 0 ELSE (case when [Escalated to Resolved time] is null then (ISNULL([Escalated to Resolved time],0) + ISNULL([Escalated to Closed time],0)- ISNULL([hold time],0)) else (ISNULL([Escalated to Closed time],0) - ISNULL([hold time],0)) end) END AS JobTime
,[Time to Accept SLA]
,[Report_Date]
,[Problem_Type_Name(Parent)]
,[Problem_Type_Name(Child)]
,[Assigned Tech]
,[PRIORITY_TYPE_NAME]
,[Close_Date]
,[NAME]
,[Ticket Status]
,[Escalated to Closed time]
,[Escalated to Resolved time]
,[Hold Time]
,case when String_value in ('Warning' ,'Critical') then String_value else null end as 'String_value'
,[PROBLEM_TYPE_ID]
FROM TEMP_TICKET_STATE_Category
join ticket_custom_field custom1 on custom1.entity_id = job_ticket_id
join custom_field_definition custom_definition1 on custom_definition1.id=custom1.definition_id
WHERE [Problem_Type_Name(Parent) Category] IN ('NOC Service Request Acknowledgement - Urgent','NOC Service Request Acknowledgement - High',
'NOC Service Request Acknowledgement - Medium','NOC Service Request Acknowledgement - Low')
、[Problem_Type_Name(親)のカテゴリ]されます「NOCサービス要求確認応答 - 緊急」、「NOCサービス要求確認応答」、「NOCサービス要求確認応答 - 中」、「NOCサービス」のようなグループ名が与えられているリクエスト肯定応答 - 低 '。 上記のコードがWhere条件でエラーになるため、クエリに問題があるようです。
適用する列ではありませんが、あなたが得るエラーを含めます。さもなければ、我々はただ推測している。 –