<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Use JSON field in SQL Query in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Use-JSON-field-in-SQL-Query/m-p/2337927#M106218</link>
    <description>&lt;P&gt;I have a field in my json that lists machine names.... I am able to extract that and it gives me the right values. I iterate on that output with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JSON ---Row2---&amp;gt; FlowToIterate -&amp;gt; DBinput - tLogRow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the dbInput SQL Query I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"SELECT inspectionMachineName,&lt;/P&gt;&lt;P&gt;	lastPrId&lt;/P&gt;&lt;P&gt;FROM	inspectionMachine&lt;/P&gt;&lt;P&gt;where inspectionMachineName = "+(String)globalMap.get(\"row2.DbName\")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I cannot get it to run and display the data from inspectionMachine table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:59:03 GMT</pubDate>
    <dc:creator>fjblau</dc:creator>
    <dc:date>2024-11-15T21:59:03Z</dc:date>
    <item>
      <title>Use JSON field in SQL Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-JSON-field-in-SQL-Query/m-p/2337927#M106218</link>
      <description>&lt;P&gt;I have a field in my json that lists machine names.... I am able to extract that and it gives me the right values. I iterate on that output with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JSON ---Row2---&amp;gt; FlowToIterate -&amp;gt; DBinput - tLogRow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the dbInput SQL Query I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"SELECT inspectionMachineName,&lt;/P&gt;&lt;P&gt;	lastPrId&lt;/P&gt;&lt;P&gt;FROM	inspectionMachine&lt;/P&gt;&lt;P&gt;where inspectionMachineName = "+(String)globalMap.get(\"row2.DbName\")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I cannot get it to run and display the data from inspectionMachine table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-JSON-field-in-SQL-Query/m-p/2337927#M106218</guid>
      <dc:creator>fjblau</dc:creator>
      <dc:date>2024-11-15T21:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use JSON field in SQL Query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-JSON-field-in-SQL-Query/m-p/2337928#M106219</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Before using the global variable in the query, print the value of (String)globalMap.get("row2.DbName") on a tJava to check whether it has the right value.&lt;/P&gt;&lt;P&gt;JSON ---Row2---&amp;gt; FlowToIterate -&amp;gt; tJava&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on tJava:&lt;/P&gt;&lt;P&gt;System.out.println((String)globalMap.get("row2.DbName"));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 05:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-JSON-field-in-SQL-Query/m-p/2337928#M106219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-20T05:02:41Z</dc:date>
    </item>
  </channel>
</rss>

