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
Why is normalization important?
What are different joins used in sql?
What is the use of sqldataadapter?
What are the different schemas objects that can be created using pl/sql?
Give the order of sql select?
What are pl/sql packages?
what is bcp? When does it used? : Sql dba
What are the constraints available in sql?
What will you get by the cursor attribute sql%rowcount?
Are pl sql variables case sensitive?
What is a table partition?
How we can update the view?
How many types of literals are available in pl sql?
What is the difference between execution of triggers and stored procedures?
How to take user input in pl sql?