<?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"
	>
<channel>
	<title>Comments on: sql update a column to remove a certain character</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/sqlupdate-a-column-to-remove-a-certain-character/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlupdate-a-column-to-remove-a-certain-character/</link>
	<description></description>
	<pubDate>Sat, 28 Nov 2009 21:11:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: JackX</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlupdate-a-column-to-remove-a-certain-character/#comment-63962</link>
		<dc:creator>JackX</dc:creator>
		<pubDate>Wed, 27 May 2009 06:14:09 +0000</pubDate>
		<guid isPermaLink="false">#comment-63962</guid>
		<description>That is so interesting..Well aside from that trivia, did you know that The Credit Card Bill has been both lauded and lamented, and it's stirring up some controversy.  Critics of the Senate credit card bill, AKA the Credit Card Bill of Rights, claim it is a move towards socialist tendencies, but more disturbing even that that is that the people who use credit cards responsibly, the ones that timely pay their bills, are the ones that will have higher fees and interest rates.  The thought of responsible users of credit thinking about fast loans to pay off credit card interest rather than the less responsible is certainly not something anyone would relish.  President Obama has endorsed the bill, but some people would give short term loans to get rid of the &#60;a rev="vote for" title="Pay Your Credit Cards On Time? You Will Be Penalized!" href="http://personalmoneystore.com/moneyblog/2009/05/19/senate-credit-card-bill/"&#62; Credit Card Bill&#60;/a&#62;.</description>
		<content:encoded><![CDATA[<p>That is so interesting..Well aside from that trivia, did you know that The Credit Card Bill has been both lauded and lamented, and it&#8217;s stirring up some controversy.  Critics of the Senate credit card bill, AKA the Credit Card Bill of Rights, claim it is a move towards socialist tendencies, but more disturbing even that that is that the people who use credit cards responsibly, the ones that timely pay their bills, are the ones that will have higher fees and interest rates.  The thought of responsible users of credit thinking about fast loans to pay off credit card interest rather than the less responsible is certainly not something anyone would relish.  President Obama has endorsed the bill, but some people would give short term loans to get rid of the &lt;a rev="vote for&#8221; title="Pay Your Credit Cards On Time? You Will Be Penalized!&#8221; href="http://personalmoneystore.com/moneyblog/2009/05/19/senate-credit-card-bill/&#8221;&gt; Credit Card Bill&lt;/a&gt;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlupdate-a-column-to-remove-a-certain-character/#comment-63952</link>
		<dc:creator>Carlosdl</dc:creator>
		<pubDate>Tue, 26 May 2009 18:42:35 +0000</pubDate>
		<guid isPermaLink="false">#comment-63952</guid>
		<description>Assuming that you are using SQL Server, you could use the SUBSTRING and CHARINDEX functions.

Something like this:

SELECT SUBSTRING(your_column,CHARINDEX('*',your_column),1) has_asterisk,
SUBSTRING(your_column,CHARINDEX('*',your_column)+1,LEN(your_column)) number FROM book;

If you are using Oracle, you should use SUBSTR and INSTR instead.</description>
		<content:encoded><![CDATA[<p>Assuming that you are using SQL Server, you could use the SUBSTRING and CHARINDEX functions.</p>
<p>Something like this:</p>
<p>SELECT SUBSTRING(your_column,CHARINDEX(&#8217;*',your_column),1) has_asterisk,<br />
SUBSTRING(your_column,CHARINDEX(&#8217;*',your_column)+1,LEN(your_column)) number FROM book;</p>
<p>If you are using Oracle, you should use SUBSTR and INSTR instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lazy167</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/sqlupdate-a-column-to-remove-a-certain-character/#comment-63941</link>
		<dc:creator>Lazy167</dc:creator>
		<pubDate>Tue, 26 May 2009 14:49:41 +0000</pubDate>
		<guid isPermaLink="false">#comment-63941</guid>
		<description>thx works great
on another note, is there a way to split the column into 2 so that 1 column shows whether that number has a * prefix or not. 
eg
*      &#124;99
*      &#124;12
null &#124;23
*      &#124; 68
*      &#124; 48
null &#124; 89
null &#124; 13</description>
		<content:encoded><![CDATA[<p>thx works great<br />
on another note, is there a way to split the column into 2 so that 1 column shows whether that number has a * prefix or not.<br />
eg<br />
*      |99<br />
*      |12<br />
null |23<br />
*      | 68<br />
*      | 48<br />
null | 89<br />
null | 13</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- dynamic -->