<?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 How to make a job for below sql query in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-a-job-for-below-sql-query/m-p/2309749#M80934</link>
    <description>&lt;P&gt;Hi Talend Folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to make&amp;nbsp;a job for below sql query. I want to know job flow for this query. kindly share your information.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SELECT team, sum(bet) amt_b&lt;/P&gt;
&lt;P&gt;FROM ab&lt;/P&gt;
&lt;P&gt;WHERE art = 'D' AND soll = 'F'&lt;/P&gt;
&lt;P&gt;GROUP BY team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;except&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SELECT team, sum(bet) amt_c&lt;/P&gt;
&lt;P&gt;FROM abc, abcd&lt;/P&gt;
&lt;P&gt;WHERE name = 'UBH'&lt;BR /&gt;AND dom = art&lt;/P&gt;
&lt;P&gt;GROUP BY team&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 08:34:36 GMT</pubDate>
    <dc:creator>RAJ6</dc:creator>
    <dc:date>2024-11-16T08:34:36Z</dc:date>
    <item>
      <title>How to make a job for below sql query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-a-job-for-below-sql-query/m-p/2309749#M80934</link>
      <description>&lt;P&gt;Hi Talend Folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to make&amp;nbsp;a job for below sql query. I want to know job flow for this query. kindly share your information.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SELECT team, sum(bet) amt_b&lt;/P&gt;
&lt;P&gt;FROM ab&lt;/P&gt;
&lt;P&gt;WHERE art = 'D' AND soll = 'F'&lt;/P&gt;
&lt;P&gt;GROUP BY team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;except&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SELECT team, sum(bet) amt_c&lt;/P&gt;
&lt;P&gt;FROM abc, abcd&lt;/P&gt;
&lt;P&gt;WHERE name = 'UBH'&lt;BR /&gt;AND dom = art&lt;/P&gt;
&lt;P&gt;GROUP BY team&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:34:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-a-job-for-below-sql-query/m-p/2309749#M80934</guid>
      <dc:creator>RAJ6</dc:creator>
      <dc:date>2024-11-16T08:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a job for below sql query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-a-job-for-below-sql-query/m-p/2309750#M80935</link>
      <description>&lt;P&gt;You can do this in a single DB input component if you want.... so long as both tables are in the same database.&lt;/P&gt;&lt;PRE&gt;With main_flow as (
SELECT team, sum(bet) amt_b
FROM ab
WHERE art = 'D' AND soll = 'F'
GROUP BY team),

filter_flow as (
SELECT team, sum(bet) amt_c
FROM abc, abcd
WHERE name = 'UBH'
AND dom = art)

Select 
team, 
amt_b
From main_flow
Where team not in (
Select team
From filter_flow)
GROUP BY team&lt;/PRE&gt;&lt;P&gt;Otherwise you can use two DB input components and connect using a tMap. The main_flow query in the MAIN table join and the filter_flow in the other DB input connected to a lookup link in the tMap. Then join on team and select catch inner join rejects on the output of the tMap.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 09:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-a-job-for-below-sql-query/m-p/2309750#M80935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-11T09:49:23Z</dc:date>
    </item>
  </channel>
</rss>

