<?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 How can I select every other record in a very large attribute table other than interactively? in State &amp; Local Government Questions</title>
    <link>https://community.esri.com/t5/state-local-government-questions/how-can-i-select-every-other-record-in-a-very/m-p/526498#M3360</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using ArcMap 10.5.1.&amp;nbsp; My table contains pairs of parcel numbers and looks like this.&amp;nbsp; Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="382556" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/382556_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Nov 2017 15:42:46 GMT</pubDate>
    <dc:creator>CherieMoritz2</dc:creator>
    <dc:date>2017-11-03T15:42:46Z</dc:date>
    <item>
      <title>How can I select every other record in a very large attribute table other than interactively?</title>
      <link>https://community.esri.com/t5/state-local-government-questions/how-can-i-select-every-other-record-in-a-very/m-p/526498#M3360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using ArcMap 10.5.1.&amp;nbsp; My table contains pairs of parcel numbers and looks like this.&amp;nbsp; Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="382556" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/382556_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 15:42:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/how-can-i-select-every-other-record-in-a-very/m-p/526498#M3360</guid>
      <dc:creator>CherieMoritz2</dc:creator>
      <dc:date>2017-11-03T15:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select every other record in a very large attribute table other than interactively?</title>
      <link>https://community.esri.com/t5/state-local-government-questions/how-can-i-select-every-other-record-in-a-very/m-p/526499#M3361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like the table is sorted on PARCEL_NO. Would it be possible to sort this table and create a new table, or is that not an option. This would probably create new OBJECTID and that would allow you to select by attributes using the following SQL:&lt;/P&gt;&lt;PRE class="line-numbers language-sql"&gt;&lt;CODE&gt;MOD &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;OBJECTID&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/382560_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 15:55:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/how-can-i-select-every-other-record-in-a-very/m-p/526499#M3361</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-11-03T15:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select every other record in a very large attribute table other than interactively?</title>
      <link>https://community.esri.com/t5/state-local-government-questions/how-can-i-select-every-other-record-in-a-very/m-p/526500#M3362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given a parcel number, which address to you want to select?&amp;nbsp; The low or high address, e.g., 1066 Pine St or 1068 Pine St?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 16:07:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/how-can-i-select-every-other-record-in-a-very/m-p/526500#M3362</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-11-03T16:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select every other record in a very large attribute table other than interactively?</title>
      <link>https://community.esri.com/t5/state-local-government-questions/how-can-i-select-every-other-record-in-a-very/m-p/526501#M3363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The table order is important in this case.&amp;nbsp; Cherie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 20:22:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/how-can-i-select-every-other-record-in-a-very/m-p/526501#M3363</guid>
      <dc:creator>CherieMoritz2</dc:creator>
      <dc:date>2017-11-03T20:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select every other record in a very large attribute table other than interactively?</title>
      <link>https://community.esri.com/t5/state-local-government-questions/how-can-i-select-every-other-record-in-a-very/m-p/526502#M3364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either all the high addresses or all low addresses.&amp;nbsp; It doesn't matter which, as long as it's consistently high or low.&amp;nbsp; Cherie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Nov 2017 20:23:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/how-can-i-select-every-other-record-in-a-very/m-p/526502#M3364</guid>
      <dc:creator>CherieMoritz2</dc:creator>
      <dc:date>2017-11-03T20:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select every other record in a very large attribute table other than interactively?</title>
      <link>https://community.esri.com/t5/state-local-government-questions/how-can-i-select-every-other-record-in-a-very/m-p/526503#M3365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can generate an OID list and then pass every other element to &lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Layer.setSelectionSet&lt;/SPAN&gt;:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;lyr = # ArcPy mapping layer object
fields = ["OID@", "PARCEL_NO", "WHOLEADDRESS"]
sql = "ORDER BY PARCEL_NO, WHOLEADDRESS"

with arcpy.da.SearchCursor(lyr, fields, sql_clause=(None,sql)) as cur:
&amp;nbsp;&amp;nbsp;&amp;nbsp; oid_list = [row[0] for row in cur]

lyr.setSelectionSet("NEW", oid_list[::2])


&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:56:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/how-can-i-select-every-other-record-in-a-very/m-p/526503#M3365</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T22:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select every other record in a very large attribute table other than interactively?</title>
      <link>https://community.esri.com/t5/state-local-government-questions/how-can-i-select-every-other-record-in-a-very/m-p/526504#M3366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's great!&amp;nbsp; Thanks for your help.&amp;nbsp; I will give it a try.&amp;nbsp; Cherie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 13:26:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/state-local-government-questions/how-can-i-select-every-other-record-in-a-very/m-p/526504#M3366</guid>
      <dc:creator>CherieMoritz2</dc:creator>
      <dc:date>2017-11-06T13:26:20Z</dc:date>
    </item>
  </channel>
</rss>

