<?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 WHERE Clause in SQL connector has errors and I have no idea why in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/where-clause-in-sql-connector-has-errors-and-i-have-no-idea-why/m-p/8492#M3548</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to return records from a SQL database where the&amp;nbsp; dates in the "lastcastingdate" column of the DB is more than 14 days ago.&amp;nbsp; I have entered the following into the WHERE clause in the Select Row action:&lt;/P&gt;&lt;P&gt;=LASTCASTINGDATE &amp;lt; today - 14.days&lt;/P&gt;&lt;P&gt;but it just fails when I try to save it.&amp;nbsp; The error message is "Formula has errors" and that's it.&amp;nbsp; Can anyone shed any light on this?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jan 2025 12:56:21 GMT</pubDate>
    <dc:creator>ExcessionOCP</dc:creator>
    <dc:date>2025-01-15T12:56:21Z</dc:date>
    <item>
      <title>WHERE Clause in SQL connector has errors and I have no idea why</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/where-clause-in-sql-connector-has-errors-and-i-have-no-idea-why/m-p/8492#M3548</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm trying to return records from a SQL database where the&amp;nbsp; dates in the "lastcastingdate" column of the DB is more than 14 days ago.&amp;nbsp; I have entered the following into the WHERE clause in the Select Row action:&lt;/P&gt;&lt;P&gt;=LASTCASTINGDATE &amp;lt; today - 14.days&lt;/P&gt;&lt;P&gt;but it just fails when I try to save it.&amp;nbsp; The error message is "Formula has errors" and that's it.&amp;nbsp; Can anyone shed any light on this?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 12:56:21 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/where-clause-in-sql-connector-has-errors-and-i-have-no-idea-why/m-p/8492#M3548</guid>
      <dc:creator>ExcessionOCP</dc:creator>
      <dc:date>2025-01-15T12:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE Clause in SQL connector has errors and I have no idea why</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/where-clause-in-sql-connector-has-errors-and-i-have-no-idea-why/m-p/8493#M3549</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/11396"&gt;@ExcessionOCP&lt;/a&gt;,&lt;BR /&gt;If the data type of "lastcastingdate" is date , then please compare the format of the "lastcastingdate" and "today - 14.days".&amp;nbsp;&lt;BR /&gt;As the format of "today" formula is "YYYY-MM-DD".&amp;nbsp;&lt;BR /&gt;If the format does not match you might get formula error.&lt;BR /&gt;Regards,&lt;BR /&gt;Prudvi&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 14:00:42 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/where-clause-in-sql-connector-has-errors-and-i-have-no-idea-why/m-p/8493#M3549</guid>
      <dc:creator>Prudvi</dc:creator>
      <dc:date>2025-01-15T14:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE Clause in SQL connector has errors and I have no idea why</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/where-clause-in-sql-connector-has-errors-and-i-have-no-idea-why/m-p/8494#M3550</link>
      <description>&lt;P&gt;Thanks for your reply.&amp;nbsp; I was just about to close this post as I used a different approach - I wrote the query in TSQL and then executed it using the Custom SQL option within Workato.&amp;nbsp; Thanks for taking the time to reply though!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 14:29:17 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/where-clause-in-sql-connector-has-errors-and-i-have-no-idea-why/m-p/8494#M3550</guid>
      <dc:creator>ExcessionOCP</dc:creator>
      <dc:date>2025-01-15T14:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: WHERE Clause in SQL connector has errors and I have no idea why</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/where-clause-in-sql-connector-has-errors-and-i-have-no-idea-why/m-p/8495#M3551</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://systematic.workato.com/t5/user/viewprofilepage/user-id/11396"&gt;@ExcessionOCP&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If you're using MySQL, the assumption about today - 14 not being appropriate is correct. Instead, you should use the SYSDATE() function to calculate dates. Here's the revised suggestion:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;where order_date &amp;lt; SYSDATE() - INTERVAL 14 DAY;&lt;/STRONG&gt;&lt;BR /&gt;Would you like further clarification or assistance? &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;Shivakumara K&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 15:05:09 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/where-clause-in-sql-connector-has-errors-and-i-have-no-idea-why/m-p/8495#M3551</guid>
      <dc:creator>shivakumara</dc:creator>
      <dc:date>2025-01-15T15:05:09Z</dc:date>
    </item>
  </channel>
</rss>

