Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Like shown below i have 3 columns(Name,No,Address). The
values in name column i want to modity.
Requirement : Keep only once space between two words
(Fname,Lname) in the Name column.
For this what is the query? Please answer me. Advance
Thanks.


Name No Address Reference

manoj kumar
kumar raja
vinzay kumar
rajendra prasad
gowri nath -- -- --

Answer Posted / lince

select substring(NAME,1,charindex(' ',NAME))+' '+
replace(substring(NAME,charindex(' ',NAME),len(NAME)),' ','')
as NAME from test

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the functionality of the function htmlentities? : Sql dba

950


what are the advantages and disadvantages of views in a database? : Sql dba

1041


Can I create table without primary key?

994


How do you update a value in sql?

1036


How do I kill a query in postgresql?

1104


What is difference between mysql and postgresql?

1145


What are the types of variable use in pl sql?

1070


Why truncate is used in sql?

1001


how to show all tables with 'mysql'? : Sql dba

1111


explain about mysql and its features. : Sql dba

1013


What packages(if any) has oracle provided for use by developers?

5806


How to test for null values?

1043


what is cursor. write example of it. What are the attributes of cursor.

1381


How to write a query to show the details of a student from students table whose

993


What is the use of function "module procedure" in pl/sql?

1192