Qlikview SQL 错误

Qlikview SQL error

当我 运行 Qlikview 使用 SQL 查询时,出现以下错误:

SQL##f - SqlState: S1000, ErrorCode: 1111, ErrorMsg: [DataDirect][ODBC OpenAccess SDK driver][OpenAccess SDK SQL Engine]Exception executing ipExecute : java.lang.NullPointerException oajava.service_now.Condition.getValue(Condition.java:107) oajava.service_now.Condition.(Condition.java:35) oajava.service_now.passthrough.LogicalExpression.describeLogicExp(LogicalExpression.java:29) oajava.service_now.passthrough.LogicalExpression.(LogicalExpression.java:16) oajava.service_now.passthrough.QueryExpression.(QueryExpression.java:41) oajava.servic SQL

我 运行ning 的 SQL 查询是:

SQL //表中记录总数incident_alert

   SELECT COUNT(number) as Total
   FROM   incident_alert;

SQL //在事件表

中具有有效关系的incident_alert表中的总记录
   SELECT COUNT(incident_alert.number)
   FROM incident_alert
   LEFT   JOIN   incident      ON     (incident_alert.dv_source_incident=incident.number);

SQL // 表中的有效记录 incident_alert 与事件表相关并包含转换为 mass 的日期。

   SELECT incident_alert.number, incident.opened_at
   FROM incident_alert
   LEFT   JOIN   incident      ON     (incident_alert.dv_source_incident=incident.number)
   WHERE (incident_alert.number) NOT IN 
   (
                 SELECT DISTINCT incident_alert.number
                 FROM  incident_alert
                 INNER      JOIN   incident ON     (incident_alert.dv_source_incident=incident.number)
                 INNER         JOIN   sys_audit    ON     (incident.sys_id = sys_audit.documentkey)
                 WHERE sys_audit.fieldname = 'u_masiva' 
                 AND   sys_audit.oldvalue = 0
                 AND   sys_audit.newvalue = 1
   );

连接 SQL

SELECT DISTINCT incident_alert.number, incident_alert.dv_source_incident, sys_audit.sys_updated_on, sys_audit.fieldname, sys_audit.oldvalue, sys_audit.newvalue
   FROM  incident_alert
   INNER      JOIN   incident ON     (incident_alert.dv_source_incident=incident.number)
   INNER        JOIN   sys_audit    ON     (incident.sys_id = sys_audit.documentkey)
   WHERE sys_audit.fieldname = 'u_masiva' 
   AND   sys_audit.oldvalue = 0
   AND   sys_audit.newvalue = 1;

我在之后收到错误:

SQL //表中的有效记录 incident_alert 与事件表相关,并带有转换为质量的日期。

有什么帮助吗?

找到答案和解决方案。我已将 ODBC 驱动程序版本更新为较新的版本并且它有效。