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
How many indexes can be created on a table in sql?
What is native sql query?
What is data modelling in sql?
How do I delete a trigger?
How do you drop a trigger?
What does data normalization mean?
how to use like conditions? : Sql dba
What is the difference between function and procedure in pl/sql?
What are sql constraints?
What is foreign key and example?
What is the difference between the implicit and explicit cursors?
How to fix oracle error ora-00942: table or view does not exist
Which are the different character-manipulation functions in sql?
How do I create an index in word?
Which table is left in left join?