<?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 newbie: automatic schema creation for query? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/newbie-automatic-schema-creation-for-query/m-p/2210028#M8609</link>
    <description>Hi, forgive me if this question has been answered, but I've gone through the intro tutorials and the manual and still am missing something.
&lt;BR /&gt;I have a select query pulling various volumns from multiple tables. I simply want to export the result set, including column headers, to an Excel file.
&lt;BR /&gt;I've saved the query in the Repository and dragged it onto the workspace. I have also created a tFileOutputExcel object on the workspace. I can join the two files together and run the process. However, the wrong fields are dumped into the Excel file. When I look at the query details, it looks like it is using an entirely unrelated table-based schema.
&lt;BR /&gt;Do I need to manually create a schema that contains the columns which I've specified in the query? If so, how do I create a schema that is not based on any one table? If not, how can I tell TOS to export the columns specified in the select query?
&lt;BR /&gt;Thanks in advance for your help!</description>
    <pubDate>Sat, 16 Nov 2024 14:24:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T14:24:08Z</dc:date>
    <item>
      <title>newbie: automatic schema creation for query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/newbie-automatic-schema-creation-for-query/m-p/2210028#M8609</link>
      <description>Hi, forgive me if this question has been answered, but I've gone through the intro tutorials and the manual and still am missing something.
&lt;BR /&gt;I have a select query pulling various volumns from multiple tables. I simply want to export the result set, including column headers, to an Excel file.
&lt;BR /&gt;I've saved the query in the Repository and dragged it onto the workspace. I have also created a tFileOutputExcel object on the workspace. I can join the two files together and run the process. However, the wrong fields are dumped into the Excel file. When I look at the query details, it looks like it is using an entirely unrelated table-based schema.
&lt;BR /&gt;Do I need to manually create a schema that contains the columns which I've specified in the query? If so, how do I create a schema that is not based on any one table? If not, how can I tell TOS to export the columns specified in the select query?
&lt;BR /&gt;Thanks in advance for your help!</description>
      <pubDate>Sat, 16 Nov 2024 14:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/newbie-automatic-schema-creation-for-query/m-p/2210028#M8609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: newbie: automatic schema creation for query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/newbie-automatic-schema-creation-for-query/m-p/2210029#M8610</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Do I need to manually create a schema that contains the columns which I've specified in the query? If so, how do I create a schema that is not based on any one table? If not, how can I tell TOS to export the columns specified in the select query?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;You need to manually create a schema that contains the columns which you have specified in the query, for example: 
&lt;BR /&gt;"SELECT person.id, person.name 
&lt;BR /&gt;FROM person" 
&lt;BR /&gt;you should create a shema include two columns: id and name. When you define the schema, the Db column should be same as the fileds in db table. 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I have a select query pulling various volumns from multiple tables. I simply want to export the result set, including column headers, to an Excel file.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;You can use serval tDBxxxinput components to select columns from different tables, then link to a tMap components and do some join or merge the data. 
&lt;BR /&gt;Feel free to post your questions! 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Thu, 10 Apr 2008 08:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/newbie-automatic-schema-creation-for-query/m-p/2210029#M8610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-04-10T08:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: newbie: automatic schema creation for query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/newbie-automatic-schema-creation-for-query/m-p/2210030#M8611</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt; 
     &lt;BLOCKQUOTE&gt; 
      &lt;TABLE border="1"&gt; 
       &lt;TBODY&gt; 
        &lt;TR&gt; 
         &lt;TD&gt;I have a select query pulling various volumns from multiple tables. I simply want to export the result set, including column headers, to an Excel file.&lt;/TD&gt; 
        &lt;/TR&gt; 
       &lt;/TBODY&gt; 
      &lt;/TABLE&gt; 
     &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;You can use serval tDBxxxinput components to select columns from different tables, then link to a tMap components and do some join or merge the data.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Do we have to use one tDBxxxinput component for each table we want to query in a database? 
&lt;BR /&gt;My situation : 
&lt;BR /&gt;I have an input database and I want to make a query on several linked tables in it. 
&lt;BR /&gt;I defined a Db connection with all the tables schemas in my repository. 
&lt;BR /&gt;I add a tAccessInput component in my job. 
&lt;BR /&gt;The basics settings for the tAccessInput component wants me to choose one TABLE schema only. 
&lt;BR /&gt;I can't figure out what I have to do to be able to specify several table names and schemas for my query. 
&lt;BR /&gt;Thanks for your answer and your help! 
&lt;BR /&gt;Helene.</description>
      <pubDate>Thu, 22 May 2008 17:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/newbie-automatic-schema-creation-for-query/m-p/2210030#M8611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-22T17:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: newbie: automatic schema creation for query?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/newbie-automatic-schema-creation-for-query/m-p/2210031#M8612</link>
      <description>Follow the previous post : 
&lt;BR /&gt;When I try to build my query with the SQLBuilder, I can use the designer to define the tables, the fields and the relations I want in my query. 
&lt;BR /&gt;The SQL statement producted is syntaxically correct, but, when I run it, no result appears in the "Query results view"(I just have the SQL statement). 
&lt;BR /&gt;Despite this problem, If I want to use this query in the basics settings of my tAccessInput component (by filling the "Query Type" fields), how can I fill right the other fields ("Table Name", "Table Schema"....) to allow the query to run on all the tables referenced ? 
&lt;BR /&gt;Thanks again for the help. 
&lt;BR /&gt;Helene.</description>
      <pubDate>Thu, 22 May 2008 17:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/newbie-automatic-schema-creation-for-query/m-p/2210031#M8612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-05-22T17:39:57Z</dc:date>
    </item>
  </channel>
</rss>

