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
What are different types of sql commands?
Is sql a backend language?
how to start mysql server? : Sql dba
What is data types in sql?
What is partition in sql query?
Differentiate between % rowtype and type record.
How exception handling is done in advance pl/sql?
What are sql procedures?
What is the difference between clustered and non-clustered indexes?
Does execute immediate commit?
How can we store rows in PL/SQL using array?
What is bulk compiling in pl/sql.?
What is a ddl command?
Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?
What are inbuilt functions in sql?