<?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: How to find whether a list of features contains features with same Field1 values and different Field2 values in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-whether-a-list-of-features-contains/m-p/305444#M7937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left;"&gt;Hi Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;I am not sure I understand the question but if you create a layer with field1 = 12345 and then run statistics or frequency on field2 does it gives you the results you are looking for?&lt;/P&gt;&lt;P style="text-align: left;"&gt;Another way is to open a cursor&amp;nbsp; on features that has field1 = 12345 ORDER by field2 and count the features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Have fun&lt;/P&gt;&lt;P style="text-align: left;"&gt;Mody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2015 04:48:41 GMT</pubDate>
    <dc:creator>ModyBuchbinder</dc:creator>
    <dc:date>2015-08-24T04:48:41Z</dc:date>
    <item>
      <title>How to find whether a list of features contains features with same Field1 values and different Field2 values</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-whether-a-list-of-features-contains/m-p/305443#M7936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two polygons with same value in the field Field1 (I know this value), and different values in field Field2. I need to know whether that list of polygons contains polygons with different values in field Field2. I do not need to know that values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to write WHERE in ArcMap -&amp;gt; Select by Attributes:&lt;/P&gt;&lt;P&gt;(SELECT * FROM sde_table_name WHERE:)&amp;nbsp; /*this is a standard row (in ArcMap) that I couldn't change*/&lt;/P&gt;&lt;P&gt;objectid IN (SELECT objectid FROM sde_table_name WHERE Field1=12345 group by objectid having count(distinct Field2) &amp;gt;1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This returns nothing, but I definitely have 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;It is for 10.3 version and Informix database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 02:32:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-whether-a-list-of-features-contains/m-p/305443#M7936</guid>
      <dc:creator>MarkMindlin</dc:creator>
      <dc:date>2015-08-24T02:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to find whether a list of features contains features with same Field1 values and different Field2 values</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-whether-a-list-of-features-contains/m-p/305444#M7937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: left;"&gt;Hi Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;I am not sure I understand the question but if you create a layer with field1 = 12345 and then run statistics or frequency on field2 does it gives you the results you are looking for?&lt;/P&gt;&lt;P style="text-align: left;"&gt;Another way is to open a cursor&amp;nbsp; on features that has field1 = 12345 ORDER by field2 and count the features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: left;"&gt;Have fun&lt;/P&gt;&lt;P style="text-align: left;"&gt;Mody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 04:48:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-whether-a-list-of-features-contains/m-p/305444#M7937</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2015-08-24T04:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to find whether a list of features contains features with same Field1 values and different Field2 values</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-whether-a-list-of-features-contains/m-p/305445#M7938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your responce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just I have the concrete requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally, the task is to check this case (a list of features contains features with same Field1 values and different Field2 values) with SQL sentence stored in a SDE table. In the table will be other SQL sentences to check other cases. The c# application should take this sentences and do some QA.&lt;/P&gt;&lt;P&gt;I am triyng to model this SQL sentences in ArcMap (A bit weird I agree &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the question is how to accomplish the task in SQL sentence.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 05:50:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-whether-a-list-of-features-contains/m-p/305445#M7938</guid>
      <dc:creator>MarkMindlin</dc:creator>
      <dc:date>2015-08-24T05:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to find whether a list of features contains features with same Field1 values and different Field2 values</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-whether-a-list-of-features-contains/m-p/305446#M7939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a SQL sentence that can give a result&lt;/P&gt;&lt;P&gt;- one row in case the Field2 is the same for all features Field1=12345.&lt;/P&gt;&lt;P&gt;- more than one row in case Field2 is different&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(SELECT * FROM sde_table_name WHERE:)&amp;nbsp; /*this is a standard row (in ArcMap) that I couldn't change*/&lt;/P&gt;&lt;P&gt;objectid in (SELECT MAX(objectid)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM sde_table_name &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE Field1=12345&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROUP BY Field1,Field2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But unfortunatelly, the data type of Field2 is TEXT. That means I cannot do GROUP BY by this field.&lt;/P&gt;&lt;P&gt;Any workaround?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 00:56:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-whether-a-list-of-features-contains/m-p/305446#M7939</guid>
      <dc:creator>MarkMindlin</dc:creator>
      <dc:date>2015-08-28T00:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to find whether a list of features contains features with same Field1 values and different Field2 values</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-whether-a-list-of-features-contains/m-p/305447#M7940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a thought... Maybe add a field and transfer the text in Field 2 to a numeric code... I'm sure that you thought of that by now though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 01:19:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-whether-a-list-of-features-contains/m-p/305447#M7940</guid>
      <dc:creator>KirtBrayshaw</dc:creator>
      <dc:date>2015-08-28T01:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to find whether a list of features contains features with same Field1 values and different Field2 values</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-whether-a-list-of-features-contains/m-p/305448#M7941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kirt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;I wish I were able to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 02:35:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-find-whether-a-list-of-features-contains/m-p/305448#M7941</guid>
      <dc:creator>MarkMindlin</dc:creator>
      <dc:date>2015-08-28T02:35:28Z</dc:date>
    </item>
  </channel>
</rss>

