【问题标题】:Qlikview SQL errorQlikview SQL 错误
【发布时间】:2015-10-07 04:47:32
【问题描述】:

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

SQL##f - SqlState: S1000, ErrorCode: 1111, ErrorMsg: [DataDirect][ODBC OpenAccess SDK driver][OpenAccess SDK SQL Engine]Exception execution 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.service SQL

我正在运行的 SQL 查询是:

SQL //total dos registos na tabela event_alert

   SELECT COUNT(number) as Total
   FROM   incident_alert;

SQL //Total de registo na tablea de event_alert com relacionamento válido na tabela event

   SELECT COUNT(incident_alert.number)
   FROM incident_alert
   LEFT   JOIN   incident      ON     (incident_alert.dv_source_incident=incident.number);

SQL //Registos validos na tabela event_alert com relacao a tabela event e com a data da paragraphm para massivo。

   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 //Registos validos na tabela event_alert com relacao a tabela event e com a data da paragraphm para massivo。

有什么帮助吗?

【问题讨论】:

    标签: sql sdk odbc qlikview


    【解决方案1】:

    找到答案和解决方案。我已将 ODBC 驱动程序版本更新为较新的版本,并且可以正常工作。

    【讨论】:

      猜你喜欢
      • 2016-11-15
      • 1970-01-01
      • 1970-01-01
      • 2017-08-15
      • 1970-01-01
      • 2020-03-09
      • 2017-05-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多