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 / kavitha n

SELECT NAME,
( SUBSTR (NAME, 1, (INSTR (NAME, ' ', 1)))
|| ''
|| SUBSTR (NAME, INSTR (NAME, ' ', -1), LENGTH (NAME))
) output
FROM test;

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is pl sql different from sql?

536


Why is nosql good?

587


Explain polymorphism in pl/sql.

635


What is sap sql anywhere?

529


What are the parts of a sql statement?

546






Is left join faster than inner join?

607


How much does sqlite cost?

551


When should I use nosql database?

549


What is pl sql quora?

638


Is pl sql a scripting language?

581


Are subqueries better than joins?

525


how to include numeric values in sql statements? : Sql dba

555


what are the other commands to know the structure of table using mysql commands except explain command? : Sql dba

549


What is a data manipulation language?

568


What is pessimistic concurrency control? : Transact sql

584