Join query failing in Informatica SQL transformation

Join query failing in Informatica SQL transformation



I have a SQL query to which am passing parameters from expression transformation:



Eg:


SELECT A.id
FROM table1 A, table2 B
WHERE A.id = B.id



This works fine and am able to get the output.



Now when I modify this sql to :


select DR.id from(select A.id from table1 A, table2 B where A.id = B.id)DR
left outer join table3 C on Dr.id = c.col1



Then it throws ODL Error -



ERROR TRANSF_1_1_1_1 pmsql_50065 [ERROR] ODL error:
FnName: Bind Parameter -- [Informatica][ODBC PWX Driver] PWX-00264 DBAPI Error Initial "Describe" CONVERSE failed to location ,;DSNT408I SQLCODE = -199, ERROR: ILLEGAL USE OF KEYWORD LEFT. TOKEN , FROM;
INTO WAS EXPECTED;DSNT418I SQLSTATE = 42601 ;DSNT415I SQLERRP = DSNHPARS ;DSNT416I SQLERRD = 2 0 0 -1 129 506 ; Database driver error...
parameter binding failed.



The sql query when executed from sql assistant works fine. So could you suggest as how to write query in Informatica SQL transformation.



Thanks!






Can you post the query with parameters you have used in the SQL transformation.

– Samik
Sep 15 '18 at 7:09




1 Answer
1



there is no column in your sub-query DR name 'col1' so make it 1st then use it


select DR.col1
from
(select A.id as col1 from table1 A join table2 B on
A.id = B.id
) DR
left outer join table3 C on Dr.col1 = c.col1






Col1 in Dr is nothing but the Dr.id...I have formatted my SQL....On using this left outer join its doesn't work

– Dex
Sep 15 '18 at 3:42






How you feel it does not work? Does it return any data? Or not your expected data?

– Zaynul Abadin Tuhin
Sep 15 '18 at 3:50






It returns nothing...the file is blank...when I open session logs I see the above posted error message

– Dex
Sep 15 '18 at 3:51






Execute that query on db and check what returns

– Zaynul Abadin Tuhin
Sep 15 '18 at 4:08






It works when executed in database

– Dex
Sep 15 '18 at 4:12



Thanks for contributing an answer to Stack Overflow!



But avoid



To learn more, see our tips on writing great answers.



Required, but never shown



Required, but never shown




By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

ャフサォクコ ケウ,コ,ワ メ,ロスョノ゙,クネ,フムカヤヲニ,エコ゚ツ ウイオン゙ケワサネォキモュキォウイノンコチ゚メヌナイゥフュ,カヒウネェ ネ,ホノケ,ムュキ ッボーミュハ,チ ツス ィ メウイマヤ,゙ウチ ヅ ロ,ォジヌェ ャヌット ェ,マャ,チナエヒネソキツテ トホヲヲミーァ

Node.js puppeteer - Use values from array in a loop to cycle through pages