<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Cool SQL Analytic Function: RATIO_TO_REPORT</title>
	<atom:link href="http://awads.net/wp/2006/06/14/cool-sql-analytic-function-ratio_to_report/feed/" rel="self" type="application/rss+xml" />
	<link>http://awads.net/wp/2006/06/14/cool-sql-analytic-function-ratio_to_report/</link>
	<description>News, views, tips and tricks on Oracle and other fun stuff</description>
	<lastBuildDate>Thu, 18 Mar 2010 16:44:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2006/06/14/cool-sql-analytic-function-ratio_to_report/comment-page-1/#comment-52421</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Fri, 24 Oct 2008 16:28:04 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2006/06/14/cool-sql-analytic-function-ratio_to_report/#comment-52421</guid>
		<description>&lt;p&gt;Thanks Sergio, I have updated my post with your new URL.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks Sergio, I have updated my post with your new URL.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Sergio</title>
		<link>http://awads.net/wp/2006/06/14/cool-sql-analytic-function-ratio_to_report/comment-page-1/#comment-52420</link>
		<dc:creator>Sergio</dc:creator>
		<pubDate>Fri, 24 Oct 2008 15:02:28 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2006/06/14/cool-sql-analytic-function-ratio_to_report/#comment-52420</guid>
		<description>&lt;p&gt;Hi Eddie,&lt;/p&gt;

&lt;p&gt;I googling for ratio_to_report and came across your post.  I noticed it links to an old blog post of mine.  orablogs.com kicked the bucket a long time ago.  FWIW, I revived this post on my new blog:&lt;/p&gt;

&lt;p&gt;http://blogs.oracle.com/sergio/2008/10/quick_and_dirty_inline_charts_1.html&lt;/p&gt;

&lt;p&gt;Sergio&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Eddie,</p>

<p>I googling for ratio_to_report and came across your post.  I noticed it links to an old blog post of mine.  orablogs.com kicked the bucket a long time ago.  FWIW, I revived this post on my new blog:</p>

<p><a href="http://blogs.oracle.com/sergio/2008/10/quick_and_dirty_inline_charts_1.html" rel="nofollow">http://blogs.oracle.com/sergio/2008/10/quick_and_dirty_inline_charts_1.html</a></p>

<p>Sergio</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Tshepo</title>
		<link>http://awads.net/wp/2006/06/14/cool-sql-analytic-function-ratio_to_report/comment-page-1/#comment-52357</link>
		<dc:creator>Tshepo</dc:creator>
		<pubDate>Wed, 03 Sep 2008 06:11:22 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2006/06/14/cool-sql-analytic-function-ratio_to_report/#comment-52357</guid>
		<description>&lt;p&gt;Using the query below, I need to calculate  ratio of paper to electronic claims. Pls help&lt;/p&gt;

&lt;p&gt;select            practice_fk as &#039;Prac_No1&#039;,
                  p.doc_short_descr as &#039;Prac_Name1&#039;,
                  DS.dsp_ind,
                  accreditation,
                  accred_level,
                  SUM(isnull(convert(numeric,(1)),0))   as &#039;Total_Claims&#039;,
                  SUM(CASE WHEN    convert(numeric,trade_fk)  0 THEN 1 ELSE 0 END) as &#039;EDI&#039;,
                  SUM(CASE WHEN    convert(numeric,trade_fk) = 0 THEN 1 ELSE 0 END) as &#039;Paper&#039;&lt;/p&gt;

&lt;p&gt;from        (     select     c.claim_fk,c.trade_fk,c.practice_fk,c.rcvd_date
                  from       tf_claim  C with (nolock)
                  where       benefit_amt &gt;= 0.05
                              AND practice_type IN (14,15,50,51)
                              AND convert(datetime,convert(varchar,claim_dt),112) BETWEEN &#039;1 MAY 2008&#039; AND &#039;31 AUG 2008&#039;
                 group by    c.claim_fk,c.trade_fk,c.practice_fk,c.rcvd_date
              ) CLAIM LEFT JOIN td_practice P with (nolock) ON (practice_pk = practice_fk)
                       LEFT JOIN  pcdw2.dw_staging.dbo.tsd_dsp ds ON (ds.practice_pk = claim.practice_fk)
                      LEFT JOIN  dbo.td_negotiation2 n on (n.negotiation_pk = ds.neg_num)&lt;/p&gt;

&lt;p&gt;Where DS.dsp_ind = &#039;DSP&#039;&lt;/p&gt;

&lt;p&gt;group by    practice_fk, 
            p.doc_short_descr,ds.dsp_ind,accreditation,
                  accred_level&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Using the query below, I need to calculate  ratio of paper to electronic claims. Pls help</p>

<p>select            practice_fk as &#8216;Prac_No1&#8242;,
                  p.doc_short_descr as &#8216;Prac_Name1&#8242;,
                  DS.dsp_ind,
                  accreditation,
                  accred_level,
                  SUM(isnull(convert(numeric,(1)),0))   as &#8216;Total_Claims&#8217;,
                  SUM(CASE WHEN    convert(numeric,trade_fk)  0 THEN 1 ELSE 0 END) as &#8216;EDI&#8217;,
                  SUM(CASE WHEN    convert(numeric,trade_fk) = 0 THEN 1 ELSE 0 END) as &#8216;Paper&#8217;</p>

<p>from        (     select     c.claim_fk,c.trade_fk,c.practice_fk,c.rcvd_date
                  from       tf_claim  C with (nolock)
                  where       benefit_amt &gt;= 0.05
                              AND practice_type IN (14,15,50,51)
                              AND convert(datetime,convert(varchar,claim_dt),112) BETWEEN &#8216;1 MAY 2008&#8242; AND &#8216;31 AUG 2008&#8242;
                 group by    c.claim_fk,c.trade_fk,c.practice_fk,c.rcvd_date
              ) CLAIM LEFT JOIN td_practice P with (nolock) ON (practice_pk = practice_fk)
                       LEFT JOIN  pcdw2.dw_staging.dbo.tsd_dsp ds ON (ds.practice_pk = claim.practice_fk)
                      LEFT JOIN  dbo.td_negotiation2 n on (n.negotiation_pk = ds.neg_num)</p>

<p>Where DS.dsp_ind = &#8216;DSP&#8217;</p>

<p>group by    practice_fk, 
            p.doc_short_descr,ds.dsp_ind,accreditation,
                  accred_level</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://awads.net/wp/2006/06/14/cool-sql-analytic-function-ratio_to_report/comment-page-1/#comment-50421</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Tue, 20 Mar 2007 13:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/2006/06/14/cool-sql-analytic-function-ratio_to_report/#comment-50421</guid>
		<description>&lt;p&gt;Hi Eddie;
used it today the first time!
Karl&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Eddie;
used it today the first time!
Karl</p>]]></content:encoded>
	</item>
</channel>
</rss>
