<?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 Make Query Table - help please with SQL! in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/make-query-table-help-please-with-sql/m-p/196367#M6722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having a bit of a play with the new temporal data support, and am trying to do a one-to-many join using Make Query Table so that I can visualise rainfall readings against weather station locations. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a File Geodatabase with a feature class "Rain_Gauges" and a table "Rainfall". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Rain_Gauges" is a point feature class with fields "Object_ID", "Shape" and "Station_ID", contains 30 points numbered 1-30.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Rainfall" is a table in the GDB with fields "Object_ID", "Station_ID", "Date_" and "Rainfall", contains numerous rainfall readings from each station over the period of 12 months.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Station_ID" in both tables provides the common value to make the join.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using Make Query Table from ArcToolbox, it all looks fairly straightforward and have been following the help instructions. The problem seems to be with the SQL expression to define the join.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Clicking the SQL button to get to Query Builder, am selecting the two fields to create the expression:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rain_Gauges.Station_ID = Rainfall.Station_ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then defining Key_field as Rainfall.ObjectID and running the tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Getting the error message:-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error 999999: Error Executing Function&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An invalid SQL statement was used [QueryTable]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could someone please offer some guidance as to the correct SQL syntax to make this work? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry if this seems a simple question, have not used Make Query Table before. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jan 2011 10:23:34 GMT</pubDate>
    <dc:creator>RobertKnight</dc:creator>
    <dc:date>2011-01-21T10:23:34Z</dc:date>
    <item>
      <title>Make Query Table - help please with SQL!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/make-query-table-help-please-with-sql/m-p/196367#M6722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having a bit of a play with the new temporal data support, and am trying to do a one-to-many join using Make Query Table so that I can visualise rainfall readings against weather station locations. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a File Geodatabase with a feature class "Rain_Gauges" and a table "Rainfall". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Rain_Gauges" is a point feature class with fields "Object_ID", "Shape" and "Station_ID", contains 30 points numbered 1-30.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Rainfall" is a table in the GDB with fields "Object_ID", "Station_ID", "Date_" and "Rainfall", contains numerous rainfall readings from each station over the period of 12 months.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Station_ID" in both tables provides the common value to make the join.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using Make Query Table from ArcToolbox, it all looks fairly straightforward and have been following the help instructions. The problem seems to be with the SQL expression to define the join.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Clicking the SQL button to get to Query Builder, am selecting the two fields to create the expression:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rain_Gauges.Station_ID = Rainfall.Station_ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then defining Key_field as Rainfall.ObjectID and running the tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Getting the error message:-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error 999999: Error Executing Function&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An invalid SQL statement was used [QueryTable]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could someone please offer some guidance as to the correct SQL syntax to make this work? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry if this seems a simple question, have not used Make Query Table before. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2011 10:23:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/make-query-table-help-please-with-sql/m-p/196367#M6722</guid>
      <dc:creator>RobertKnight</dc:creator>
      <dc:date>2011-01-21T10:23:34Z</dc:date>
    </item>
    <item>
      <title>Answered my own question!</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/make-query-table-help-please-with-sql/m-p/196368#M6723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I'm having a bit of a play with the new temporal data support, and am trying to do a one-to-many join using Make Query Table so that I can visualise rainfall readings against weather station locations. &lt;BR /&gt;&lt;BR /&gt;I have a File Geodatabase with a feature class "Rain_Gauges" and a table "Rainfall". &lt;BR /&gt;&lt;BR /&gt;"Rain_Gauges" is a point feature class with fields "Object_ID", "Shape" and "Station_ID", contains 30 points numbered 1-30.&lt;BR /&gt;&lt;BR /&gt;"Rainfall" is a table in the GDB with fields "Object_ID", "Station_ID", "Date_" and "Rainfall", contains numerous rainfall readings from each station over the period of 12 months.&lt;BR /&gt;&lt;BR /&gt;"Station_ID" in both tables provides the common value to make the join.&lt;BR /&gt;&lt;BR /&gt;Using Make Query Table from ArcToolbox, it all looks fairly straightforward and have been following the help instructions. The problem seems to be with the SQL expression to define the join.&lt;BR /&gt;&lt;BR /&gt;Clicking the SQL button to get to Query Builder, am selecting the two fields to create the expression:&lt;BR /&gt;&lt;BR /&gt;Rain_Gauges.Station_ID = Rainfall.Station_ID&lt;BR /&gt;&lt;BR /&gt;Then defining Key_field as Rainfall.ObjectID and running the tool&lt;BR /&gt;&lt;BR /&gt;Getting the error message:-&lt;BR /&gt;&lt;BR /&gt;Error 999999: Error Executing Function&lt;BR /&gt;An invalid SQL statement was used [QueryTable]&lt;BR /&gt;&lt;BR /&gt;Could someone please offer some guidance as to the correct SQL syntax to make this work? &lt;BR /&gt;&lt;BR /&gt;Sorry if this seems a simple question, have not used Make Query Table before. &lt;BR /&gt;&lt;BR /&gt;Rob&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it's any help to anyone else, I noticed that the Station_ID fields were of a different type in the feature class compared with the table. Making them both Integer field did the trick.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2011 11:59:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/make-query-table-help-please-with-sql/m-p/196368#M6723</guid>
      <dc:creator>RobertKnight</dc:creator>
      <dc:date>2011-01-21T11:59:46Z</dc:date>
    </item>
  </channel>
</rss>

