<?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 Re: Sdetable * Special Where Clause in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/sdetable-special-where-clause/m-p/519624#M29518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven´t find any solution. The clause is running in a SQL program but it is not under SDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vangelo thank you with your answer, do you have any Idea for resolving this problem.. any other Code under sdetable?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 May 2010 07:14:25 GMT</pubDate>
    <dc:creator>CarlosRiano</dc:creator>
    <dc:date>2010-05-20T07:14:25Z</dc:date>
    <item>
      <title>Sdetable * Special Where Clause</title>
      <link>https://community.esri.com/t5/data-management-questions/sdetable-special-where-clause/m-p/519622#M29516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear friends,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am doing a View in SDE whit SQL. Usually all where clauses are similar, but this time I have one different and I couldn't write it properly. The table has some columns including CATEGORY and DATE. The idea is extract information from the max DATE for two Categories.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In Access, the SQL code is: SELECT * from [msc_mob] where date = (select max (date) from (select category, date from [msc_mob] where category = "Infantry")).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I write the where clause into ArcSDE it shows and error: Incorrect syntax near ')'. CAn any of you help me to check the code or give em a hand with a new code?!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The SDEtable command is the next:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;sdetable -o create_view &lt;BR /&gt;-T TEST_VW &lt;BR /&gt;-t GISADMIN.DRCGWG_VV_GPS, gisadmin.MSC_MOB_COB &lt;BR /&gt;-c GISADMIN.DRCGWG_VV_GPS.Shape,&lt;BR /&gt;gisadmin.MSC_MOB_COB.ObjectID,&lt;BR /&gt;gisadmin.MSC_MOB_COB.CODE,&lt;BR /&gt;gisadmin.MSC_MOB_COB.LOCATION,&lt;BR /&gt;gisadmin.MSC_MOB_COB.BRIGADE,&lt;BR /&gt;gisadmin.MSC_MOB_COB.Category,&lt;BR /&gt;-w "GISADMIN.DRCGWG_VV_GPS.code = gisadmin.MSC_MOB_COB.code AND GISADMIN.DRCGWG_VV_GPS.usability=0 AND (select max(date) from (select gisadmin.MSC_MOB_COB.category, date from gisadmin.MSC_MOB_COB where gisadmin.MSC_MOB_COB.category='Infantry'))" &lt;BR /&gt;-D XXXX -u XXX-p XXXXXX -s XXXX-i XXXX&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 15:37:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sdetable-special-where-clause/m-p/519622#M29516</guid>
      <dc:creator>CarlosRiano</dc:creator>
      <dc:date>2010-05-19T15:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sdetable * Special Where Clause</title>
      <link>https://community.esri.com/t5/data-management-questions/sdetable-special-where-clause/m-p/519623#M29517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe it's an artifact of the posting environment, but as I read it, your WHERE clause&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;isn't legal SQL -- did you mean "AND date = (...subselect...)"?.&amp;nbsp; Even if it is legal, you&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;might be running into a utility parse buffer issue with the long WHERE constraint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not strictly supported, but you can generally add exotic options to the view after it's &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;created (as long as it doesn't result in unsupported columns or polynomial expansion&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;of the registered rowid column)-- but the SQL still has to pass muster with the database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 16:49:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sdetable-special-where-clause/m-p/519623#M29517</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-05-19T16:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sdetable * Special Where Clause</title>
      <link>https://community.esri.com/t5/data-management-questions/sdetable-special-where-clause/m-p/519624#M29518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven´t find any solution. The clause is running in a SQL program but it is not under SDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vangelo thank you with your answer, do you have any Idea for resolving this problem.. any other Code under sdetable?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 07:14:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sdetable-special-where-clause/m-p/519624#M29518</guid>
      <dc:creator>CarlosRiano</dc:creator>
      <dc:date>2010-05-20T07:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sdetable * Special Where Clause</title>
      <link>https://community.esri.com/t5/data-management-questions/sdetable-special-where-clause/m-p/519625#M29519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If it doesn't work on the command line, remove the final AND clause to let 'sdetable' succeed, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and then apply that clause via ALTER VIEW from a SQL client (like SQLDeveloper) later.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 10:33:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sdetable-special-where-clause/m-p/519625#M29519</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-05-20T10:33:23Z</dc:date>
    </item>
  </channel>
</rss>

