<?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: Using DERIVED TABLES with SELECT in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-derived-tables-with-select/m-p/2974678#M928076</link>
    <description>Hi Yogeeraj,&lt;BR /&gt;  Thanks but you didn't get my problem properly. The second SQL was just a simplified form of the use of derived tables for my cause. That doesn't exist for me in the real sense.&lt;BR /&gt;  Anyway, that query is fine as per SQL Server syntax. I am facing problems using derived tables instead of actual tables after the 'FROM' clause. SQL Server allows that. Sybase is giving me a no-no. &lt;BR /&gt; Kindly advice.&lt;BR /&gt;&lt;BR /&gt; Revert.&lt;BR /&gt;&lt;BR /&gt;Prandip</description>
    <pubDate>Thu, 15 May 2003 19:35:04 GMT</pubDate>
    <dc:creator>prandip</dc:creator>
    <dc:date>2003-05-15T19:35:04Z</dc:date>
    <item>
      <title>Using DERIVED TABLES with SELECT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-derived-tables-with-select/m-p/2974676#M928074</link>
      <description>I am having problems retrieving information using SELECT from derived tables. Here's an example of the code: &lt;BR /&gt;&lt;BR /&gt;SELECT &lt;TABLE_NAME&gt;.&lt;COLUMN_NAME&gt; FROM (select &lt;COLUMN_NAME&gt; FROM &lt;SOME_TABLE_NAME&gt;) &lt;TABLE_NAME&gt; &lt;BR /&gt;&lt;BR /&gt;e.g. &lt;BR /&gt;1) SELECT DISTINCT n.pk_node, RTRIM(n.corp_name) + '/' + RTRIM(n.name) AS 'name' &lt;BR /&gt;FROM &lt;BR /&gt;( &lt;BR /&gt;SELECT s.pk_node &lt;BR /&gt;FROM service s &lt;BR /&gt;JOIN requestor_to_service rs ON s.dts_resp_id = rs.dts_resp_id &lt;BR /&gt;JOIN node n ON n.pk_node = rs.pk_node &lt;BR /&gt;AND n.ext_node_info LIKE @ext_node_info + '%' &lt;BR /&gt;) t &lt;BR /&gt;JOIN node n ON t.pk_node = n.pk_node &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2) select t.num from (select num=1) t &lt;BR /&gt;&lt;BR /&gt;I get the error: Incorrect syntax near the keyword SELECT &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kindly advice. I am converting from SQL Server to Sybase. This wasn't an issue in SQL Server.&lt;/TABLE_NAME&gt;&lt;/SOME_TABLE_NAME&gt;&lt;/COLUMN_NAME&gt;&lt;/COLUMN_NAME&gt;&lt;/TABLE_NAME&gt;</description>
      <pubDate>Thu, 15 May 2003 19:12:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-derived-tables-with-select/m-p/2974676#M928074</guid>
      <dc:creator>prandip</dc:creator>
      <dc:date>2003-05-15T19:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using DERIVED TABLES with SELECT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-derived-tables-with-select/m-p/2974677#M928075</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;2. &lt;BR /&gt;"select num=1" does not seem to be correct hence the syntax error.&lt;BR /&gt;&lt;BR /&gt;i guess it should be "select &lt;COLUMN name=""&gt; from &lt;TABLENAME&gt;"&lt;BR /&gt;&lt;BR /&gt;what is the error for case 1?&lt;BR /&gt;&lt;BR /&gt;revert&lt;BR /&gt;&lt;BR /&gt;Yogeeraj&lt;/TABLENAME&gt;&lt;/COLUMN&gt;</description>
      <pubDate>Thu, 15 May 2003 19:24:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-derived-tables-with-select/m-p/2974677#M928075</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-05-15T19:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using DERIVED TABLES with SELECT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-derived-tables-with-select/m-p/2974678#M928076</link>
      <description>Hi Yogeeraj,&lt;BR /&gt;  Thanks but you didn't get my problem properly. The second SQL was just a simplified form of the use of derived tables for my cause. That doesn't exist for me in the real sense.&lt;BR /&gt;  Anyway, that query is fine as per SQL Server syntax. I am facing problems using derived tables instead of actual tables after the 'FROM' clause. SQL Server allows that. Sybase is giving me a no-no. &lt;BR /&gt; Kindly advice.&lt;BR /&gt;&lt;BR /&gt; Revert.&lt;BR /&gt;&lt;BR /&gt;Prandip</description>
      <pubDate>Thu, 15 May 2003 19:35:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-derived-tables-with-select/m-p/2974678#M928076</guid>
      <dc:creator>prandip</dc:creator>
      <dc:date>2003-05-15T19:35:04Z</dc:date>
    </item>
  </channel>
</rss>

