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 indexing oracle sql?
what are the features and advantages of object-oriented programming? : Sql dba
What is a null value?
What is difference between group by and partition by?
What is the difference between inner join and left join?
what is the difference between delete and truncate statement in sql? : Sql dba
What is the main difference between sql and pl/sql?
How many subqueries can be nested in a statement?
What is the order of sql select?
Is vs as in pl sql?
What is tuple in sql?
How do I know if I have sql express or standard?
What is sql not null constraint?
Why do we need a foreign key?
how many columns can be used for creating index? : Sql dba