 




<?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/"
		>
<channel>
	<title>Comments on: Confused report</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/confused-report/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/confused-report/</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 05:15:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: ferencmantfeld</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/confused-report/#comment-47949</link>
		<dc:creator>ferencmantfeld</dc:creator>
		<pubDate>Sun, 17 Jul 2005 04:10:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-47949</guid>
		<description><![CDATA[this is relatively easily achieved with an inline view, thus:

WITH plan_max_date as 
(select ben_plan_cd, max(cvrg_Date) as mx_cvrg_dt 
from whatever group by ben_plan_cd
  select  ........ (original select statement here), 
PMD.mx_cvrg_dt  /* here is the maximum coverage date from the inline view */
FROM EMPL B,
HB_EMPL_PKG_ELEC D,
HB_EMPL_DEP_BNFIC A,
HB_EMPL_MED_DEP C, 
plan_max_Date PMD
WHERE B.EMPL_ID = A.EMPL_ID(+) AND
C.EMPL_ID = A.EMPL_ID AND
C.BEN_PLAN_CD IN (&#039;UHCALL&#039;,&#039;UHCBASIC&#039;)
and C.BEN_PLAN_id = PMD.ben_pan_id
.... rest of where clause ....

That should do it just fine.

Regards:

Ferenc]]></description>
		<content:encoded><![CDATA[<p>this is relatively easily achieved with an inline view, thus:</p>
<p>WITH plan_max_date as<br />
(select ben_plan_cd, max(cvrg_Date) as mx_cvrg_dt<br />
from whatever group by ben_plan_cd<br />
  select  &#8230;&#8230;.. (original select statement here),<br />
PMD.mx_cvrg_dt  /* here is the maximum coverage date from the inline view */<br />
FROM EMPL B,<br />
HB_EMPL_PKG_ELEC D,<br />
HB_EMPL_DEP_BNFIC A,<br />
HB_EMPL_MED_DEP C,<br />
plan_max_Date PMD<br />
WHERE B.EMPL_ID = A.EMPL_ID(+) AND<br />
C.EMPL_ID = A.EMPL_ID AND<br />
C.BEN_PLAN_CD IN (&#8216;UHCALL&#8217;,'UHCBASIC&#8217;)<br />
and C.BEN_PLAN_id = PMD.ben_pan_id<br />
&#8230;. rest of where clause &#8230;.</p>
<p>That should do it just fine.</p>
<p>Regards:</p>
<p>Ferenc</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ferencmantfeld</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/confused-report/#comment-47950</link>
		<dc:creator>ferencmantfeld</dc:creator>
		<pubDate>Sun, 17 Jul 2005 04:07:24 +0000</pubDate>
		<guid isPermaLink="false">#comment-47950</guid>
		<description><![CDATA[this is relatively easily achieved with an inline view, thus:

WITH plan_max_date as 
(select ben_plan_cd, max(cvrg_Date) as mx_cvrg_dt 
from whatever group by ben_plan_cd
  select  ........ (original select statement here), 
PMD.mx_cvrg_dt  /* here is the maximum coverage date from the inline view */
FROM EMPL B,
HB_EMPL_PKG_ELEC D,
HB_EMPL_DEP_BNFIC A,
HB_EMPL_MED_DEP C, 
plan_max_Date PMD
WHERE B.EMPL_ID = A.EMPL_ID(+) AND
C.EMPL_ID = A.EMPL_ID AND
C.BEN_PLAN_CD IN (&#039;UHCALL&#039;,&#039;UHCBASIC&#039;)
and C.BEN_PLAN_id = PMD.ben_pan_id
.... rest of where clause ....

That should do it just fine.

Regards:

Ferenc]]></description>
		<content:encoded><![CDATA[<p>this is relatively easily achieved with an inline view, thus:</p>
<p>WITH plan_max_date as<br />
(select ben_plan_cd, max(cvrg_Date) as mx_cvrg_dt<br />
from whatever group by ben_plan_cd<br />
  select  &#8230;&#8230;.. (original select statement here),<br />
PMD.mx_cvrg_dt  /* here is the maximum coverage date from the inline view */<br />
FROM EMPL B,<br />
HB_EMPL_PKG_ELEC D,<br />
HB_EMPL_DEP_BNFIC A,<br />
HB_EMPL_MED_DEP C,<br />
plan_max_Date PMD<br />
WHERE B.EMPL_ID = A.EMPL_ID(+) AND<br />
C.EMPL_ID = A.EMPL_ID AND<br />
C.BEN_PLAN_CD IN (&#8216;UHCALL&#8217;,'UHCBASIC&#8217;)<br />
and C.BEN_PLAN_id = PMD.ben_pan_id<br />
&#8230;. rest of where clause &#8230;.</p>
<p>That should do it just fine.</p>
<p>Regards:</p>
<p>Ferenc</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.016 seconds using memcached
Object Caching 282/285 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 06:20:28 -->