<?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: Add Query Layer - Pivot Table from Oracle Database in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/add-query-layer-pivot-table-from-oracle-database/m-p/21146#M1091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Did you ever figure out? I am trying to create a query layer from our Oracle database and getting the same error.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2019 19:36:50 GMT</pubDate>
    <dc:creator>AlexandraDubovis2</dc:creator>
    <dc:date>2019-01-11T19:36:50Z</dc:date>
    <item>
      <title>Add Query Layer - Pivot Table from Oracle Database</title>
      <link>https://community.esri.com/t5/data-management-questions/add-query-layer-pivot-table-from-oracle-database/m-p/21145#M1090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on importing a bunch of data from our Oracle Database into a File Geodatabase. The way it is set-up in the Oracle database is not how I need it in GIS. I understand I can take the data and manipulate it like you can in Microsoft Excel - by creating a Pivot table and that is exactly what I am trying to do with building a SQL query in ArcMap.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now, I have this SQL Query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *&lt;BR /&gt;from&lt;BR /&gt;(&lt;BR /&gt; select ACCOUNTNO, VALUE, PHONE_TYPE&lt;BR /&gt; from ATSCBS.PHONE_NUMBERS&lt;BR /&gt;) src&lt;BR /&gt;pivot&lt;BR /&gt;(&lt;BR /&gt; MAX(VALUE)&lt;BR /&gt; for PHONE_TYPE in ('Home' as HOME_PHONE, 'Cellular' as MOBILE_PHONE, 'Business' as BUSINESS_PHONE, 'Pager' as PAGER, 'E-Mail' as EMAIL, 'Fax' as FAX_NUMBER)&lt;BR /&gt;) piv&lt;BR /&gt;order by ACCOUNTNO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It validates just fine however, when I open the table I get this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/377489_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Any advice would be great.&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 22:11:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/add-query-layer-pivot-table-from-oracle-database/m-p/21145#M1090</guid>
      <dc:creator>ModernElectric</dc:creator>
      <dc:date>2017-10-09T22:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add Query Layer - Pivot Table from Oracle Database</title>
      <link>https://community.esri.com/t5/data-management-questions/add-query-layer-pivot-table-from-oracle-database/m-p/21146#M1091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Did you ever figure out? I am trying to create a query layer from our Oracle database and getting the same error.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2019 19:36:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/add-query-layer-pivot-table-from-oracle-database/m-p/21146#M1091</guid>
      <dc:creator>AlexandraDubovis2</dc:creator>
      <dc:date>2019-01-11T19:36:50Z</dc:date>
    </item>
  </channel>
</rss>

