<?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 [resolved] Split date and time from a TIMESTAMP in a tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Split-date-and-time-from-a-TIMESTAMP-in-a-tMap/m-p/2219729#M14408</link>
    <description>Hi all, 
&lt;BR /&gt;I have 3 tables : 
&lt;BR /&gt;- table_1 includes a field_1&amp;nbsp;TIMESTAMP column (yyyy-mm-dd hh:mm:ss) 
&lt;BR /&gt;-&amp;nbsp;table_2 includes a field_2&amp;nbsp;DATE column (yyyy-mm-dd) 
&lt;BR /&gt;-&amp;nbsp;table_3 includes a field_3&amp;nbsp;TIME column (hh:mm:ss) 
&lt;BR /&gt;I'm trying to create 2 different inner join from table_1 to table_2 and table_3 inside a tMap. 
&lt;BR /&gt;Is Talend enough powerful to understand the two following INNER JOIN? Otherwise, which function should I use? 
&lt;BR /&gt; 
&lt;PRE&gt;INNER JOIN ON table_1.field1 = table_2.field_2&lt;BR /&gt;INNER JOIN ON table_1.field1 = table_3.field_3&lt;/PRE&gt; 
&lt;BR /&gt;Thx a lot for any advice. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCuH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156978i62BAF553F8E043E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCuH.png" alt="0683p000009MCuH.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Wed, 06 Jan 2016 02:32:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-01-06T02:32:01Z</dc:date>
    <item>
      <title>[resolved] Split date and time from a TIMESTAMP in a tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Split-date-and-time-from-a-TIMESTAMP-in-a-tMap/m-p/2219729#M14408</link>
      <description>Hi all, 
&lt;BR /&gt;I have 3 tables : 
&lt;BR /&gt;- table_1 includes a field_1&amp;nbsp;TIMESTAMP column (yyyy-mm-dd hh:mm:ss) 
&lt;BR /&gt;-&amp;nbsp;table_2 includes a field_2&amp;nbsp;DATE column (yyyy-mm-dd) 
&lt;BR /&gt;-&amp;nbsp;table_3 includes a field_3&amp;nbsp;TIME column (hh:mm:ss) 
&lt;BR /&gt;I'm trying to create 2 different inner join from table_1 to table_2 and table_3 inside a tMap. 
&lt;BR /&gt;Is Talend enough powerful to understand the two following INNER JOIN? Otherwise, which function should I use? 
&lt;BR /&gt; 
&lt;PRE&gt;INNER JOIN ON table_1.field1 = table_2.field_2&lt;BR /&gt;INNER JOIN ON table_1.field1 = table_3.field_3&lt;/PRE&gt; 
&lt;BR /&gt;Thx a lot for any advice. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCuH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156978i62BAF553F8E043E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCuH.png" alt="0683p000009MCuH.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 06 Jan 2016 02:32:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Split-date-and-time-from-a-TIMESTAMP-in-a-tMap/m-p/2219729#M14408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-06T02:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Split date and time from a TIMESTAMP in a tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Split-date-and-time-from-a-TIMESTAMP-in-a-tMap/m-p/2219730#M14409</link>
      <description>Before joining, I'd think you'd want to split&amp;nbsp;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;field_1&amp;nbsp;TIMESTAMP&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;in to two fields, one for the date and one for the time. Presumably, you're using some default dates and times in your two DIM tables, so you'd want to construct these two new fields using those.
&lt;BR /&gt;Your join is then simple.</description>
      <pubDate>Wed, 06 Jan 2016 10:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Split-date-and-time-from-a-TIMESTAMP-in-a-tMap/m-p/2219730#M14409</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-06T10:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Split date and time from a TIMESTAMP in a tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Split-date-and-time-from-a-TIMESTAMP-in-a-tMap/m-p/2219731#M14410</link>
      <description>Hi tal00000,&lt;BR /&gt;This is johanglasses, I just found out that I have 2 accounts... anyway..&lt;BR /&gt;I'm sorry but I didin't really get the idea of your message.&lt;BR /&gt;Could you elaborate please?&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 08 Jan 2016 05:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Split-date-and-time-from-a-TIMESTAMP-in-a-tMap/m-p/2219731#M14410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-08T05:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Split date and time from a TIMESTAMP in a tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Split-date-and-time-from-a-TIMESTAMP-in-a-tMap/m-p/2219732#M14411</link>
      <description>You have a date dimension and a time dimension.&lt;BR /&gt;Assuming that your look-up keys are of a Date type (not clear from your screenshot), then you must be using a default time (midnight?) in the date dimension and a default date (1900-01-01?) in the time dimension.&lt;BR /&gt;In your input data, you have a date and time.&lt;BR /&gt;Use a tMap component to create two new Date output fields. One contains your date (with default time) and the other contains your time (with default date).&lt;BR /&gt;You can then use these for a simple join to your dimension tables.</description>
      <pubDate>Sat, 09 Jan 2016 09:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Split-date-and-time-from-a-TIMESTAMP-in-a-tMap/m-p/2219732#M14411</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-09T09:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Split date and time from a TIMESTAMP in a tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Split-date-and-time-from-a-TIMESTAMP-in-a-tMap/m-p/2219733#M14412</link>
      <description>Hi, 
