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 / swastik

select substr(name,1,instr(name,' ',1)-1)||substr(name,instr(name,' ',-1),length(name)) from spacename

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between primary and secondary key?

515


Write a unique difference between a function and a stored procedure.

525


how to get @@error and @@rowcount at the same time? : Sql dba

522


What is sorting in sql?

501


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

535






Why is pl sql used?

522


What does truncate mean in sql?

530


What is a trigger in sql?

634


How can I delete duplicate rows?

559


What is offset and limit in sql?

545


What is forward declaration in pl sql?

586


What is identity column in sql server?

519


What is sql injection vulnerability?

494


Does sql*plus have a pl/sql engine?

561


Write the command to remove all players named sachin from the players table.

729