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

What is join view in sql?

696


What is before and after trigger?

691


How does cross join work?

652


who introduced sql?

752


What is your daily office routine?

1985






What is posting?

775


how to drop an existing index in mysql? : Sql dba

714


What is trigger with example?

735


What are % type and % rowtype?

772


what is online transaction processing (oltp)? : Sql dba

709


Is sql open source?

712


What is restrict in sql?

734


what are date and time data types? : Sql dba

698


what are the 'mysql' command line arguments? : Sql dba

839


How do you explain an index number?

744