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
What does truncate mean in sql?
Do ddl statements need commit?
Why do we need a foreign key?
what is a constraint? : Sql dba
What is normalization? How many normalization forms are there?
what is a cursor? : Sql dba
How to display the current date in sql?
What is sql partition function?
What is bulk collect in pl sql?
What is sql*loader?
how many columns can be used for creating index? : Sql dba
How to assign sql query results to pl sql variables?
how many groups of data types? : Sql dba
Can a select statement fire a trigger?
How to change the order of columns in Oracle SQL Plus ?