<?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 Proc Tabulate for more that one table in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Proc-Tabulate-for-more-that-one-table/m-p/6865#M2630</link>
    <description>a good answer needs more information :&lt;BR /&gt;
   data order of each table&lt;BR /&gt;
   any indexes available&lt;BR /&gt;
   size of each table (number of rows) &lt;BR /&gt;
   relative sizes of tables to memory available&lt;BR /&gt;
   relative sizes of acctnum subsets to whole table&lt;BR /&gt;
 why use right(outer) join instead of inner join? &lt;BR /&gt;
 also worth considering is whether there is more use for this join, in addition to this query (sharing "pain" makes it more bear-able)  &lt;BR /&gt;
&lt;BR /&gt;
really, your best option is to hire the time of a good consultant &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
    <pubDate>Fri, 08 Feb 2008 15:12:57 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-02-08T15:12:57Z</dc:date>
    <item>
      <title>Using Proc Tabulate for more that one table</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Proc-Tabulate-for-more-that-one-table/m-p/6860#M2625</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I need to perform this query using proc tabulate&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;select t2.accnum, sum(t1.balance), count(t1.acckey)&lt;BR /&gt;
        from Table1 t1 right join Table2 t2 on t2.acckey = t1.acckey&lt;BR /&gt;
        where t2.accnum in (7,11,14,21)&lt;BR /&gt;
        group by t2.accnum;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
All the examples I have found use one table. Please help with proc tabulate with more than 1 table.</description>
      <pubDate>Fri, 08 Feb 2008 11:01:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Proc-Tabulate-for-more-that-one-table/m-p/6860#M2625</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-02-08T11:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using Proc Tabulate for more than one table</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Proc-Tabulate-for-more-that-one-table/m-p/6861#M2626</link>
      <description>The Tabulate procedure reads a single data set and displays a summary of its contents.  Where tables are to be joined and statistics derived, it is usual to use the SQL Procedure with syntax such as you have shown, or a data step using Merge.&lt;BR /&gt;
&lt;BR /&gt;
The resultant data set is then used as an input to the data reporting step, in this case, Tabulate.</description>
      <pubDate>Fri, 08 Feb 2008 11:55:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Proc-Tabulate-for-more-that-one-table/m-p/6861#M2626</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-02-08T11:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using Proc Tabulate for more that one table</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Proc-Tabulate-for-more-that-one-table/m-p/6862#M2627</link>
      <description>I am disappointed &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;
I guessed that it possible... I just try to find the fastest way to output this query.&lt;BR /&gt;
In any case, thank you, because now I can exclude this way and use my time for merging.</description>
      <pubDate>Fri, 08 Feb 2008 12:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Proc-Tabulate-for-more-that-one-table/m-p/6862#M2627</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-02-08T12:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using Proc Tabulate for more that one table</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Proc-Tabulate-for-more-that-one-table/m-p/6863#M2628</link>
      <description>Hippo&lt;BR /&gt;
&lt;BR /&gt;
if your problem is the large space your data need when joined/merged, remember that data step merges and sql joins can be views.&lt;BR /&gt;
Then as tabulate (reading the view) runs, the tables are merged into tabulate not disk.&lt;BR /&gt;
&lt;BR /&gt;
Of course you may have other reasons for wanting tabulate to read more than one table. If so we may be able to help, but it is difficult to understand why until you explain more fully.&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Fri, 08 Feb 2008 14:00:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Proc-Tabulate-for-more-that-one-table/m-p/6863#M2628</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-02-08T14:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using Proc Tabulate for more that one table</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Proc-Tabulate-for-more-that-one-table/m-p/6864#M2629</link>
      <description>Peter_C&lt;BR /&gt;
&lt;BR /&gt;
It's not strictly to use tabulate.&lt;BR /&gt;
I just want to know the fastest way to perform this query above, because I have millions of records in each table.&lt;BR /&gt;
&lt;BR /&gt;
What is the fastest way on your opinion?&lt;BR /&gt;
It could be great to see example of your solution.</description>
      <pubDate>Fri, 08 Feb 2008 14:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Proc-Tabulate-for-more-that-one-table/m-p/6864#M2629</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-02-08T14:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Proc Tabulate for more that one table</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Proc-Tabulate-for-more-that-one-table/m-p/6865#M2630</link>
      <description>a good answer needs more information :&lt;BR /&gt;
   data order of each table&lt;BR /&gt;
   any indexes available&lt;BR /&gt;
   size of each table (number of rows) &lt;BR /&gt;
   relative sizes of tables to memory available&lt;BR /&gt;
   relative sizes of acctnum subsets to whole table&lt;BR /&gt;
 why use right(outer) join instead of inner join? &lt;BR /&gt;
 also worth considering is whether there is more use for this join, in addition to this query (sharing "pain" makes it more bear-able)  &lt;BR /&gt;
&lt;BR /&gt;
really, your best option is to hire the time of a good consultant &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Fri, 08 Feb 2008 15:12:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-Proc-Tabulate-for-more-that-one-table/m-p/6865#M2630</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-02-08T15:12:57Z</dc:date>
    </item>
  </channel>
</rss>

