<?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: ANY Types, Pipelined Table Functions, Dynamic SQL and Pivot</title>
	<atom:link href="http://awads.net/wp/2008/06/05/any-types-pipelined-table-functions-dynamic-sql-and-pivot/feed/" rel="self" type="application/rss+xml" />
	<link>http://awads.net/wp/2008/06/05/any-types-pipelined-table-functions-dynamic-sql-and-pivot/</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: nosizwe mxobo</title>
		<link>http://awads.net/wp/2008/06/05/any-types-pipelined-table-functions-dynamic-sql-and-pivot/comment-page-1/#comment-52209</link>
		<dc:creator>nosizwe mxobo</dc:creator>
		<pubDate>Tue, 22 Jul 2008 08:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=731#comment-52209</guid>
		<description>&lt;p&gt;Hi
I would like you to help me  to come up with desired results for this report.I am currently preparing a script in SQL for people who has attended course now what i want the report to  do is to highlight the  entire row  green if the column  STATUS contains the value &#039; NOT ATTENDED&#039;,Im thinking of a coding like this 
 select  case when status  &quot;Attended&#039; then
             backcolor =  green
       else  status
  end  case&lt;/p&gt;

&lt;p&gt;the second one is this field called Cost_per_person is captured in string  data type and other values are having &#039;R&#039; before(R4562,00) and the comma is not used to separate thousand is for hundrends instead.Now   i want to convert all the numbers to decimal and leave those  rows that contains characters(&#039;NOT YET PAID&#039;).I  want to have a  code like this one 
select    CASE  WHEN f.segment10 = string then 
                              REPLACE (CAST (f.segment10 AS VARCHAR (10)),   &#039;R&#039;,  &#039;  &#039;   )
                                     when   f.segment10  = varchar then
                                           convert(To_decimal(8,2),f.segment10 )
               ELSE f.segment10
            END cost_per_person, 
your response will be highly appreciated.
Regards&lt;/p&gt;

&lt;p&gt;Nosizwe Mxobo
Marang Oracle Centre of excellence : HRMS Business Intelligence
Tel: 27 (21) 403 8075
Fax: 27 (21) 403 3657
Cell: 082 064 4691
www.parliament.gov.za&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi
I would like you to help me  to come up with desired results for this report.I am currently preparing a script in SQL for people who has attended course now what i want the report to  do is to highlight the  entire row  green if the column  STATUS contains the value &#8216; NOT ATTENDED&#8217;,Im thinking of a coding like this 
 select  case when status  &#8220;Attended&#8217; then
             backcolor =  green
       else  status
  end  case</p>

<p>the second one is this field called Cost_per_person is captured in string  data type and other values are having &#8216;R&#8217; before(R4562,00) and the comma is not used to separate thousand is for hundrends instead.Now   i want to convert all the numbers to decimal and leave those  rows that contains characters(&#8216;NOT YET PAID&#8217;).I  want to have a  code like this one 
select    CASE  WHEN f.segment10 = string then 
                              REPLACE (CAST (f.segment10 AS VARCHAR (10)),   &#8216;R&#8217;,  &#8216;  &#8216;   )
                                     when   f.segment10  = varchar then
                                           convert(To_decimal(8,2),f.segment10 )
               ELSE f.segment10
            END cost_per_person, 
your response will be highly appreciated.
Regards</p>

<p>Nosizwe Mxobo
Marang Oracle Centre of excellence : HRMS Business Intelligence
Tel: 27 (21) 403 8075
Fax: 27 (21) 403 3657
Cell: 082 064 4691
<a href="http://www.parliament.gov.za" rel="nofollow">http://www.parliament.gov.za</a></p>]]></content:encoded>
	</item>
</channel>
</rss>