&lt;BR /&gt;Ok, my bad, I'm not clear enough. Here is 3 screenshots of 3 tables. 
&lt;BR /&gt;- 
&lt;B&gt;BI_ODS_ERP_CUSTOMER_ORDER&lt;/B&gt; is an operational table containing the field 
&lt;B&gt;created_at&lt;BR /&gt;&lt;/B&gt;The datatype of this field is a&amp;nbsp; 
&lt;B&gt;&lt;FONT color="#ff9933"&gt;TIMESTAMP &lt;/FONT&gt;&lt;/B&gt;( 
&lt;FONT color="#3333ff"&gt;yyyy-mm-d&lt;/FONT&gt; 
&lt;FONT color="#3333ff"&gt;d &lt;/FONT&gt; 
&lt;FONT color="#ff3333"&gt;hh:mm:ss&lt;/FONT&gt;) 
&lt;BR /&gt;- 
&lt;B&gt;BI_DWH_dimension_date&lt;/B&gt; is the Date dimension table containing the field 
&lt;B&gt;full_date&lt;BR /&gt;&lt;/B&gt;The datatype of this field is a&amp;nbsp; 
&lt;B&gt;&lt;FONT color="#ff9933"&gt;DATE &lt;/FONT&gt;&lt;/B&gt;( 
&lt;FONT color="#3333ff"&gt;yyyy-mm-dd&lt;/FONT&gt;) 
&lt;BR /&gt;- 
&lt;B&gt;BI_DWH_dimension_time&lt;/B&gt;&amp;nbsp;is&amp;nbsp;the Time dimension table containing the field 
&lt;B&gt;full_time&lt;BR /&gt;&lt;/B&gt;The datatype of this field is a 
&lt;B&gt;&lt;FONT color="#ff9933"&gt;TIME &lt;/FONT&gt;&lt;/B&gt;( 
&lt;FONT color="#ff3333"&gt;hh:mm:ss&lt;/FONT&gt;) 
&lt;BR /&gt;Now, in order to load data in my Fact_table, I want to do graphically the following Mysql code inside a tMap component. 
&lt;BR /&gt; 
&lt;PRE&gt;SELECT * FROM&amp;nbsp;BI_ODS_ERP_CUSTOMER_ORDER t1&lt;BR /&gt;INNER JOIN&amp;nbsp;BI_DWH_dimension_date&amp;nbsp;t2 ON t2.full_date&amp;nbsp;= DATE(t1.created_at)&lt;BR /&gt;INNER JOIN&amp;nbsp;BI_DWH_dimension_time&amp;nbsp;t3 ON t3.full_time&amp;nbsp;= TIME(t1.created_at)&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;So I am not sure I need any default date or default time. 
&lt;BR /&gt;I just want to truncate my field 
&lt;B&gt;created_at&lt;/B&gt; so I can make 2 inner join. 
&lt;BR /&gt;Hope I was clearer. 
&lt;BR /&gt;Thanks for following up my issue. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCuM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139236iE96BD0FF6C7C60E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCuM.png" alt="0683p000009MCuM.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCuR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155709i8934AF2C97F33A88/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCuR.png" alt="0683p000009MCuR.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCuW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138138i80B0DEEE80C8F798/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCuW.png" alt="0683p000009MCuW.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 12 Jan 2016 03:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Split-date-and-time-from-a-TIMESTAMP-in-a-tMap/m-p/2219733#M14412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-12T03:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Split date and time from a TIMESTAMP in a tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Split-date-and-time-from-a-TIMESTAMP-in-a-tMap/m-p/2219734#M14413</link>
      <description>Hi Seeusoon (still you 
&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;Maybe a job like this one can do the trick (sorry for my bad screenshot) 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/283286/Between3Tables.gif" target="_blank"&gt;&amp;nbsp; &lt;/A&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/283286/Between3Tables.gif" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCub.gif"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134311i44B1CBDD740F67BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCub.gif" alt="0683p000009MCub.gif" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;Hope it helps...</description>
      <pubDate>Tue, 12 Jan 2016 10:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Split-date-and-time-from-a-TIMESTAMP-in-a-tMap/m-p/2219734#M14413</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-12T10:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Split date and time from a TIMESTAMP in a tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Split-date-and-time-from-a-TIMESTAMP-in-a-tMap/m-p/2219735#M14414</link>
      <description>Hi tdz, 
&lt;BR /&gt;Thx again for resolving 2 of my problems in a row 
&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;I just adapt the code for the time as the one for the date like this: 
&lt;BR /&gt; 
&lt;PRE&gt;TalendDate.parseDate("yyyy-MM-dd",TalendDate.formatDate("yyyy-MM-dd",row1.fullDate))&lt;BR /&gt;TalendDate.parseDate("HH:mm:ss",TalendDate.formatDate("HH:mm:ss",row1.fullDate))&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7vK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151107i93DD94069A7D9A07/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7vK.png" alt="0683p000009M7vK.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 13 Jan 2016 03:47:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Split-date-and-time-from-a-TIMESTAMP-in-a-tMap/m-p/2219735#M14414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-13T03:47:50Z</dc:date>
    </item>
  </channel>
</rss>

