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 is %type in sql?
Why join is faster than subquery?
What is a trigger in sql?
What is the difference between a primary key and a unique key?
How do I count records in sql?
What is the difference between pl and sql?
What is rank () in sql?
What are the two types of cursors in pl sql?
what is a database? : Sql dba
Can we use insert statement in function?
How to add new employee details in an employee_details table with the following details
What is sqlexception in java?
How do you write a complex sql query?
describe mysql connection using mysql binary. : Sql dba
What is the difference among union, minus and intersect?