<?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: create spatial view from one layer and two tables in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282573#M16228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Vince, I got it working by creating an oracle view using pl/sql create view myview as select a.*, b.* from mytab1 a , mytab2 b where a.col1=b.col1 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An then i did a &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdetable -o create_view -T MySDEView -t mylayer,myview ............ -w mylayer.col1=myview.col1 //Without Quotes &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And it worked... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for your advice&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2011 16:22:19 GMT</pubDate>
    <dc:creator>AshakaThakore</dc:creator>
    <dc:date>2011-12-12T16:22:19Z</dc:date>
    <item>
      <title>create spatial view from one layer and two tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282565#M16220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a featurelayer(feature class -myfeatclass)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have two tables mytab1 and mytab2 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to create a view using myfeatclass that has some columns of mytab1 and some of mytab2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so i wroet this -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdetable -o create_view -T MySpatView -t myfeatclass,mytab1,mytab2 -c myfeatclass.shape,mytab1.col1,mytab2.col2 -a shape,col1,col2 -u myuserid -p mypwd -w "myfeatclass.col1=mytab1.col1 and myfeatclass.col2=mytab2.col2" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This was giving syntax error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So ii created oracle view using sql create myview as select a.* ,b.* from mytab1 a ,mytab2 b &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then i registered that view using sdetable create_view &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I tried to create view using myfeatclass and myview &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but its giving identifier is too long error !!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;does anybody has successfully created spatial view from one feature class and more than 1 table &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 04:04:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282565#M16220</guid>
      <dc:creator>AshakaThakore</dc:creator>
      <dc:date>2011-12-12T04:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: create spatial view from one layer and two tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282566#M16221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do this all the time, but you have to keep a few key facts in mind:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) If you have native geometry (GEOMETRY/SDO_GEOMETRY/ST_GEOGRAPHY), you should&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use SQL to construct your view, and register the resulting layer with 'sdelayer' (create_view&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is only for SDEBINARY/SDELOB layers).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) If you intend to use the resulting layer in ArcGIS, you *MUST* include an OBJECTID column&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in your column list (it must map to SE_INT32_TYPE, be NOT NULL, and contain DISTINCT,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;positive, non-zero, and repeatable values).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) 'sdetable -o create_view' will use table aliases (-t "mytab1 a, mytab2 b"), but you cannot&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;alias the geometry column (it won't know what type to use)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Beware of polynomial expansion with one-to-many joins and multiple tables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You didn't say what version and service pack of ArcSDE you're using, or even which Oracle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;release is under it, so it's hard to reproduce your issue. An "identifier too long" message&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is generated if a column name exceeds 30 characters -- this has nothing to do with Esri&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;software (it's an Oracle limitation).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 10:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282566#M16221</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-12-12T10:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: create spatial view from one layer and two tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282567#M16222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not using oracle spatial layers. I am using SDE Feature-layers which has shape column &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have Arcsde 9.3.1 I will check the service packs... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot create a view-layer with more than one tables. It does not allow me to put more than ONE CONDITION in the -w(WHERE Clause) of sdetable command!!! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gives me syntax error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e. if i do this it gives error &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-w "myfeatclass.col1=mytab1.col1 and myfeatclass.col2=mytab2.col2" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if I do this - (Without and clause ) it does not give error and it successfully creates a view... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-w "myfeatclass.col1=mytab1.col1" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I Tried putting in where clause as &amp;amp;&amp;amp; but still it does not work.... that WHERE clause is failing&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 11:32:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282567#M16222</guid>
      <dc:creator>AshakaThakore</dc:creator>
      <dc:date>2011-12-12T11:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: create spatial view from one layer and two tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282568#M16223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There isn't anything I can do to help.&amp;nbsp; This syntax has always worked for me, so it likely has&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;something to do with your configuration.&amp;nbsp; Make sure you have SP6 with the 3-4 post-SP6&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;patches and that your Oracle release is patched in conformance with the minimum supported&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;configuration, and if it still doesn't work, contact Tech Support for assistance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 13:14:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282568#M16223</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-12-12T13:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: create spatial view from one layer and two tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282569#M16224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did "putting in two or more where clauses in -w" ever work for you? Thanks a lot&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 13:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282569#M16224</guid>
      <dc:creator>AshakaThakore</dc:creator>
      <dc:date>2011-12-12T13:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: create spatial view from one layer and two tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282570#M16225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It has always worked. At 9.1, 9.2, 9.3.1, and 10.0. It's rare that I *don't* have more than&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;two constraints, and it has never not worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 15:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282570#M16225</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-12-12T15:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: create spatial view from one layer and two tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282571#M16226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you please give me example of how did you put more than one where clause&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;did you separate the where clause by comma or "And " or "&amp;amp;&amp;amp;" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks again&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 15:21:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282571#M16226</guid>
      <dc:creator>AshakaThakore</dc:creator>
      <dc:date>2011-12-12T15:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: create spatial view from one layer and two tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282572#M16227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I only use "and" in my SQL code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sdetable -o create_view -T MySpatView ^&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-t "myfeatclass,mytab1 a,mytab2 b" ^&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-c myfeatclass.objectid,a.col1,b.col2,myfeatclass.shape ^&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-w "myfeatclass.col1 = a.col1 and myfeatclass.col2 = b.col2" ^&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-u myuserid -p ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Caret ("^") is the Windows line continuation character; it's backslash ("\") in Unix]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you start using ST_GEOMETRY you can use standard "JOIN" clauses via SQL, then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;register the result once the view is stable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 16:18:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282572#M16227</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-12-12T16:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: create spatial view from one layer and two tables</title>
      <link>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282573#M16228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Vince, I got it working by creating an oracle view using pl/sql create view myview as select a.*, b.* from mytab1 a , mytab2 b where a.col1=b.col1 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An then i did a &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sdetable -o create_view -T MySDEView -t mylayer,myview ............ -w mylayer.col1=myview.col1 //Without Quotes &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And it worked... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for your advice&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 16:22:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-spatial-view-from-one-layer-and-two-tables/m-p/282573#M16228</guid>
      <dc:creator>AshakaThakore</dc:creator>
      <dc:date>2011-12-12T16:22:19Z</dc:date>
    </item>
  </channel>
</rss>

