<?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 GRC 5.3 Open SQL select syntax question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/grc-5-3-open-sql-select-syntax-question/m-p/6651656#M1445049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am in opensql witin GRC and I am trying to select all the rows from this table but I want t restrict my where clause on the attribute ation date &amp;gt; 2/26/2010 but I need the syntax to convert the actiondate ( 2009-10-19 15:16:56.403 ) so that the where clause understands that I want rows with an actiondate &amp;gt; 2/25/2010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from VIRSA_AE_RQ_HST&lt;/P&gt;&lt;P&gt;where pathname='AVESKA_AUTOAPPROVE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attribute (column table names ) for table VIRSA_AE_RQ_HST&lt;/P&gt;&lt;P&gt;REQNO &lt;/P&gt;&lt;P&gt;HST_ACTION &lt;/P&gt;&lt;P&gt;ACTIONDATE &lt;/P&gt;&lt;P&gt;USERID&lt;/P&gt;&lt;P&gt; ACTION_VALUE &lt;/P&gt;&lt;P&gt;DESCRIPTION&lt;/P&gt;&lt;P&gt; PATHNAME &lt;/P&gt;&lt;P&gt;STAGE_NAME&lt;/P&gt;&lt;P&gt; ID &lt;/P&gt;&lt;P&gt;DEPENDENT_ID &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Data&lt;/P&gt;&lt;P&gt;1177 ROLE_APPROVED 2009-10-19 15:16:56.403 75000010 YRS:IT:GEN:USER_GEN D11CLNT100 AVESKA_AUTOAPPROVE AUTO_APPROVE 29179 29177 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desired SQL&lt;/P&gt;&lt;P&gt;SELECT * FROM VIRSA_AE_RQ_HST&lt;/P&gt;&lt;P&gt;WHERE &lt;/P&gt;&lt;P&gt;       pathname='AVESKA_AUTOAPPROVE'&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;      actiondate &amp;gt; '2/25/2010'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rene Griffith on Feb 26, 2010 9:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Feb 2010 03:18:36 GMT</pubDate>
    <dc:creator>former_member788628</dc:creator>
    <dc:date>2010-02-27T03:18:36Z</dc:date>
    <item>
      <title>GRC 5.3 Open SQL select syntax question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grc-5-3-open-sql-select-syntax-question/m-p/6651656#M1445049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am in opensql witin GRC and I am trying to select all the rows from this table but I want t restrict my where clause on the attribute ation date &amp;gt; 2/26/2010 but I need the syntax to convert the actiondate ( 2009-10-19 15:16:56.403 ) so that the where clause understands that I want rows with an actiondate &amp;gt; 2/25/2010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from VIRSA_AE_RQ_HST&lt;/P&gt;&lt;P&gt;where pathname='AVESKA_AUTOAPPROVE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attribute (column table names ) for table VIRSA_AE_RQ_HST&lt;/P&gt;&lt;P&gt;REQNO &lt;/P&gt;&lt;P&gt;HST_ACTION &lt;/P&gt;&lt;P&gt;ACTIONDATE &lt;/P&gt;&lt;P&gt;USERID&lt;/P&gt;&lt;P&gt; ACTION_VALUE &lt;/P&gt;&lt;P&gt;DESCRIPTION&lt;/P&gt;&lt;P&gt; PATHNAME &lt;/P&gt;&lt;P&gt;STAGE_NAME&lt;/P&gt;&lt;P&gt; ID &lt;/P&gt;&lt;P&gt;DEPENDENT_ID &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Data&lt;/P&gt;&lt;P&gt;1177 ROLE_APPROVED 2009-10-19 15:16:56.403 75000010 YRS:IT:GEN:USER_GEN D11CLNT100 AVESKA_AUTOAPPROVE AUTO_APPROVE 29179 29177 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Desired SQL&lt;/P&gt;&lt;P&gt;SELECT * FROM VIRSA_AE_RQ_HST&lt;/P&gt;&lt;P&gt;WHERE &lt;/P&gt;&lt;P&gt;       pathname='AVESKA_AUTOAPPROVE'&lt;/P&gt;&lt;P&gt;AND&lt;/P&gt;&lt;P&gt;      actiondate &amp;gt; '2/25/2010'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rene Griffith on Feb 26, 2010 9:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Feb 2010 03:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grc-5-3-open-sql-select-syntax-question/m-p/6651656#M1445049</guid>
      <dc:creator>former_member788628</dc:creator>
      <dc:date>2010-02-27T03:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: GRC 5.3 Open SQL select syntax question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grc-5-3-open-sql-select-syntax-question/m-p/6651657#M1445050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try actiondate &amp;gt; to_date('2/25/2010','mm/dd/yyyy')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 12:03:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grc-5-3-open-sql-select-syntax-question/m-p/6651657#M1445050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-02T12:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: GRC 5.3 Open SQL select syntax question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grc-5-3-open-sql-select-syntax-question/m-p/6651658#M1445051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried executing this statement but getting this message in opensql&lt;/P&gt;&lt;P&gt;ERROR: The SQL statement "SELECT * FROM VIRSA_AE_RQ_HST WHERE pathname='AVESKA_AUTOAPPROVE' AND actiondate &amp;gt; to_date('2/25/2010','mm/dd/yyyy') " contains the syntax error[s]: - 5:21 - SQL syntax error: the token "(" was not expected here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 14:38:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grc-5-3-open-sql-select-syntax-question/m-p/6651658#M1445051</guid>
      <dc:creator>former_member788628</dc:creator>
      <dc:date>2010-03-12T14:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: GRC 5.3 Open SQL select syntax question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grc-5-3-open-sql-select-syntax-question/m-p/6651659#M1445052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rene, In SQL server below query works fine, please try this&lt;/P&gt;&lt;P&gt;SELECT * FROM SAPEP7DB.VIRSA_AE_RQ_HST WHERE &lt;/P&gt;&lt;P&gt;PATHNAME='AVESKA_AUTOAPPROVE'  and &lt;/P&gt;&lt;P&gt;ACTIONDATE &amp;gt; convert(char,'2/25/2010',101) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 15:41:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grc-5-3-open-sql-select-syntax-question/m-p/6651659#M1445052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-12T15:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: GRC 5.3 Open SQL select syntax question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/grc-5-3-open-sql-select-syntax-question/m-p/6651660#M1445053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but it is complaining about this too.  This one is definitley puzzling with the date.  Thanks for your persistsence to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: The SQL statement "SELECT * FROM SAPEP7DB.VIRSA_AE_RQ_HST WHERE PATHNAME='AVESKA_AUTOAPPROVE' and ACTIONDATE &amp;gt; convert(char,'2/25/2010',101) " contains the syntax error[s]: - 3:14 - Intermediate-SQL syntax error: CONVERT or TRANSLATE function not allowed - 3:22 - SQL syntax error: "CHAR" is a reserved keyword and cannot be used as an unquoted identifier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Mar 2010 15:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/grc-5-3-open-sql-select-syntax-question/m-p/6651660#M1445053</guid>
      <dc:creator>former_member788628</dc:creator>
      <dc:date>2010-03-12T15:57:28Z</dc:date>
    </item>
  </channel>
</rss>

