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

How can I change database name in sql?

533


What is the difference between local variables and global variables?

618


Explain the uses of database trigger.

660


What is the difference between view and stored procedure?

498


Can primary key be changed?

529






How you can copy a file to file content and file to pl/sql table in advance pl/sql?

622


What is a left inner join?

544


Does sap use sql?

521


In pl/sql, what is bulk binding, and when/how would it help performance?

537


What is a data manipulation language?

575


What is a parameter query?

626


What are expressions?

569


What is data type in database?

550


What does cursor do in sql?

522


difference between anonymous blocks and sub-programs.

626