<?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: Can I use MOD in Query Builder? in ArcGIS Mapping and Charting Questions</title>
    <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/can-i-use-mod-in-query-builder/m-p/146134#M497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan.&amp;nbsp; But I was over thinking this.&amp;nbsp;&amp;nbsp; The separator for MOD in this environment is a comma, so&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;MOD("MILE_NR", 10) = 0&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp; works just fine.&amp;nbsp; No need to convert MILE_NR to an integer even! I just need to read the docs more carefully!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Sep 2017 21:37:21 GMT</pubDate>
    <dc:creator>PaulHuffman</dc:creator>
    <dc:date>2017-09-20T21:37:21Z</dc:date>
    <item>
      <title>Can I use MOD in Query Builder?</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/can-i-use-mod-in-query-builder/m-p/146132#M495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought I have done this before but I can't make it work in Definition Query&amp;gt; Query Builder.&amp;nbsp; If I just want to select features from a feature class for an item that evaluated to even 10s,&amp;nbsp; like &amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;MOD("MILE_NR" / 10) = 0&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can't I use MOD in my Definition Query?&amp;nbsp; Don't see MOD in the Query Builder Help, but I see it in the SQL reference docs.&amp;nbsp; Is it because the item MILE_NR is float, 0, not an integer? Didn't see INT in the Query Builder Help either, so I also tried&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;MOD(ROUND("MILE_NR",0) / 10) = 0&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp; Same message "invalid SQL statement was used"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need the do this selection in Python?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 21:21:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/can-i-use-mod-in-query-builder/m-p/146132#M495</guid>
      <dc:creator>PaulHuffman</dc:creator>
      <dc:date>2017-09-20T21:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use MOD in Query Builder?</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/can-i-use-mod-in-query-builder/m-p/146133#M496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can use python (just using a variable now as an example)&lt;/P&gt;&lt;P&gt;MILE_NR % 10&lt;BR /&gt;0&lt;/P&gt;&lt;P&gt;but your field names and query would appear as .. &amp;nbsp; !MILE_NR! % 10 == 0&lt;/P&gt;&lt;P&gt;As an example using a variable&lt;/P&gt;&lt;P&gt;MILE_NR % 10 == 0&lt;/P&gt;&lt;P&gt;True&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 21:31:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/can-i-use-mod-in-query-builder/m-p/146133#M496</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-09-20T21:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use MOD in Query Builder?</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/can-i-use-mod-in-query-builder/m-p/146134#M497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan.&amp;nbsp; But I was over thinking this.&amp;nbsp;&amp;nbsp; The separator for MOD in this environment is a comma, so&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;MOD("MILE_NR", 10) = 0&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp; works just fine.&amp;nbsp; No need to convert MILE_NR to an integer even! I just need to read the docs more carefully!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 21:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/can-i-use-mod-in-query-builder/m-p/146134#M497</guid>
      <dc:creator>PaulHuffman</dc:creator>
      <dc:date>2017-09-20T21:37:21Z</dc:date>
    </item>
  </channel>
</rss>

