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
Does pl sql work in mysql?
Explain the advantages and disadvantages of stored procedure?
What is a system versioned table?
Can we use join in subquery?
What is on delete set null?
Why sql query is slow?
what are the authentication modes in sql server? How can it be changed? : Sql dba
Can I create table without primary key?
How do I run sql?
Explain what is sql*plus?
Explain the structure of pl/sql in brief.
what are the differences among rownum, rank and dense_rank? : Sql dba
How to combine two stored procedures in sql?
How to add new employee details in an employee_details table with the following details
What do you understand by pl/sql cursors?