<?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 Database View in ArcGIS 10.1 in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/database-view-in-arcgis-10-1/m-p/741662#M41807</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 have 10.1 enterprise geodatabase on SQL Server 2008 with a polygon layer (Parcel) in a feature dataset and a table (Zoning_tb). I have made a view and brought it into ArcGIS Desktop 10.1. I'm getting some strange behaviors...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- When I identify a single polygon it returns about 100 records&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- I'm trying to input the layer into the dissolve tool, and dissolve based on 3 attributes. It does not return a completely dissolved layer. I have to then run the tool again on the output to get something closer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- I did a unique value symbol by the attribute Zone and it gives the same value a different color, but does not show that value twice in the table of contents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It asks about a unique field when I load it so I'm wondering if my query does not&amp;nbsp; have the correct fields. Here is my query to make the view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CREATE VIEW Zoning_view AS SELECT Parcel.OBJECTID, Parcel.Shape, Zoning_tb.IDPARCEL, Zoning_tb.IDOTHER, Zoning_tb.ROLL, Zoning_tb.ZONE, Zoning_tb.ELECT, Zoning_tb.BYLAW&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM Parcel RIGHT JOIN Zoning_tb ON Parcel.IDPARCEL = Zoning_tb.IDPARCEL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WHERE (((Zoning_tb.IDPARCEL) Is Not Null) AND ((Zoning_tb.ZONE) Is Not Null))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2012 15:00:21 GMT</pubDate>
    <dc:creator>DavidMajor</dc:creator>
    <dc:date>2012-08-28T15:00:21Z</dc:date>
    <item>
      <title>Database View in ArcGIS 10.1</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-in-arcgis-10-1/m-p/741662#M41807</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 have 10.1 enterprise geodatabase on SQL Server 2008 with a polygon layer (Parcel) in a feature dataset and a table (Zoning_tb). I have made a view and brought it into ArcGIS Desktop 10.1. I'm getting some strange behaviors...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- When I identify a single polygon it returns about 100 records&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- I'm trying to input the layer into the dissolve tool, and dissolve based on 3 attributes. It does not return a completely dissolved layer. I have to then run the tool again on the output to get something closer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- I did a unique value symbol by the attribute Zone and it gives the same value a different color, but does not show that value twice in the table of contents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It asks about a unique field when I load it so I'm wondering if my query does not&amp;nbsp; have the correct fields. Here is my query to make the view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CREATE VIEW Zoning_view AS SELECT Parcel.OBJECTID, Parcel.Shape, Zoning_tb.IDPARCEL, Zoning_tb.IDOTHER, Zoning_tb.ROLL, Zoning_tb.ZONE, Zoning_tb.ELECT, Zoning_tb.BYLAW&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM Parcel RIGHT JOIN Zoning_tb ON Parcel.IDPARCEL = Zoning_tb.IDPARCEL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WHERE (((Zoning_tb.IDPARCEL) Is Not Null) AND ((Zoning_tb.ZONE) Is Not Null))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thx,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;David&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 15:00:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-in-arcgis-10-1/m-p/741662#M41807</guid>
      <dc:creator>DavidMajor</dc:creator>
      <dc:date>2012-08-28T15:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Database View in ArcGIS 10.1</title>
      <link>https://community.esri.com/t5/data-management-questions/database-view-in-arcgis-10-1/m-p/741663#M41808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;David,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that this has something to do with the cardinality of your join, and that Desktop is probably taking the Parcel ObjectID field as the layer's unique identifier, when it might not actually be unique. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If there are many zoning records to one parcel, then the Parcel ObjectID field in the view will not be unique. If this is the field that ArcMap is assuming is a unique id field, then you'll end up with some unexpected behavior. Desktop requires a unique identifier field for many operations, such as labelling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you go to the layer properties, Source tab and click Change Query you'll get to the Edit Query Layer dialog. Check the 'Show Advanced Options' checkbox and click Next. On the advanced part of the dialog you'll see a list of all the Unique Identifier candidates - try choosing a candidate from the Zoning_tb table. Making sure that the field chosen for the unique identifier truly is unique will solve some of the issues you are seeing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for identifying returning 100 records, it could be the same issue - if there are 100 zoning records that relate to a single polygon, the view will actually return that polygon 100 times - one for each of the zoning records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Shannon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 18:16:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/database-view-in-arcgis-10-1/m-p/741663#M41808</guid>
      <dc:creator>ShannonShields</dc:creator>
      <dc:date>2012-08-29T18:16:54Z</dc:date>
    </item>
  </channel>
</rss>

