<?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 help in query in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-query/m-p/4158185#M726504</link>
    <description>can i get values in result set as weeknum alone from 1 to 53 using all_objects.&lt;BR /&gt;&lt;BR /&gt;i wrote a query but it is returning only one week number. i will paste it over here.&lt;BR /&gt;&lt;BR /&gt;but i want it to be done without using level and connect by....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;select to_char(trunc(sysdate,'yyyy')+(rownum-1),'ww-yyyy') weeks&lt;BR /&gt;from all_objects&lt;BR /&gt;where rownum &amp;lt;=366&lt;BR /&gt;and to_char(trunc(sysdate,'yyyy')+rownum-1 ,'dd') = 1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please rectify the mistake in the query... ASAP</description>
    <pubDate>Mon, 10 Mar 2008 04:37:37 GMT</pubDate>
    <dc:creator>sailaja alle</dc:creator>
    <dc:date>2008-03-10T04:37:37Z</dc:date>
    <item>
      <title>help in query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-query/m-p/4158185#M726504</link>
      <description>can i get values in result set as weeknum alone from 1 to 53 using all_objects.&lt;BR /&gt;&lt;BR /&gt;i wrote a query but it is returning only one week number. i will paste it over here.&lt;BR /&gt;&lt;BR /&gt;but i want it to be done without using level and connect by....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;select to_char(trunc(sysdate,'yyyy')+(rownum-1),'ww-yyyy') weeks&lt;BR /&gt;from all_objects&lt;BR /&gt;where rownum &amp;lt;=366&lt;BR /&gt;and to_char(trunc(sysdate,'yyyy')+rownum-1 ,'dd') = 1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please rectify the mistake in the query... ASAP</description>
      <pubDate>Mon, 10 Mar 2008 04:37:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-query/m-p/4158185#M726504</guid>
      <dc:creator>sailaja alle</dc:creator>
      <dc:date>2008-03-10T04:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: help in query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-query/m-p/4158186#M726505</link>
      <description>hi Sailaja,&lt;BR /&gt;&lt;BR /&gt;can you try the following:&lt;BR /&gt;&lt;BR /&gt;yogeeraj@mydb.mu&amp;gt; r&lt;BR /&gt;  1  select distinct to_char( dt+1, 'iw' )&lt;BR /&gt;  2  from ( select trunc(sysdate,'YY')+rownum dt&lt;BR /&gt;  3  from all_objects&lt;BR /&gt;  4  where rownum &amp;lt; 366 )&lt;BR /&gt;  5* order by 1&lt;BR /&gt;&lt;BR /&gt;TO&lt;BR /&gt;__&lt;BR /&gt;01&lt;BR /&gt;02&lt;BR /&gt;03&lt;BR /&gt;04&lt;BR /&gt;05&lt;BR /&gt;06&lt;BR /&gt;07&lt;BR /&gt;08&lt;BR /&gt;...&lt;BR /&gt;49&lt;BR /&gt;50&lt;BR /&gt;51&lt;BR /&gt;52&lt;BR /&gt;&lt;BR /&gt;52 rows selected.&lt;BR /&gt;&lt;BR /&gt;Elapsed: 00:00:00.27&lt;BR /&gt;yogeeraj@mydb.mu&amp;gt;                                                           &lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Mon, 10 Mar 2008 05:38:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-query/m-p/4158186#M726505</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-03-10T05:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: help in query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-query/m-p/4158187#M726506</link>
      <description>Thank You Yoogerag,&lt;BR /&gt;&lt;BR /&gt;But can i get some thing without using "distinct".</description>
      <pubDate>Mon, 10 Mar 2008 05:53:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-query/m-p/4158187#M726506</guid>
      <dc:creator>sailaja alle</dc:creator>
      <dc:date>2008-03-10T05:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: help in query</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-query/m-p/4158188#M726507</link>
      <description>&lt;!--!*#--&gt;hi,&lt;BR /&gt;&lt;BR /&gt;Once 'dirty' way to achieve this is:&lt;BR /&gt;&lt;BR /&gt;yogeeraj@mydb.mu&amp;gt; r&lt;BR /&gt;  1  select to_char( dt+1, 'iw' )&lt;BR /&gt;  2  from ( select trunc(sysdate,'YY')+rownum*7 dt&lt;BR /&gt;  3  from all_objects&lt;BR /&gt;  4  where rownum &amp;lt; 53 )&lt;BR /&gt;  5* order by 1&lt;BR /&gt;&lt;BR /&gt;TO&lt;BR /&gt;__&lt;BR /&gt;01&lt;BR /&gt;02&lt;BR /&gt;03&lt;BR /&gt;04&lt;BR /&gt;05&lt;BR /&gt;06&lt;BR /&gt;07&lt;BR /&gt;08&lt;BR /&gt;...&lt;BR /&gt;49&lt;BR /&gt;50&lt;BR /&gt;51&lt;BR /&gt;52&lt;BR /&gt;&lt;BR /&gt;52 rows selected.&lt;BR /&gt;&lt;BR /&gt;Elapsed: 00:00:00.12&lt;BR /&gt;yogeeraj@mydb.mu&amp;gt; &lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Mon, 10 Mar 2008 06:24:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-query/m-p/4158188#M726507</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2008-03-10T06:24:49Z</dc:date>
    </item>
  </channel>
</rss>

