<?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: Selecting by Attributes using &amp;quot;MID&amp;quot;: Personal GDB vs SDE in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/selecting-by-attributes-using-quot-mid-quot/m-p/280995#M16119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What does "MID()" do?&amp;nbsp; You need to use the equivalent Oracle SQL function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Dec 2011 17:01:40 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2011-12-08T17:01:40Z</dc:date>
    <item>
      <title>Selecting by Attributes using "MID": Personal GDB vs SDE</title>
      <link>https://community.esri.com/t5/data-management-questions/selecting-by-attributes-using-quot-mid-quot/m-p/280994#M16118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Within ArcMAP using a feature class in a personal GDB, I originally used this query for selecting from a text field using the "select by attributes" tool and it work correctly:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MID (StationRunOrder,1,1) = "4" OR MID (StationRunOrder,3,1) = "4"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Running the same query on this features class after it was imported to SDE the same query returns the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;There was an error with expression.&amp;nbsp; Underlying DBMS error[ORA-0094: "4": invalid identifier]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fields I'm selecting from are defined the same in both cases.&amp;nbsp; I suspect it's simply a syntax issue.&amp;nbsp; Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Scott&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 15:39:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/selecting-by-attributes-using-quot-mid-quot/m-p/280994#M16118</guid>
      <dc:creator>ScottGowan</dc:creator>
      <dc:date>2011-12-08T15:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting by Attributes using "MID": Personal GDB vs SDE</title>
      <link>https://community.esri.com/t5/data-management-questions/selecting-by-attributes-using-quot-mid-quot/m-p/280995#M16119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What does "MID()" do?&amp;nbsp; You need to use the equivalent Oracle SQL function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 17:01:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/selecting-by-attributes-using-quot-mid-quot/m-p/280995#M16119</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-12-08T17:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting by Attributes using "MID": Personal GDB vs SDE</title>
      <link>https://community.esri.com/t5/data-management-questions/selecting-by-attributes-using-quot-mid-quot/m-p/280996#M16120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What does "MID()" do?&amp;nbsp; You need to use the equivalent Oracle SQL function.&lt;BR /&gt; &lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You were right on. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The equivalent in Oracle is substr (sub string).&amp;nbsp; I'm pulling out values from the string in the first three postions when they're '?', which ever value I want.&amp;nbsp;&amp;nbsp; '7' in this case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The revised query was:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;substr (StationRunOrder,1,1) = '7' OR substr (StationRunOrder,3,1) = '7'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&amp;nbsp; Scott&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2011 19:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/selecting-by-attributes-using-quot-mid-quot/m-p/280996#M16120</guid>
      <dc:creator>ScottGowan</dc:creator>
      <dc:date>2011-12-08T19:08:15Z</dc:date>
    </item>
  </channel>
</rss>

