<?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 SQL query output to a CSV file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-to-a-CSV-file/m-p/2322576#M92505</link>
    <description>Hi,&lt;BR /&gt;I am working on an ETL job in which there is a table I query and have to write the rows returned by the query to a CSV file.&lt;BR /&gt;The issue is that the table which I query is created during the job execution because the columns to be included in the table are based on another query.&lt;BR /&gt;So the table structure may vary from execution to execution. Is there a way to output/write the rows generated from a "SELECT * FROM...." to a CSV file using a tFileDelimitedOutput component?&amp;nbsp;&lt;BR /&gt;The reason behind asking the question I would not able to define a schema for the output file that is to be created because of the dynamic structure of the table.</description>
    <pubDate>Sat, 16 Nov 2024 09:58:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T09:58:30Z</dc:date>
    <item>
      <title>SQL query output to a CSV file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-to-a-CSV-file/m-p/2322576#M92505</link>
      <description>Hi,&lt;BR /&gt;I am working on an ETL job in which there is a table I query and have to write the rows returned by the query to a CSV file.&lt;BR /&gt;The issue is that the table which I query is created during the job execution because the columns to be included in the table are based on another query.&lt;BR /&gt;So the table structure may vary from execution to execution. Is there a way to output/write the rows generated from a "SELECT * FROM...." to a CSV file using a tFileDelimitedOutput component?&amp;nbsp;&lt;BR /&gt;The reason behind asking the question I would not able to define a schema for the output file that is to be created because of the dynamic structure of the table.</description>
      <pubDate>Sat, 16 Nov 2024 09:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-to-a-CSV-file/m-p/2322576#M92505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T09:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query output to a CSV file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-to-a-CSV-file/m-p/2322577#M92506</link>
      <description>this way named - welcome to subscription version 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Simplest case as described could be also realised by SQL 
&lt;BR /&gt;example in MySQL 
&lt;BR /&gt; 
&lt;PRE&gt;SELECT CONCAT_WS(';','col1_name','col2_name', ... , 'colx_name')&lt;BR /&gt;UNION&lt;BR /&gt;SELECT CONCAT_WS(';',col1,col2,...., colx)&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt;than You define source and target schema as only single column type string</description>
      <pubDate>Wed, 22 Mar 2017 22:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-to-a-CSV-file/m-p/2322577#M92506</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-03-22T22:09:07Z</dc:date>
    </item>
  </channel>
</rss>

