首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Qlikview SQL错误

Qlikview SQL错误
EN

Stack Overflow用户
提问于 2015-07-17 12:49:42
回答 1查看 297关注 0票数 0

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

SQL##f - SqlState: S1000,ErrorCode: 1111,ErrorMsg: DataDirectOpenAccess SDK SQL EngineException executing : java.lang.NullPointerException 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

我正在运行的SQL查询是:

SQL //Total na tabela incident_alert

代码语言:javascript
复制
   SELECT COUNT(number) as Total
   FROM   incident_alert;

SQL //Total de incident_alert com relacionamento válido na tabela事件

代码语言:javascript
复制
   SELECT COUNT(incident_alert.number)
   FROM incident_alert
   LEFT   JOIN   incident      ON     (incident_alert.dv_source_incident=incident.number);

SQL //Registos validos na tabela incident_alert com relacao a tabela事件e com a data da passagem para massivo。

代码语言:javascript
复制
   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

代码语言:javascript
复制
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 incident_alert com relacao a tabela事件e com a data da passagem para massivo。

有什么帮助吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-07-21 09:11:31

找到了答案和解决方案。我已经更新了ODBC驱动程序版本,使其生效。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31476244

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档