<?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 Syntax error expected something between '(' and the 'left' keyword in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SQL-Syntax-error-expected-something-between-and-the-left-keyword/m-p/2325178#M94804</link>
    <description>My data looks like:&lt;BR /&gt;yyyymmdd&lt;BR /&gt;20111122&lt;BR /&gt;The Teradata database SQL is converting the varchar to a date so it looks like:&lt;BR /&gt;2011-11-22&lt;BR /&gt;My SQL:&lt;BR /&gt;SELECT &lt;BR /&gt;&lt;B&gt;cast(left( myDate, 4) || '-' ||&lt;BR /&gt;substr(myDate, 5,2) || '-' ||&lt;BR /&gt;substr(myDate,length(myDate) - 2 + 1, 2) as date )&lt;/B&gt; as PULL_DATE&lt;BR /&gt;FROM myDatabase.myTable&lt;BR /&gt;&lt;B&gt;How can I get this SQL to run successfully in a tTeradataInput component?&lt;/B&gt;&lt;BR /&gt;The SQL runs fine outside of Talend.&lt;BR /&gt;The error message:&lt;BR /&gt;Exception in component tTeradataInput_3&lt;BR /&gt;com.teradata.jdbc.jdbc_4.util.JDBCException:     &lt;B&gt;Syntax error: expected something between '(' and the 'left' keyword.&lt;/B&gt;&lt;BR /&gt;Do I need to somehow escape the word "left" or "cast"?</description>
    <pubDate>Sat, 16 Nov 2024 12:33:16 GMT</pubDate>
    <dc:creator>talendtester</dc:creator>
    <dc:date>2024-11-16T12:33:16Z</dc:date>
    <item>
      <title>SQL Syntax error expected something between '(' and the 'left' keyword</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-Syntax-error-expected-something-between-and-the-left-keyword/m-p/2325178#M94804</link>
      <description>My data looks like:&lt;BR /&gt;yyyymmdd&lt;BR /&gt;20111122&lt;BR /&gt;The Teradata database SQL is converting the varchar to a date so it looks like:&lt;BR /&gt;2011-11-22&lt;BR /&gt;My SQL:&lt;BR /&gt;SELECT &lt;BR /&gt;&lt;B&gt;cast(left( myDate, 4) || '-' ||&lt;BR /&gt;substr(myDate, 5,2) || '-' ||&lt;BR /&gt;substr(myDate,length(myDate) - 2 + 1, 2) as date )&lt;/B&gt; as PULL_DATE&lt;BR /&gt;FROM myDatabase.myTable&lt;BR /&gt;&lt;B&gt;How can I get this SQL to run successfully in a tTeradataInput component?&lt;/B&gt;&lt;BR /&gt;The SQL runs fine outside of Talend.&lt;BR /&gt;The error message:&lt;BR /&gt;Exception in component tTeradataInput_3&lt;BR /&gt;com.teradata.jdbc.jdbc_4.util.JDBCException:     &lt;B&gt;Syntax error: expected something between '(' and the 'left' keyword.&lt;/B&gt;&lt;BR /&gt;Do I need to somehow escape the word "left" or "cast"?</description>
      <pubDate>Sat, 16 Nov 2024 12:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-Syntax-error-expected-something-between-and-the-left-keyword/m-p/2325178#M94804</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2024-11-16T12:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Syntax error expected something between '(' and the 'left' keyword</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-Syntax-error-expected-something-between-and-the-left-keyword/m-p/2325179#M94805</link>
      <description>Have you got the SQL in quotes?</description>
      <pubDate>Wed, 23 Nov 2011 09:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-Syntax-error-expected-something-between-and-the-left-keyword/m-p/2325179#M94805</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2011-11-23T09:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Syntax error expected something between '(' and the 'left' keyword</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-Syntax-error-expected-something-between-and-the-left-keyword/m-p/2325180#M94806</link>
      <description>I have double quotes before and after the SQL. In my SQL I have single quotes.&lt;BR /&gt;&lt;B&gt;Do I need to escape the vertical bars individually with "\\"?&lt;/B&gt;</description>
      <pubDate>Wed, 23 Nov 2011 17:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-Syntax-error-expected-something-between-and-the-left-keyword/m-p/2325180#M94806</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2011-11-23T17:14:18Z</dc:date>
    </item>
  </channel>
</rss>

