<?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 multiple subqueries be tied together? in Spatial Data Science Questions</title>
    <link>https://community.esri.com/t5/spatial-data-science-questions/can-multiple-subqueries-be-tied-together/m-p/629503#M1424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/space/2004"&gt;GeoNet Resource Hub&lt;/A&gt;‌ is focused on GeoNet, and isn't an overly active space.&amp;nbsp; Tagging like you did is helpful, but posting or sharing to more relevant spaces will increase visibility:&amp;nbsp; &lt;A href="https://community.esri.com/docs/DOC-1544-geonet-community-structure"&gt;https://community.esri.com/docs/DOC-1544-geonet-community-structure&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sharing with &lt;A href="https://community.esri.com/space/2046"&gt;GIS&lt;/A&gt;‌ and &lt;A href="https://community.esri.com/space/2051"&gt;Analysis&lt;/A&gt;‌ and &lt;A href="https://community.esri.com/group/1680"&gt;Geodatabase&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2018 13:11:03 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2018-10-31T13:11:03Z</dc:date>
    <item>
      <title>Can multiple subqueries be tied together?</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/can-multiple-subqueries-be-tied-together/m-p/629502#M1423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;desktop&amp;nbsp;definition query‌ subquery‌&lt;/P&gt;&lt;P&gt;Hello, I have a feature class called SupplyWells in a relationship class with a table called SamplingEvents.&amp;nbsp; For a specified Well Type, I want to find wells where there was no detections of contaminants in the first year of sampling and detections after that year.&amp;nbsp; Two fields in SamplingEvents&amp;nbsp;that should answer this are Sampling_Detects_Flag and Days.&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;Sampling_Detects_Flag is either NULL for no detection or YES for detection.&amp;nbsp; Days is the number of days from the date of the first sampling event to the date of the sampling event of that record.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tried this:&amp;nbsp;WELL_TYPE = 'WELL POINT' and EGAD_SEQ in (Select SAMPLE_POINT_SEQ from Sampling_Events where SAMPLE_DETECTION_FLAG is NULL and DAYS &amp;lt;= 365) and EGAD_SEQ in (Select SAMPLE_POINT_SEQ from Sampling_Events where SAMPLE_DETECTION_FLAG = 'YES' and DAYS &amp;gt; 365).&amp;nbsp; However, &lt;EM&gt;it returns wells with at least one non-detect during the first 365 days.&lt;/EM&gt;&amp;nbsp; I want no detections during the first 365 days.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The attached image&amp;nbsp;shows for the&amp;nbsp;WELL POINT meets the 2 criteria: there were no detections &amp;lt;= 365 days and there&amp;nbsp;were detections &amp;gt; 365 days (at Day 1704).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Your assistance is appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 21:43:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/can-multiple-subqueries-be-tied-together/m-p/629502#M1423</guid>
      <dc:creator>MarkWoodruff</dc:creator>
      <dc:date>2018-10-30T21:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can multiple subqueries be tied together?</title>
      <link>https://community.esri.com/t5/spatial-data-science-questions/can-multiple-subqueries-be-tied-together/m-p/629503#M1424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/space/2004"&gt;GeoNet Resource Hub&lt;/A&gt;‌ is focused on GeoNet, and isn't an overly active space.&amp;nbsp; Tagging like you did is helpful, but posting or sharing to more relevant spaces will increase visibility:&amp;nbsp; &lt;A href="https://community.esri.com/docs/DOC-1544-geonet-community-structure"&gt;https://community.esri.com/docs/DOC-1544-geonet-community-structure&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sharing with &lt;A href="https://community.esri.com/space/2046"&gt;GIS&lt;/A&gt;‌ and &lt;A href="https://community.esri.com/space/2051"&gt;Analysis&lt;/A&gt;‌ and &lt;A href="https://community.esri.com/group/1680"&gt;Geodatabase&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 13:11:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-data-science-questions/can-multiple-subqueries-be-tied-together/m-p/629503#M1424</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-10-31T13:11:03Z</dc:date>
    </item>
  </channel>
</rss>

