<?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: How to add two tables in Geodatabase view without any join between them? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-add-two-tables-in-geodatabase-view-without/m-p/705065#M54568</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;I tried in arcCatalog with New/View with the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; gkmigeodatabase.NCR.AB_WetlandsGrid_25km.OBJECTID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; gkmigeodatabase.NCR.AB_WetlandsGrid_25km.PageName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; gkmigeodatabase.NCR.AB_WetlandsGrid_25km.percentage&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; gkmigeodatabase.NCR.AB_WetlandsGrid_25km&lt;/P&gt;&lt;P&gt;UNION&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; gkmigeodatabase.NCR.BC_WetlandsGrid_25km.OBJECTID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; gkmigeodatabase.NCR.BC_WetlandsGrid_25km.PageName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; gkmigeodatabase.NCR.BC_WetlandsGrid_25km.percentage&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; gkmigeodatabase.NCR.BC_WetlandsGrid_25km&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that no geometry is loaded&lt;/P&gt;&lt;P&gt;After, I right click on my view to load data:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/132329_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;unfortunately, I got this error&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/132330_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;I want notace that my feature classes have exactly the same schema&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Oct 2015 18:11:17 GMT</pubDate>
    <dc:creator>SaidAkif</dc:creator>
    <dc:date>2015-10-19T18:11:17Z</dc:date>
    <item>
      <title>How to add two tables in Geodatabase view without any join between them?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-add-two-tables-in-geodatabase-view-without/m-p/705063#M54566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add two tables in geodatabase view (see attached). Those two table can not be related (attributes tables)&lt;/P&gt;&lt;P&gt;I am struggling with the SQL statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled2.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/132246_Untitled2.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 14:08:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-add-two-tables-in-geodatabase-view-without/m-p/705063#M54566</guid>
      <dc:creator>SaidAkif</dc:creator>
      <dc:date>2015-10-19T14:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two tables in Geodatabase view without any join between them?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-add-two-tables-in-geodatabase-view-without/m-p/705064#M54567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without a join? Something like this in SQL maybe?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[v_gis_view_test]') and OBJECTPROPERTY(id, N'IsView') = 1)
drop view [dbo].[v_gis_view_test]
GO
----------------------------------------------------------------------------------------------------------------&amp;nbsp;&amp;nbsp; 
/*&amp;nbsp;&amp;nbsp; 
COMMENTS... 
*/&amp;nbsp;&amp;nbsp; 
---------------------------------------------------------------------------------------------------------------- 
CREATE VIEW dbo.v_gis_view_test
AS
SELECT
&amp;nbsp; table1.f1,
&amp;nbsp; table1.f2,
&amp;nbsp; table1.f3
FROM
&amp;nbsp; dbo.theTableOne table1
UNION
SELECT
&amp;nbsp; table2.f1,
&amp;nbsp; table2.f2,
&amp;nbsp; table2.f3
FROM
&amp;nbsp; dbo.theTableTwo table2


GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcGIS, I believe you would just add the view name, "v_gis_view_test" in this case, in the name box, and the select clauses in the expression box. Is this what you're looking to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:38:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-add-two-tables-in-geodatabase-view-without/m-p/705064#M54567</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2021-12-12T05:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to add two tables in Geodatabase view without any join between them?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-add-two-tables-in-geodatabase-view-without/m-p/705065#M54568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;I tried in arcCatalog with New/View with the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; gkmigeodatabase.NCR.AB_WetlandsGrid_25km.OBJECTID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; gkmigeodatabase.NCR.AB_WetlandsGrid_25km.PageName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; gkmigeodatabase.NCR.AB_WetlandsGrid_25km.percentage&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; gkmigeodatabase.NCR.AB_WetlandsGrid_25km&lt;/P&gt;&lt;P&gt;UNION&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; gkmigeodatabase.NCR.BC_WetlandsGrid_25km.OBJECTID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; gkmigeodatabase.NCR.BC_WetlandsGrid_25km.PageName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; gkmigeodatabase.NCR.BC_WetlandsGrid_25km.percentage&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; gkmigeodatabase.NCR.BC_WetlandsGrid_25km&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that no geometry is loaded&lt;/P&gt;&lt;P&gt;After, I right click on my view to load data:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/132329_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;unfortunately, I got this error&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/132330_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;I want notace that my feature classes have exactly the same schema&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 18:11:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-add-two-tables-in-geodatabase-view-without/m-p/705065#M54568</guid>
      <dc:creator>SaidAkif</dc:creator>
      <dc:date>2015-10-19T18:11:17Z</dc:date>
    </item>
  </channel>
</rss>

