<?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: Multiple Table Extract Question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059023#M908158</link>
    <description>Hi J,&lt;BR /&gt;&lt;BR /&gt;You are correct, the tables have the exact same structure,just different names. Any idea how the syntax of the inner/outer/cartesian join should be?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
    <pubDate>Thu, 28 Aug 2003 15:49:25 GMT</pubDate>
    <dc:creator>Edgar_10</dc:creator>
    <dc:date>2003-08-28T15:49:25Z</dc:date>
    <item>
      <title>Multiple Table Extract Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059021#M908156</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I have a DB which has daily monthly tables(ie.20030101_data,20030102_data,20030103_data ..,20030131_data).These tables are not partitioned by the way. My question is, how can i query all daily tables of a specific month for a certain pattern (ie.select * from 20030101where NAME='JOHN') without having to write 31 sql statements. And if I wanted to export the returned rows, how can I export in a CSV format.&lt;BR /&gt;&lt;BR /&gt;Your assistance is most appreciated!&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 28 Aug 2003 15:16:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059021#M908156</guid>
      <dc:creator>Edgar_10</dc:creator>
      <dc:date>2003-08-28T15:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Table Extract Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059022#M908157</link>
      <description>If I understand all tables have same structure. Therefore you can create a view on all these tables (Union).&lt;BR /&gt;&lt;BR /&gt;But if you have lots of tables this will be very costly !&lt;BR /&gt;&lt;BR /&gt;JL</description>
      <pubDate>Thu, 28 Aug 2003 15:34:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059022#M908157</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2003-08-28T15:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Table Extract Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059023#M908158</link>
      <description>Hi J,&lt;BR /&gt;&lt;BR /&gt;You are correct, the tables have the exact same structure,just different names. Any idea how the syntax of the inner/outer/cartesian join should be?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 28 Aug 2003 15:49:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059023#M908158</guid>
      <dc:creator>Edgar_10</dc:creator>
      <dc:date>2003-08-28T15:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Table Extract Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059024#M908159</link>
      <description>Would be something like  :&lt;BR /&gt;create view my_view as &lt;BR /&gt;( select A,B,C from tab1&lt;BR /&gt;  union all&lt;BR /&gt;  select A,B,C from tab2&lt;BR /&gt;  union all&lt;BR /&gt;  select A,B,C from tab3&lt;BR /&gt;)&lt;BR /&gt;But as I said performance will degrade seriously with the number (and size) of tables you include in your view definition&lt;BR /&gt;&lt;BR /&gt;Hopefully NAME is an index in all these tables.&lt;BR /&gt;&lt;BR /&gt;I suppose this was the "old" way to simulate partioning.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Thu, 28 Aug 2003 16:00:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059024#M908159</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2003-08-28T16:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Table Extract Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059025#M908160</link>
      <description>Hi JL,&lt;BR /&gt;&lt;BR /&gt;Yeah, performance wise there will be degradation,but hopefully not too serious.Thanks for the input, appreciate it!&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 28 Aug 2003 16:16:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059025#M908160</guid>
      <dc:creator>Edgar_10</dc:creator>
      <dc:date>2003-08-28T16:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Table Extract Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059026#M908161</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;concerning export ...&lt;BR /&gt;&lt;BR /&gt;Folowing query return data in CSV format:&lt;BR /&gt;&lt;BR /&gt;select col1 ||','|| col2 ||','|| col3 from &lt;BR /&gt;table&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you have oracle, use UTL_FILE package to save output to txt-file.&lt;BR /&gt;&lt;BR /&gt;Example : &lt;A href="http://oracle.ittoolbox.com/code/d.asp?d=2012&amp;amp;a=s" target="_blank"&gt;http://oracle.ittoolbox.com/code/d.asp?d=2012&amp;amp;a=s&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Radim</description>
      <pubDate>Thu, 28 Aug 2003 18:24:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059026#M908161</guid>
      <dc:creator>Radim Jarosek</dc:creator>
      <dc:date>2003-08-28T18:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Table Extract Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059027#M908162</link>
      <description>What version of oracle are you using. If the &lt;BR /&gt;version is oracle 9i, then you could use the full functionality of outer join / inner join.&lt;BR /&gt;&lt;BR /&gt;If the version is other than 9i then I guess you use the UNION join. It does degrade performance, so you can write the scrpt and cron the job when there is low load on the system.&lt;BR /&gt;&lt;BR /&gt;When you extract you can spool the output as delimited by comma or space into a text file. thne you can save the file as exel or any other type.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Aug 2003 07:00:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059027#M908162</guid>
      <dc:creator>Indira Aramandla</dc:creator>
      <dc:date>2003-08-29T07:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Table Extract Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059028#M908163</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can even go for a PL/SQL procedure or shell script. U just need to pass the date as argument for the query.&lt;BR /&gt;&lt;BR /&gt;I am giving u a small shell script. I think you have to modify this if your single digit day is represneted as 01, 02, 03 etc... If it is represented as 0,1,2... it will work fine.&lt;BR /&gt;&lt;BR /&gt;$i=0&lt;BR /&gt;while [[ $i -lt 30 ]]&lt;BR /&gt;do&lt;BR /&gt;sqlplus -s $1 &amp;lt;&lt;ABC&gt;&lt;/ABC&gt;select * from 200301$i_data;&lt;BR /&gt;quit&lt;BR /&gt;ABC&lt;BR /&gt;i=`expr $i+1`&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;VJ.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 29 Aug 2003 11:02:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059028#M908163</guid>
      <dc:creator>vasundhara</dc:creator>
      <dc:date>2003-08-29T11:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Table Extract Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059029#M908164</link>
      <description>Why not use a perl script with dynamic statements and DBD::CVS as backend?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;my $dbh = DBI-&amp;gt;connect (...);&lt;BR /&gt;&lt;BR /&gt;foreach my $d (20030101 .. 20030131) {&lt;BR /&gt; my $sth = $dbh-&amp;gt;prepare ("select * from ${d}_data");&lt;BR /&gt; $sth-&amp;gt;execute;&lt;BR /&gt; while (my @row = $sth-&amp;gt;fetchrow_array) {&lt;BR /&gt;  # ... do something with your data&lt;BR /&gt;  }&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;# and now use DBD::CSV (together with Text::CSV_XS for speed) to write the gathered data&lt;BR /&gt;&lt;BR /&gt;Enjoy, have FUN! H.Merijn</description>
      <pubDate>Fri, 29 Aug 2003 12:30:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/multiple-table-extract-question/m-p/3059029#M908164</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2003-08-29T12:30:36Z</dc:date>
    </item>
  </channel>
</rss>

