 




<?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: Removing spaces between two words in SQL</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/removing-spaces-between-two-words-in-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/removing-spaces-between-two-words-in-sql/</link>
	<description></description>
	<lastBuildDate>Fri, 24 May 2013 17:13:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: coolvinnu2005</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/removing-spaces-between-two-words-in-sql/#comment-46947</link>
		<dc:creator>coolvinnu2005</dc:creator>
		<pubDate>Tue, 26 Apr 2005 00:54:56 +0000</pubDate>
		<guid isPermaLink="false">#comment-46947</guid>
		<description><![CDATA[Hi below is the solution for ur problem. Hope by this time you might have got a best answer. If not then you can use the below query

select substr(&#039;FirstName LastName&#039;,1,(instr(&#039;FirstName LastName&#039;,&#039; &#039;)-1)) from dual]]></description>
		<content:encoded><![CDATA[<p>Hi below is the solution for ur problem. Hope by this time you might have got a best answer. If not then you can use the below query</p>
<p>select substr(&#8216;FirstName LastName&#8217;,1,(instr(&#8216;FirstName LastName&#8217;,&#8217; &#8216;)-1)) from dual</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jhakas</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/removing-spaces-between-two-words-in-sql/#comment-46948</link>
		<dc:creator>jhakas</dc:creator>
		<pubDate>Mon, 25 Apr 2005 11:07:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-46948</guid>
		<description><![CDATA[I Guess It would be
Select 
(Substr(&#039;FirstName LastNAme&#039;,1,
(instr(&#039;FirstName LastNAme&#039;,&#039; &#039;)-1))) 
from dual;
If the DB is Oracle.
]]></description>
		<content:encoded><![CDATA[<p>I Guess It would be<br />
Select<br />
(Substr(&#8216;FirstName LastNAme&#8217;,1,<br />
(instr(&#8216;FirstName LastNAme&#8217;,&#8217; &#8216;)-1)))<br />
from dual;<br />
If the DB is Oracle.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maverick2000</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/removing-spaces-between-two-words-in-sql/#comment-46949</link>
		<dc:creator>maverick2000</dc:creator>
		<pubDate>Mon, 25 Apr 2005 10:52:03 +0000</pubDate>
		<guid isPermaLink="false">#comment-46949</guid>
		<description><![CDATA[If you&#039;re on Oracle Platform then you can try this:

select substr(&#039;Name&#039;,0, INSTR(&#039;Name&#039;,&#039; &#039;))
  &quot;First Name&quot; FROM Names_Table]]></description>
		<content:encoded><![CDATA[<p>If you&#8217;re on Oracle Platform then you can try this:</p>
<p>select substr(&#8216;Name&#8217;,0, INSTR(&#8216;Name&#8217;,&#8217; &#8216;))<br />
  &#8220;First Name&#8221; FROM Names_Table</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: olgeni</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/removing-spaces-between-two-words-in-sql/#comment-46950</link>
		<dc:creator>olgeni</dc:creator>
		<pubDate>Mon, 25 Apr 2005 10:49:38 +0000</pubDate>
		<guid isPermaLink="false">#comment-46950</guid>
		<description><![CDATA[for ORACLE you can use

select substr(name,1,instr(name,&#039; &#039;)-1) from employees;
Ex//

select substr(&#039;Smith Mary&#039;,1,instr(&#039;Smith Mary&#039;,&#039; &#039;)-1) last_name from dual;

last_name
---------
Smith]]></description>
		<content:encoded><![CDATA[<p>for ORACLE you can use</p>
<p>select substr(name,1,instr(name,&#8217; &#8216;)-1) from employees;<br />
Ex//</p>
<p>select substr(&#8216;Smith Mary&#8217;,1,instr(&#8216;Smith Mary&#8217;,&#8217; &#8216;)-1) last_name from dual;</p>
<p>last_name<br />
&#8212;&#8212;&#8212;<br />
Smith</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: randym</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/removing-spaces-between-two-words-in-sql/#comment-46951</link>
		<dc:creator>randym</dc:creator>
		<pubDate>Thu, 14 Apr 2005 09:24:37 +0000</pubDate>
		<guid isPermaLink="false">#comment-46951</guid>
		<description><![CDATA[For removing the space, Oracle has the REPLACE function:

SQL&gt; select replace(&#039;this  is an example&#039;,&#039;  &#039;,&#039; &#039;) from dual;

REPLACE(&#039;THISISANE
------------------
this is an example]]></description>
		<content:encoded><![CDATA[<p>For removing the space, Oracle has the REPLACE function:</p>
<p>SQL&gt; select replace(&#8216;this  is an example&#8217;,&#8217;  &#8216;,&#8217; &#8216;) from dual;</p>
<p>REPLACE(&#8216;THISISANE<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
this is an example</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dansken</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/removing-spaces-between-two-words-in-sql/#comment-46952</link>
		<dc:creator>dansken</dc:creator>
		<pubDate>Wed, 13 Apr 2005 17:40:43 +0000</pubDate>
		<guid isPermaLink="false">#comment-46952</guid>
		<description><![CDATA[If you are on an Oracle platform you would use an instr to find the space.

substr(Name,1,instr(Name,&#039; &#039;))]]></description>
		<content:encoded><![CDATA[<p>If you are on an Oracle platform you would use an instr to find the space.</p>
<p>substr(Name,1,instr(Name,&#8217; &#8216;))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jhoman</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/removing-spaces-between-two-words-in-sql/#comment-46953</link>
		<dc:creator>jhoman</dc:creator>
		<pubDate>Wed, 13 Apr 2005 17:27:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-46953</guid>
		<description><![CDATA[You don&#039;t specify which database you are using, but in MS SQL Server the function CHARINDEX will let you find the first occurance of a space - then use that number - 1 for the length of the LEFT expression on your name column.  You can find these functions in the SQL Server Books Online help.]]></description>
		<content:encoded><![CDATA[<p>You don&#8217;t specify which database you are using, but in MS SQL Server the function CHARINDEX will let you find the first occurance of a space &#8211; then use that number &#8211; 1 for the length of the LEFT expression on your name column.  You can find these functions in the SQL Server Books Online help.</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 3/10 queries in 0.036 seconds using memcached
Object Caching 351/357 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-24 18:01:11 -->