<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>IT-angel&#039;s Blog</title>
	<atom:link href="http://itangel.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://itangel.wordpress.com</link>
	<description>information technology, e-marketing</description>
	<lastBuildDate>Mon, 02 Nov 2009 08:24:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='itangel.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>IT-angel&#039;s Blog</title>
		<link>http://itangel.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://itangel.wordpress.com/osd.xml" title="IT-angel&#039;s Blog" />
	<atom:link rel='hub' href='http://itangel.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Oracle PL/SQL splitting function</title>
		<link>http://itangel.wordpress.com/2009/11/02/oracle-plsql-split/</link>
		<comments>http://itangel.wordpress.com/2009/11/02/oracle-plsql-split/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 08:19:01 +0000</pubDate>
		<dc:creator>itangel</dc:creator>
				<category><![CDATA[ORACLE]]></category>
		<category><![CDATA[PL/SQL]]></category>

		<guid isPermaLink="false">http://itangel.wordpress.com/?p=31</guid>
		<description><![CDATA[I needed to spilt (tokenize) a string in Oracle SQL and I wanted do it simply and I found a really useful function: function get_split(the_list varchar2, the_index number, delim varchar2 := '&#124;' ) return varchar2 is start_pos number; end_pos number; begin if the_index = 1 then start_pos := 1; else start_pos := instr(the_list, delim, 1, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itangel.wordpress.com&amp;blog=7881497&amp;post=31&amp;subd=itangel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I needed to spilt (tokenize) a string in Oracle SQL and I wanted do it simply and I found a really useful function:</p>
<p><code><br />
function get_split(the_list  varchar2,<br />
                        the_index number,<br />
                        delim     varchar2 := '|' ) return varchar2<br />
  is<br />
     start_pos number;<br />
     end_pos   number;<br />
  begin<br />
      if the_index = 1 then<br />
        start_pos := 1;<br />
      else<br />
        start_pos := instr(the_list, delim, 1, the_index - 1);<br />
        if start_pos = 0 then<br />
          return null;<br />
        else<br />
          start_pos := start_pos + length(delim);<br />
        end if;<br />
      end if;<br />
      end_pos := instr(the_list, delim, start_pos, 1);<br />
      if end_pos = 0 then<br />
        return substr(the_list, start_pos);<br />
       else<br />
       return substr(the_list, start_pos, end_pos - start_pos);<br />
      end if;<br />
    end get_split;</code></p>
<p>So now I could do a select :<br />
   <code>select <strong>get_split</strong>('0|1|0',2) from dual;</code> &#8211;&gt; &#8217;1&#8242; </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itangel.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itangel.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itangel.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itangel.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itangel.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itangel.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itangel.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itangel.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itangel.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itangel.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itangel.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itangel.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itangel.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itangel.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itangel.wordpress.com&amp;blog=7881497&amp;post=31&amp;subd=itangel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://itangel.wordpress.com/2009/11/02/oracle-plsql-split/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/82c9bd716c80cc8a252c92e18cb150ce?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">itangel</media:title>
		</media:content>
	</item>
		<item>
		<title>ORA-02270: no matching unique or primary key for this column-list</title>
		<link>http://itangel.wordpress.com/2009/10/22/ora-02270-no-matching-unique-or-primary-key/</link>
		<comments>http://itangel.wordpress.com/2009/10/22/ora-02270-no-matching-unique-or-primary-key/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 08:56:50 +0000</pubDate>
		<dc:creator>itangel</dc:creator>
				<category><![CDATA[ORACLE]]></category>

		<guid isPermaLink="false">http://itangel.wordpress.com/?p=27</guid>
		<description><![CDATA[I generated this error today and the error source of this has been described  as follows: Cause: A REFERENCES clause in a CREATE/ALTER TABLE statement gives a column-list for which there is no matching unique or primary key constraint in the referenced table. Action: Find the correct column names using the ALL_CONS_COLUMNS catalog view. I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itangel.wordpress.com&amp;blog=7881497&amp;post=27&amp;subd=itangel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>I generated this error today and the error source of this has been described  as follows:</div>
<p></p>
<div><em><span style="color:#ff0000;">Cause:</span> </em>A REFERENCES clause in a CREATE/ALTER TABLE statement gives a column-list for which there is no matching unique or primary key constraint in the referenced table.</div>
<p></p>
<div><em><span style="color:#3333ff;">Action:</span></em> Find the correct column names using the ALL_CONS_COLUMNS catalog view.</div>
<p></p>
<div>I wanted to add a foreign key constraint to a table and actually the column being referenced had an unique index.</div>
<div>I created an <em>unique</em> index in primary table:</div>
<p></p>
<div><strong>create <em>unique index</em> UNIQUE_INX_TEST1_ID </strong></div>
<div><strong>on PRIMARY_TEST1 (TEST1_ID);</strong></div>
<p></p>
<div>but I forgot that I must add a <span style="font-style:italic;">unique</span> constraint on PRIMARY_TEST1 as well, referencing the unique index we&#8217;ve just created:</div>
<p></p>
<div><strong>alter table PRIMARY_TEST1 add constraint PRIMARY_TEST1_UQ </strong></div>
<div><strong><em>unique</em> (TEST1_ID)</strong></div>
<div><strong>using<em> index</em> UNIQUE_INX_TEST1_ID;</strong></div>
<p></p>
<div>and now I can add a foreign key conraint to another table referencing to this unique index column.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itangel.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itangel.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itangel.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itangel.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itangel.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itangel.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itangel.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itangel.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itangel.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itangel.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itangel.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itangel.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itangel.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itangel.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itangel.wordpress.com&amp;blog=7881497&amp;post=27&amp;subd=itangel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://itangel.wordpress.com/2009/10/22/ora-02270-no-matching-unique-or-primary-key/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/82c9bd716c80cc8a252c92e18cb150ce?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">itangel</media:title>
		</media:content>
	</item>
		<item>
		<title>Marking all mail as read in Gmail</title>
		<link>http://itangel.wordpress.com/2009/10/16/marking-all-mail-as-read-in-gmail/</link>
		<comments>http://itangel.wordpress.com/2009/10/16/marking-all-mail-as-read-in-gmail/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 12:57:42 +0000</pubDate>
		<dc:creator>itangel</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[gmail]]></category>

		<guid isPermaLink="false">http://itangel.wordpress.com/?p=14</guid>
		<description><![CDATA[Need to mark a lot of emails as read? I had over 800 unread emails in my Gmail inbox and I wanted to mark messages as read without marking those  individually. What you need to do: 1. You need to find all unread messages, you can do that by typing &#8220;is:unread&#8221; in the search box [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itangel.wordpress.com&amp;blog=7881497&amp;post=14&amp;subd=itangel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<div>
<p><img class="alignleft size-medium wp-image-16" title="unread-books" src="http://itangel.files.wordpress.com/2009/10/unread-books1.jpg?w=225&#038;h=300" alt="unread-books" width="225" height="300" /></p>
<p>Need to mark a lot of emails as read? I had over 800 unread emails in my Gmail inbox and I wanted to mark messages as read without marking those  individually.</p>
<p>What you need to do:</p>
<p><strong>1.</strong> You need to find all unread messages, you can do that by typing &#8220;<strong>is:unread</strong>&#8221; in the<strong> search box</strong></p>
<p><strong>2</strong>. Press &#8220;<strong>All</strong>&#8221; in the <strong>select area</strong></p>
<p><strong>3</strong>. Gmail added an option in search results to select conversations that match a search. After done all previous steps you need do <strong>press</strong> a new appearing<strong> link</strong> &#8220;<strong>Select all conversations that match this search</strong>&#8220;</p>
<p><strong>4</strong>. Now all unread messages are marked and you can choose &#8220;<strong>Mark All as Read</strong>&#8221; from the<strong> drop down</strong>.</p>
<p>This is a quick and simple way to mark your unread messages  as read and you can repeat it whenever your messages count goes out of bounds.</p>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itangel.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itangel.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itangel.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itangel.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itangel.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itangel.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itangel.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itangel.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itangel.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itangel.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itangel.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itangel.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itangel.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itangel.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itangel.wordpress.com&amp;blog=7881497&amp;post=14&amp;subd=itangel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://itangel.wordpress.com/2009/10/16/marking-all-mail-as-read-in-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/82c9bd716c80cc8a252c92e18cb150ce?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">itangel</media:title>
		</media:content>

		<media:content url="http://itangel.files.wordpress.com/2009/10/unread-books1.jpg?w=225" medium="image">
			<media:title type="html">unread-books</media:title>
		</media:content>
	</item>
		<item>
		<title>Determine start date and end date of the year</title>
		<link>http://itangel.wordpress.com/2009/10/14/determine-start-date-and-end-date-of-the-year-in-oracle-sql/</link>
		<comments>http://itangel.wordpress.com/2009/10/14/determine-start-date-and-end-date-of-the-year-in-oracle-sql/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 10:48:06 +0000</pubDate>
		<dc:creator>itangel</dc:creator>
				<category><![CDATA[ORACLE]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[sysdate]]></category>

		<guid isPermaLink="false">http://itangel.wordpress.com/?p=4</guid>
		<description><![CDATA[I needed to find out what is the first day and the last day of this year in Oracle PL/SQL. We don&#8217;t like to update the date parameters of the queries, so we needed queries that can be used by many users without changing them every year. What I found out: This year&#8217;s first day [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itangel.wordpress.com&amp;blog=7881497&amp;post=4&amp;subd=itangel&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="0" width="800">
<tbody>
<tr>
<td align="left"></td>
<td width="32"></td>
</tr>
</tbody>
</table>
<p><img class="alignleft size-medium wp-image-22" title="day-month-year-calender" src="http://itangel.files.wordpress.com/2009/10/day-month-year-calender.jpg?w=300&#038;h=224" alt="day-month-year-calender" width="300" height="224" /></p>
<p>I needed to find out what is the first day and the last day of this year in Oracle PL/SQL. We don&#8217;t like to update the date parameters of the queries, so we needed queries that can be used by many users without changing them every year.<br />
What I found out:</p>
<p>This year&#8217;s first day is :</p>
<p><strong>SELECT TRUNC(SYSDATE,&#8217;SYYYY&#8217;) from dual;</strong></p>
<p>SYYYY means that all four digits of the year are with a negative sign (-) for B.C.<br />
and this year&#8217;s last day:</p>
<p><strong>SELECT LAST_DAY(ADD_MONTHS(TRUNC(SYSDATE,&#8217;SYYYY&#8217;), 11)) FROM DUAL;</strong></p>
<p>But if you would like to know the first and the last day of last year:</p>
<p>the first day of last year</p>
<p><strong>SELECT </strong><strong>TRUNC(ADD_MONTHS(SYSDATE, -12),&#8217;SYYYY&#8217;)</strong> <strong> from dual;</strong></p>
<p>and the last day of last year:</p>
<p><strong>SELECT</strong><strong> LAST_DAY(ADD_MONTHS(TRUNC(ADD_MONTHS(SYSDATE, -12),&#8217;SYYYY&#8217;), 11))</strong><strong> FROM DUAL;</strong></p>
<p>Well, if you would like to know the first and the last day of next year, you should change &#8220;-12&#8243; to just &#8220;12&#8243;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/itangel.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/itangel.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/itangel.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/itangel.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/itangel.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/itangel.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/itangel.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/itangel.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/itangel.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/itangel.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/itangel.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/itangel.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/itangel.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/itangel.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=itangel.wordpress.com&amp;blog=7881497&amp;post=4&amp;subd=itangel&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://itangel.wordpress.com/2009/10/14/determine-start-date-and-end-date-of-the-year-in-oracle-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/82c9bd716c80cc8a252c92e18cb150ce?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">itangel</media:title>
		</media:content>

		<media:content url="http://itangel.files.wordpress.com/2009/10/day-month-year-calender.jpg?w=300" medium="image">
			<media:title type="html">day-month-year-calender</media:title>
		</media:content>
	</item>
	</channel>
</rss>
