<?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: what is the condition used to solve the query in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/what-is-the-condition-used-to-solve-the-query/m-p/147535#M39069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you give data set example and the desired output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 31 Jan 2015 11:39:45 GMT</pubDate>
    <dc:creator>mohamed_zaki</dc:creator>
    <dc:date>2015-01-31T11:39:45Z</dc:date>
    <item>
      <title>what is the condition used to solve the query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-is-the-condition-used-to-solve-the-query/m-p/147534#M39068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, can you give your valid comments to solve this type of query.&lt;/P&gt;&lt;P&gt;i have two datasets &lt;/P&gt;&lt;P&gt;1. annuity &lt;/P&gt;&lt;P&gt;2. policy &lt;/P&gt;&lt;P&gt;annuity variables are account_no, account_value, policy_no.&lt;/P&gt;&lt;P&gt;policy variables are policy_no, year, p_type.&lt;/P&gt;&lt;P&gt;in policy_type we have the different types suppose A,B,C,D,E,F,G,H.&lt;/P&gt;&lt;P&gt;We consider A,B,C,D are one type let us consider it as reg_policy. The remaining all are individual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now we want the output like&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: none;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD rowspan="2" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="76"&gt;&lt;P&gt;Account&lt;/P&gt;&lt;P&gt;Number&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="5" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="226"&gt;&lt;P&gt;Sum_of_acccontvalue&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="5" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;No_of_policies&lt;/P&gt;&lt;/TD&gt;&lt;TD colspan="3" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="126"&gt;&lt;P&gt;ranks&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="41"&gt;&lt;P&gt;2010&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="50"&gt;&lt;P&gt;2011&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="51"&gt;&lt;P&gt;2012&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="40"&gt;&lt;P&gt;2013&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="44"&gt;&lt;P&gt;2014&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="40"&gt;&lt;P&gt;2010&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="38"&gt;&lt;P&gt;2011&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="38"&gt;&lt;P&gt;2012&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="45"&gt;&lt;P&gt;2013&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="44"&gt;&lt;P&gt;2014&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="40"&gt;&lt;P&gt;2010&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="44"&gt;&lt;P&gt;2011&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="41"&gt;&lt;P&gt;2012&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="76"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="41"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="50"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="51"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="40"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="44"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="40"&gt;&lt;P style="margin-left: 9.8pt;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="38"&gt;&lt;P style="margin-left: 9.8pt;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="38"&gt;&lt;P style="margin-left: 9.8pt;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="45"&gt;&lt;P style="margin-left: 9.8pt;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="44"&gt;&lt;P style="margin-left: 9.8pt;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="40"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="44"&gt;&lt;P style="margin-left: 9.8pt;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="41"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The condition is that&lt;/P&gt;&lt;P&gt;1. If the no_of_policies example like in 2010 is 100 then policy_type&amp;nbsp; in that reg_policy is the maximum value compare to&amp;nbsp; remaining all. We want only that information.&lt;/P&gt;&lt;P&gt;2. Ranks are given based on sum_of_accountvalue with year wise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 11:32:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-is-the-condition-used-to-solve-the-query/m-p/147534#M39068</guid>
      <dc:creator>Ravikumarkummari</dc:creator>
      <dc:date>2015-01-31T11:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: what is the condition used to solve the query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-is-the-condition-used-to-solve-the-query/m-p/147535#M39069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you give data set example and the desired output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 11:39:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-is-the-condition-used-to-solve-the-query/m-p/147535#M39069</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2015-01-31T11:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: what is the condition used to solve the query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-is-the-condition-used-to-solve-the-query/m-p/147536#M39070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quite a complex query from what it sounds. Why don't you give it a go and get back to us with some more specific question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 21:08:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-is-the-condition-used-to-solve-the-query/m-p/147536#M39070</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-01-31T21:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: what is the condition used to solve the query</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/what-is-the-condition-used-to-solve-the-query/m-p/147537#M39071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need definitely to provide some representative sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;EM style="font-size: 13px; background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;annuity variables are account_no, account_value, policy_no&lt;/EM&gt;"&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Shouldn't there also be a "date" variable in annuity? Else how would you be able to create account_value sums by year, and how would you join "annuity" with "policy"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Feb 2015 03:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/what-is-the-condition-used-to-solve-the-query/m-p/147537#M39071</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-02-01T03:35:48Z</dc:date>
    </item>
  </channel>
</rss>

