简体   繁体   English

在Informatica数据质量分析师中编写SQL

[英]Writing SQL in Informatica Data Quality Analyst

I am new to Informatica Data Quality Analyst (Version 9.5.1 HotFix3) and I am having trouble in generating a basic SQL statement. 我是Informatica Data Quality Analyst(版本9.5.1 HotFix3)的新手,在生成基本SQL语句时遇到了麻烦。

The SQL statement is being written against a mapping specification of a table that was originally imported as a flat file. 将根据最初作为平面文件导入的表的映射规范编写SQL语句。 The statement looks like: 该语句如下所示:

Select ColumnA, ColumnB FROM Table1
WHERE Table1.ColumnA = 'S'

The SELECT .... FROM portion of the statement works fine but I encounter errors when I throw in the WHERE clause. 语句的SELECT .... FROM部分工作正常,但是当我放入WHERE子句时遇到错误。 I think my statement looks like standard SQL so I'm not sure why this will not work. 我认为我的语句看起来像标准SQL,所以我不确定为什么这行不通。 Does Informatica Analyst accept SQL written only in a specific form? Informatica Analyst是否接受仅以特定形式编写的SQL? Are the inverted commas causing problems? 逗号颠倒会引起问题吗?

the query must work which you are trying to execute. 该查询必须工作在您要执行的位置。 If its not fetching the results, you need to do the following steps: 如果未获取结果,则需要执行以下步骤:

1) Load the data from source flat file to any database(oracle). 1)将数据从源平面文件加载到任何数据库(oracle)。 You can directly import the data from flat file to table via sql developer. 您可以通过sql developer将数据直接从平面文件导入表中。

2) Execute the query with the filter condition. 2)使用过滤条件执行查询。 If it doesnt fetch any rows, your query in idq is fetching correct results. 如果未获取任何行,则您在idq中的查询正在获取正确的结果。 If not, there is something missing in your idq code. 如果没有,则您的idq代码中缺​​少某些内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM