<?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: Are Def Query using SQL now different? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85508#M3573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you Def Query a SQL server then yes.&amp;nbsp; If you Def Query a GDB then no it is case sensitive.&amp;nbsp; The backend of AGOL is neither i think.&amp;nbsp; I could see that it may act that way though.&amp;nbsp; If I try to use&amp;nbsp;COLLATE Latin1_General_CS_AS it says invalid SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jun 2019 13:41:28 GMT</pubDate>
    <dc:creator>DougBrowning2</dc:creator>
    <dc:date>2019-06-18T13:41:28Z</dc:date>
    <item>
      <title>Are Def Query using SQL now different?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85499#M3564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying a simple query to look for accidental lower case errors.&amp;nbsp; For example Pf098788 should be PF098788.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a simple query&amp;nbsp;UPPER(UnknownCode) &amp;lt;&amp;gt; UnknownCode and I get no results.&amp;nbsp; If I try&amp;nbsp;UPPER(UnknownCode) = UnknownCode I get everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Layer us a AGOL Hosted feature service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 19:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85499#M3564</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-06-17T19:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Are Def Query using SQL now different?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85500#M3565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have tried this against AGOL hosted feature services in the past and it worked?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 20:06:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85500#M3565</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-06-17T20:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Are Def Query using SQL now different?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85501#M3566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope never tried this exact query.&amp;nbsp; Used others just fine though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 20:10:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85501#M3566</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-06-17T20:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Are Def Query using SQL now different?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85502#M3567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not to ask the obvious, but you know there are accidental lowercase records?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 20:43:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85502#M3567</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-06-17T20:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Are Def Query using SQL now different?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85503#M3568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yea I have been manually changing them all day.&amp;nbsp; My guess is UPPER is not working right since if I use = it gives me AF and Af back.&amp;nbsp; &amp;lt;&amp;gt; I get 0 records.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 21:05:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85503#M3568</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-06-17T21:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Are Def Query using SQL now different?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85504#M3569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just did some testing and see what you mean.&amp;nbsp; I don't think the issue is UPPER because if I do something like UPPER(field) = 'XYZ', I get 'xyz' and 'XYZ' returned.&amp;nbsp; I think the issue has something to do with referencing the field on the right-hand size of the SQL statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 22:14:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85504#M3569</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-06-17T22:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Are Def Query using SQL now different?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85505#M3570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you doing this calculation via ArcGIS Pro or in AGOL?&amp;nbsp; In AGOL, the calculation for SQL is simply UPPER(&amp;lt;field name&amp;gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following example SQL to calculated the hosted feature layer field in Pro as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPPER(NOTES)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If using Select by attributes, I can certainly see the issue.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best of luck,&lt;/P&gt;&lt;P&gt;Marisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 22:32:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85505#M3570</guid>
      <dc:creator>MarisaClaggett</dc:creator>
      <dc:date>2019-06-17T22:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Are Def Query using SQL now different?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85506#M3571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a field calc - this is a Def Query.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did notice it keeps defaulting to SQL for field calc, which is weird.&amp;nbsp; Is there a setting to make this default to Python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 22:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85506#M3571</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2019-06-17T22:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Are Def Query using SQL now different?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85507#M3572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By definition, SQL Server is case insensiitve.&amp;nbsp; Is that perhaps what you are missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 12:32:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85507#M3572</guid>
      <dc:creator>ThaddeusBara</dc:creator>
      <dc:date>2019-06-18T12:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Are Def Query using SQL now different?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85508#M3573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you Def Query a SQL server then yes.&amp;nbsp; If you Def Query a GDB then no it is case sensitive.&amp;nbsp; The backend of AGOL is neither i think.&amp;nbsp; I could see that it may act that way though.&amp;nbsp; If I try to use&amp;nbsp;COLLATE Latin1_General_CS_AS it says invalid SQL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 13:41:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/are-def-query-using-sql-now-different/m-p/85508#M3573</guid>
      <dc:creator>DougBrowning2</dc:creator>
      <dc:date>2019-06-18T13:41:28Z</dc:date>
    </item>
  </channel>
</rss>

