<?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: sdetable -o create_view vs. query tables for 1:M relationships in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/sdetable-o-create-view-vs-query-tables-for-1-m/m-p/310218#M17701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I realize this is probably not the answer you want to hear, but your scenario (non-GIS users needing to access combined GIS/non spatial data, multiple interrelated tables and complex query demands), all sound like the archetypical ArcGIS Server custom build application as the way to go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This would allow you to hide all the complexities for the non-GIS user, allow them to work with a dedicated simple web interface, instead of overloaded and overly complex ArcGIS Desktop interface etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition, the web application development environment will probably give you greater flexibility in defining the necessary queries and relationships, and allow for the editing requirements and special constraints.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Dec 2012 10:55:55 GMT</pubDate>
    <dc:creator>MarcoBoeringa</dc:creator>
    <dc:date>2012-12-15T10:55:55Z</dc:date>
    <item>
      <title>sdetable -o create_view vs. query tables for 1:M relationships</title>
      <link>https://community.esri.com/t5/data-management-questions/sdetable-o-create-view-vs-query-tables-for-1-m/m-p/310217#M17700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcSDE 10.0/Oracle Spatial 11g/SDO_GEOMETRY/Arc Desktop 10.1/Windows 7, 64 bit&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to find the most simple and still functional way to use a number of related tables.&amp;nbsp; The spatial table has 1:M relationships with many standalone tables (relationship classes have been created).&amp;nbsp; In addition, the standalone tables also are related (relationship classes have not been created, but can be if needed).&amp;nbsp; IMPORTANT - These tables will be used by non-GIS users, so &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the reason it must be fairly simple to use.&amp;nbsp; Problems: 1:M relationships "not supported" in joins, but using a relationship class or creating a relate in the .mxd does not give a straight forward way of querying from both tables (can't access related table attributes in 'definition query').&amp;nbsp; Yes you can select by attributes from 1 table, open related table and "select from current selection".&amp;nbsp; But when you have to do this to 3 or 4 tables in a row to get 1 query these non-GIS users will get confused.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the best way to handle this?&amp;nbsp; Am I missing something about relates/relationship classes about querying from the related table(s)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm exploring sdetable -o create_view command making the view as a M:1 and including the shape field so there are geometries for all records.&amp;nbsp; This works well except views are not editable...is this correct?&amp;nbsp; Is there a way around this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm exploring creating query tables but have some concerns: the query tables are temporary "layers" stored in the GDB correct?&amp;nbsp; Or are they stored in memory on the creater's local machine?&amp;nbsp; Basically I'm concerned about permissions to create these temporary query tables in the GDB, especially since it would be easy for someone to accidentally create a multi-million record query table (not setting the unique IDs to match).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas would be helpful as I've searched the forums and haven't found the answers I'm looking for to handle this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wes&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2012 14:49:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sdetable-o-create-view-vs-query-tables-for-1-m/m-p/310217#M17700</guid>
      <dc:creator>WesKing</dc:creator>
      <dc:date>2012-12-14T14:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: sdetable -o create_view vs. query tables for 1:M relationships</title>
      <link>https://community.esri.com/t5/data-management-questions/sdetable-o-create-view-vs-query-tables-for-1-m/m-p/310218#M17701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I realize this is probably not the answer you want to hear, but your scenario (non-GIS users needing to access combined GIS/non spatial data, multiple interrelated tables and complex query demands), all sound like the archetypical ArcGIS Server custom build application as the way to go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This would allow you to hide all the complexities for the non-GIS user, allow them to work with a dedicated simple web interface, instead of overloaded and overly complex ArcGIS Desktop interface etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition, the web application development environment will probably give you greater flexibility in defining the necessary queries and relationships, and allow for the editing requirements and special constraints.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Dec 2012 10:55:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sdetable-o-create-view-vs-query-tables-for-1-m/m-p/310218#M17701</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2012-12-15T10:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: sdetable -o create_view vs. query tables for 1:M relationships</title>
      <link>https://community.esri.com/t5/data-management-questions/sdetable-o-create-view-vs-query-tables-for-1-m/m-p/310219#M17702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply Marco!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I was hoping for an answer that wouldn't require an additional purchase/license/etc..&amp;nbsp; Funds are limited right now (as I'm sure they are for most) so I'm not optimistic that request would go over well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was hoping for something that could be accomplished through ArcGIS Desktop or ArcSDE (so anyone with other ideas please chime in).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I will do some research and bring it to the people with the wallets.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wes&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 20:56:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sdetable-o-create-view-vs-query-tables-for-1-m/m-p/310219#M17702</guid>
      <dc:creator>WesKing</dc:creator>
      <dc:date>2012-12-27T20:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: sdetable -o create_view vs. query tables for 1:M relationships</title>
      <link>https://community.esri.com/t5/data-management-questions/sdetable-o-create-view-vs-query-tables-for-1-m/m-p/310220#M17703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm exploring sdetable -o create_view command making the view as a M:1 and including the shape field so there are geometries for all records.&amp;nbsp; &lt;STRONG&gt;This works well except views are not editable...is this correct?&lt;/STRONG&gt;&amp;nbsp; Is there a way around this?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One additional remark concerning the above statement in your first post: Creating a view should allow you to view the fields of both the base table and the related table in one "view/query" in a 1:M relationship. However, in a sense it is logical you can't "edit" such a view directly, as the view is de-normalized, and the records of the base table have been "virtually" duplicated for each related record in the base table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://webhelp.esri.com/arcgisserver/9.3/java/index.htm#geodatabases/using_database_views.htm"&gt;This older ArcGIS 9.3 Help page&lt;/A&gt;&lt;SPAN&gt; also states:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;"Spatial views contain a single spatial column. You can create spatial views in the same way you create other views; just be sure to include the geometry column in the view definition. The table containing the spatial column must be the same table that provides the row ID (also called the ObjectID) column for the view. &lt;STRONG&gt;Spatial views cannot be edited through an ArcSDE client.&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/A_quick_tour_of_views_in_the_geodatabase/002q000000r2000000/"&gt;this 10.0 Help page&lt;/A&gt;&lt;SPAN&gt; talks about multi-versioned views that can be edited, but only in certain specific situations, and &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;not &lt;/SPAN&gt;&lt;SPAN&gt;from within ArcGIS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;"Multiversioned views incorporate database views, stored procedures, triggers, and functions to access &lt;STRONG&gt;or edit a specified version of a table or feature class in a geodatabase &lt;SPAN style="text-decoration:underline;"&gt;using SQL&lt;/SPAN&gt;.&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This requires the Table or Feature Class to be versioned, just like the versioned editing of any enterprise geodatabase. And editing from within some custom webapplication or non-ArcGIS (e.g. AutoCAD) application. As that last Help page also states:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;"The primary use of multiversioned views is &lt;STRONG&gt;to edit versioned data &lt;SPAN style="text-decoration:underline;"&gt;using SQL&lt;/SPAN&gt;. You &lt;SPAN style="text-decoration:underline;"&gt;cannot&lt;/SPAN&gt; modify the underlying table or feature class through a multiversioned view using an &lt;SPAN style="text-decoration:underline;"&gt;ArcGIS client application&lt;/SPAN&gt;."&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, multi-versioned views do not support relationships or joins, they can only be defined for a single Table or Feature Class, see below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;"Multiversioned views only work with an individual versioned table or feature class. &lt;STRONG&gt;You cannot use a where clause to join multiple tables together&lt;/STRONG&gt; or restrict which rows or columns are included in a multiversioned view."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2012 11:33:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sdetable-o-create-view-vs-query-tables-for-1-m/m-p/310220#M17703</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2012-12-28T11:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: sdetable -o create_view vs. query tables for 1:M relationships</title>
      <link>https://community.esri.com/t5/data-management-questions/sdetable-o-create-view-vs-query-tables-for-1-m/m-p/310221#M17704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Marco...that's all great information!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Although I am interested in editing capabilities, the majority of users will not be editing.&amp;nbsp; The editors will be GIS analysts so if there's not an easy way to query multiple tables in the scenario I described, the editors (including myself) will have to use old fashion ingenuity and just tough it out for now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again Marco,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wes&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 13:10:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sdetable-o-create-view-vs-query-tables-for-1-m/m-p/310221#M17704</guid>
      <dc:creator>WesKing</dc:creator>
      <dc:date>2012-12-31T13:10:44Z</dc:date>
    </item>
  </channel>
</rss>

