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

Is primary key a clustered index?

710


Is record in oracle pl sql?

696


What is trigger types in sql?

717


What are %type and %rowtype for?

808


Is sql low level language?

757






What are the triggers associated with image items?

794


What is substitution variable in pl sql?

693


What is the basic structure of an sql?

754


What does select * from mean in sql?

2534


Does pdo prevent sql injection?

695


What is an oracle stored procedure?

784


How does a self join work?

689


What is a dynamic query?

762


Which column of the user triggers data dictionary view displays the database event that will fire the trigger?

777


Explain constraints in sql?

766