<?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: Query layer to show two tables as one in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113286#M3151</link>
    <description>&lt;P&gt;If you want to write a SQL statement to accomplish this without appending the tables, you can use a UNION&lt;/P&gt;&lt;P&gt;&lt;A href="https://mode.com/sql-tutorial/sql-union/" target="_blank"&gt;https://mode.com/sql-tutorial/sql-union/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Nov 2021 16:47:01 GMT</pubDate>
    <dc:creator>ABishop</dc:creator>
    <dc:date>2021-11-02T16:47:01Z</dc:date>
    <item>
      <title>Query layer to show two tables as one</title>
      <link>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113236#M3145</link>
      <description>&lt;P&gt;I am trying to make a query layer that shows two tables in one.&amp;nbsp; Both tables have the exact same schema.&amp;nbsp; It is not a join, just want to show the two tables like they are one to the user.&amp;nbsp; They are in the same SDE.&lt;/P&gt;&lt;P&gt;In SQL I can just do this&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT * FROM [ilPub].[PubDBO].[TERRA], [ilPub].[PubDBO].[LMF]&lt;/P&gt;&lt;P&gt;In ArcMap I get a ambiguous name objectid error.&amp;nbsp; I have done a ton of searching but only finding joins.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 15:21:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113236#M3145</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-11-02T15:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Query layer to show two tables as one</title>
      <link>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113241#M3146</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try a relate.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 15:27:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113241#M3146</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-11-02T15:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Query layer to show two tables as one</title>
      <link>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113248#M3147</link>
      <description>&lt;P&gt;The two are not related.&amp;nbsp; Just want to show both.&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;8&lt;/P&gt;&lt;P&gt;9&lt;/P&gt;&lt;P&gt;Final table&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;8&lt;/P&gt;&lt;P&gt;9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 15:42:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113248#M3147</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-11-02T15:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Query layer to show two tables as one</title>
      <link>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113280#M3148</link>
      <description>&lt;P&gt;In order to do this you must have a unique ID that you can either join or relate the tables.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 16:38:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113280#M3148</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-11-02T16:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Query layer to show two tables as one</title>
      <link>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113282#M3149</link>
      <description>&lt;P&gt;They are not to be joined or related.&amp;nbsp; I just want to see both at once in the same table.&amp;nbsp; So if I have 1,000 records in table 1 and 500 in table 2 then the result table has 1,500 rows.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 16:43:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113282#M3149</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-11-02T16:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Query layer to show two tables as one</title>
      <link>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113284#M3150</link>
      <description>&lt;P&gt;Do you want them to be permanently this way?&amp;nbsp; If so, you always append one table to the other.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 16:44:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113284#M3150</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-11-02T16:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Query layer to show two tables as one</title>
      <link>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113286#M3151</link>
      <description>&lt;P&gt;If you want to write a SQL statement to accomplish this without appending the tables, you can use a UNION&lt;/P&gt;&lt;P&gt;&lt;A href="https://mode.com/sql-tutorial/sql-union/" target="_blank"&gt;https://mode.com/sql-tutorial/sql-union/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 16:47:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113286#M3151</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-11-02T16:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Query layer to show two tables as one</title>
      <link>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113309#M3153</link>
      <description>&lt;P&gt;Ok it looks like that worked.&amp;nbsp; thanks a lot&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 17:30:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113309#M3153</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-11-02T17:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Query layer to show two tables as one</title>
      <link>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113326#M3154</link>
      <description>&lt;P&gt;You're welcome&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 17:46:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1113326#M3154</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-11-02T17:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Query layer to show two tables as one</title>
      <link>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1308524#M4487</link>
      <description>&lt;P&gt;Hi, just wondering if you can post an example of the union sql you used for this query layer? I have tried the options provide on&amp;nbsp;&lt;A href="https://mode.com/sql-tutorial/sql-union/" target="_blank"&gt;https://mode.com/sql-tutorial/sql-union/&lt;/A&gt;&amp;nbsp;but I am receiving a "Operation failed" message in ArcGIS Pro.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 07:36:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1308524#M4487</guid>
      <dc:creator>MapsAreFun</dc:creator>
      <dc:date>2023-07-17T07:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Query layer to show two tables as one</title>
      <link>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1308842#M4490</link>
      <description>&lt;P&gt;Just straight union if the schemas are the same, and they must be.&amp;nbsp; If not add a field list to make them the same.&amp;nbsp; Also it must have a ObjectID field.&amp;nbsp; If versioned make sure to use the views.&lt;/P&gt;&lt;P&gt;select * from Pub.PubDBO.Terr_evw UNION ALL select * from Pub.PubDBO.LMF_evw&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 22:35:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/query-layer-to-show-two-tables-as-one/m-p/1308842#M4490</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-07-17T22:35:58Z</dc:date>
    </item>
  </channel>
</rss>

