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 is difference between procedure and trigger?
What are the types of variable use in pl sql?
What is sorting in sql?
Explain the difference between rename and alias?
What is exception? What are the types of exceptions?
what is foreign key? : Sql dba
define sql delete statement ? : Sql dba
Under what condition it is possible to have a page level lock and row lock at the same time for a query? : Transact sql
What's the procedure?
What is sql deadlock?
Is oracle and sql same?
how can we submit a form without a submit button? : Sql dba
what is a database? : Sql dba
What is a system versioned table?
How can a pl sql block be executed?